Where to store program settings instead of HKEY_LOCAL_MACHINE?

后端 未结 10 1826
星月不相逢
星月不相逢 2020-12-05 01:19

I have some program settings that are currently stored in HKEY_LOCAL_MACHINE. Due to Vista and locked down users, some users don\'t have permission to HKEY_LOCAL_MACHINE, an

10条回答
  •  误落风尘
    2020-12-05 02:09

    What @uli said, with one exception.

    Settings that never change or should only be changed by an administrator can --should, even-- be kept in the same folder as the application to help prevent tampering.

    Connection info for a database sounds like the kind of thing that shouldn't be changed without administrator intervention. Therefore in this case your application's folder might be okay.

提交回复
热议问题