F
Frank Staal
I'm developing a program that needs Administrative privileges, so I
have added the "Vista manifest" to get UAC to prompt for a password.
So far, so good.
Now the following weird thing happens. When an Administrative user
logs in and confirms by pressing OK, everything goes allright. If, on
the other hand, a Restricted User starts and enters an Admin with
password, the program will kill itself when it tries to get the SID
for the current user.
Ok... This means debugging, and as I don't have Vista I add a bunch of
debug statements that are recorded in a log file, make it optional to
start debugging and let the user run it, so he can give me the debug
log back. One and the same exe, but starting with the debug switch
everything goes ok, and starting without the debug switch kills the
program. Grrrrrrr... Other means of debugging results in the same
effect. Opening a bunch of MessageBox()'es with the debug data instead
of recording to file, forcing debug log generation (the difference
might have been the start-up parameter). It doesn't matter. Debug on,
everything ok. Debug off, tilt...
What is going wrong here? Any ideas?
Thanks.
have added the "Vista manifest" to get UAC to prompt for a password.
So far, so good.
Now the following weird thing happens. When an Administrative user
logs in and confirms by pressing OK, everything goes allright. If, on
the other hand, a Restricted User starts and enters an Admin with
password, the program will kill itself when it tries to get the SID
for the current user.
Ok... This means debugging, and as I don't have Vista I add a bunch of
debug statements that are recorded in a log file, make it optional to
start debugging and let the user run it, so he can give me the debug
log back. One and the same exe, but starting with the debug switch
everything goes ok, and starting without the debug switch kills the
program. Grrrrrrr... Other means of debugging results in the same
effect. Opening a bunch of MessageBox()'es with the debug data instead
of recording to file, forcing debug log generation (the difference
might have been the start-up parameter). It doesn't matter. Debug on,
everything ok. Debug off, tilt...
What is going wrong here? Any ideas?
Thanks.