Accessing the Access rights of the User
Posted on 2002-06-13
Hello everyone anybody can help me here?
We have a problem here coz we are making a SOFTWARE INSTALLER PROGRAM (for our multimedia products).
When installing our program (when on WINDOWS XP is used)
only the SYSTEM ADMINISTRATOR or the POWER USER have the full access of the system AND CAN write or remove installed programs in the system, BUT HOW ABOUT if the user is an ORDINARY USER. he cant install our software coz he/she dont have rights to install coz it will be a readOnly system. how can i change the system rights or how can i write files in the system and then make it restore the default?
for example i cant write from the WINDOWS DIRECTORY how can i make myself having a full access and then turn it back to its original rights.
anybody can help me with this one. and can give me CODES FOR IT. so that i can use it right away.
DirectoryPath - any directory specified
Filename - filename of the file you want to access
Kinds_rights - can be readonly or writetable etc.