G
Guest
Hello
This is what I want to do:
1. Install an application((say in C:\Program Files\MyApp) in the
Administrator mode
2. This application should work in the 'Limited User Account' mode as well.
Currently the Application does not work in 'Limited User Account' mode
because it creates a Folder (and some files in this folder) in its target
folder (ie C:\Program Files\MyApp). This folder creation fails in the Limited
User Account mode.
How can I create the folder from my application in Limited User Account mode.
Is this possible by changing Security Privileges using Windows API?
(I have tried a hand this way also using functions like 'OpenProcess Token'
, 'LookupPrivilegeValue', 'AdjustTokenPrivileges','LookupAccountName',
'InitializeSecurityDescriptor, 'SetSecurityDescriptorOwner',
'SetFileSecurity'.
But I did not succeed).
Team
This is what I want to do:
1. Install an application((say in C:\Program Files\MyApp) in the
Administrator mode
2. This application should work in the 'Limited User Account' mode as well.
Currently the Application does not work in 'Limited User Account' mode
because it creates a Folder (and some files in this folder) in its target
folder (ie C:\Program Files\MyApp). This folder creation fails in the Limited
User Account mode.
How can I create the folder from my application in Limited User Account mode.
Is this possible by changing Security Privileges using Windows API?
(I have tried a hand this way also using functions like 'OpenProcess Token'
, 'LookupPrivilegeValue', 'AdjustTokenPrivileges','LookupAccountName',
'InitializeSecurityDescriptor, 'SetSecurityDescriptorOwner',
'SetFileSecurity'.
But I did not succeed).
Team