Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Tue Nov 12, 2019 8:47 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Windows 7 System32 Folder
PostPosted: Tue Jan 31, 2012 2:50 pm 
Offline

Joined: Mon Jun 06, 2011 6:11 am
Posts: 15
Location: Salford, UK
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?


Top
 Profile  
Reply with quote  
 Post subject: Re: Windows 7 System32 Folder
PostPosted: Tue Jan 31, 2012 4:40 pm 
Offline

Joined: Mon Jan 23, 2012 10:12 am
Posts: 73
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

_________________
Using RealBasic Personal WIN 2011v3


Top
 Profile  
Reply with quote  
 Post subject: Re: Windows 7 System32 Folder
PostPosted: Tue Jan 31, 2012 4:53 pm 
Offline
User avatar

Joined: Fri Nov 10, 2006 4:10 pm
Posts: 1855
Location: Michigan, USA
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.

_________________
Windows 8 x64
Windows XP Pro SP3
Ubuntu 11.04 via Virtual Box
RS Enterprise 2012r1.1

Programming Tutorials & Free Projects: http://www.JasonTheAdams.com
"Christianity has not been tried and found wanting; it has been found difficult and not tried." - G.K. Chesterton


Top
 Profile  
Reply with quote  
 Post subject: Re: Windows 7 System32 Folder
PostPosted: Tue Jan 31, 2012 6:00 pm 
Offline
User avatar

Joined: Mon Apr 02, 2007 2:08 am
Posts: 1225
Location: San Francisco, CA, USA
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.

_________________
Boredom Software


Top
 Profile  
Reply with quote  
 Post subject: Re: Windows 7 System32 Folder
PostPosted: Wed Feb 01, 2012 4:08 pm 
Offline

Joined: Mon Jun 06, 2011 6:11 am
Posts: 15
Location: Salford, UK
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group