Home > Back-end > C, with administrator privileges to run the program, get the current login user (not administrator)
C, with administrator privileges to run the program, get the current login user (not administrator)
Time:09-20
Under normal circumstances can use function SHGetSpecialFolderLocation direct access;
Problem is that the program needs to run with administrator account, the current login user is administrator, obtain the result of the function is directory under the administrator account,
CodePudding user response:
Results with the administrator account to run, is for the directory administrator account, plausible,