Real Software Forums
http://forums.realsoftware.com/

Windows 7 System32 Folder
http://forums.realsoftware.com/viewtopic.php?f=6&t=42472
Page 1 of 1

Author:  jayel49 [ Tue Jan 31, 2012 2:50 pm ]
Post subject:  Windows 7 System32 Folder

I want to hide a program usage/registration file in the Windows 7 System32 folder. How can I gain the necessary permissions/authority to read and write to this folder from within my application?

Author:  Schnitzelbrain [ Tue Jan 31, 2012 4:40 pm ]
Post subject:  Re: Windows 7 System32 Folder

I cant provide you a solution but have a question as i am on handling registration problem myself.

Why do you use system32 folder as storage. any advantages?

I used Registry (HKEY_local_USER), to store the software data and part of the copy protection.
The Data itself is salted and md5hashed to prevent change without permission.
Thanks to a helpfull user, I now use a serverside mysql dabase which is checked by PHP script on the same server, for the registration process.
There the user and run/trail time of the software is stored.

Schnitzelbrain

Author:  Jason_Adams [ Tue Jan 31, 2012 4:53 pm ]
Post subject:  Re: Windows 7 System32 Folder

jayel49 wrote:
I want to hide a program usage/registration file in the Windows 7 System32 folder. How can I gain the necessary permissions/authority to read and write to this folder from within my application?

I believe if you search the forums, there are Windows declares for requesting administrative rights for your application. Otherwise you require the user to right-click and "Run as Administrator". Generally, writing to these locations is avoided; and SpecialFolder is used for another location. You can make it a hidden file, also, and/r encrypt the file's contents.

Author:  charonn0 [ Tue Jan 31, 2012 6:00 pm ]
Post subject:  Re: Windows 7 System32 Folder

As has been stated, your application must be launched with full Administrator rights in order to gain write access to the System32 directory.

This privilege level requirement is in place because you should not be writing application-specific files to a global system directory. Ever. If you do then Raymond Chen will find you and exact terrible vengeance.

Special locations like the AppData directories are designed specifically for this kind of file. If your application-specific file must be used by all users of the system, then put it in the All Users profile.

Author:  jayel49 [ Wed Feb 01, 2012 4:08 pm ]
Post subject:  Re: Windows 7 System32 Folder

Thanks for all the advice. I was going to use System32 because it seemed a good place to hide a file.

After reading all the "warnings" I've decided to use the Registry instead.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/