There is a platform SDK security newsgroup. If they don't help it is likely
because the question is easily answered by reading the documentation. So
read the documentation if possible and if you don't get help there, ask in
the programmer's security newsgroup. In this newsgroup (the one this thread
is in) and this question, you are more likely to get sarcasm than answers.
Your program should check for errors whenever there is a possibility of
errors. Probably if you are thorough enough in checking errors, you would
have an idea of what the problem is. Security people will say that instead
of attempting to provide more privileges for the program, you must eliminate
the need for more privileges unless the requirements of your application
needs the additional privileges. Security programmers will insist that you
determine why the program requires Administrator privileges or whatever, so
unless I misunderstand what you are saying you should do something to
diagnose the problem instead of concluding you must allow the program to do
whatever it decides to do.
What if your program got infected by malware? It would not be your fault
except your customers will likely blame you anyway for allowing the malware
to do it's thing. Even if that is not the case now, it is the type of thing
that can happen by solving problems by guessing.
If you are thinking that you can't diagnose the problem because the error
exists only in other systems but not in your system, then you need to learn
about debugging and diagnosis; you are not the first to be in that
situation.