Results 1 to 5 of 5

Thread: User Defined GetSetting & SaveSetting

  1. #1

    Thread Starter
    Fanatic Member aconybeare's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    772

    User Defined GetSetting & SaveSetting

    Hello,

    I'm trying to use the registry, to store my apps settings. I want the settings to be the same for all users, but keep track of details like last run and number of files executed etc..

    I've defined my own functions, which store under Local_Machine as opposed to Current_User. These work until someone logs in without administrative privileges, at which point GetSetting works but SaveSetting does not.
    Does anyone know how to override the default security settings when making the API Calls?

    Any help will be greatly appreciated

    Cheers Al

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132
    This is a reason that I personally never bother with saving any setting to registry - I use good old INI files. I know many will argue this but let me tell you - INI file technic never fails while registry does and will under circumstances. Besides, registry can be very easily refreshed on every system boot from your LAN using some admin script. Some corps like banks, funds, insurances and some others do enforce this and there is no way arround. Users (regular users) are not allowed to installed anything on their system except for business apps and somethimes they don't even have permissions to copy files over to a local drive.
    So, maybe you'll reconsider your current logic. Let me know if yes so I'll post some sample project for you.

    Cheers.

  3. #3

    Thread Starter
    Fanatic Member aconybeare's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    772
    RhinoBull,

    Thanks someone once mentioned using .inis before. I'd really appreciate an example or two

    Many, many thanks

    Al

  4. #4
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132
    No problem - just open attachments.

  5. #5

    Thread Starter
    Fanatic Member aconybeare's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    772
    RhinoBull,

    Great thanks, will definitely use it if I can't get the registry to work in the next day or so.

    Cheers Al

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width