The information in this article applies to:
SUMMARYIn some situations, it is desirable to store Crypto Key material in a location of the registry other than the default location of HKEY_CURRENT_USER. The flag, CRYPT_MACHINE_KEYSET, when combined with CRYPT_NEW_KEYSET in CryptAcquireContext() accomplishes this. CRYPT_MACHINE_KEYSET is available starting with Service Pack 2 (SP2) of Windows NT 4.0. MORE INFORMATION
Crypto Key material is stored in HKEY_CURRENT_USER. If you logon to a
machine interactively, you will normally see two entries below the registry
key HKEY_USERS: .Default, and an entry similar to S-1-5-21-x-x-x-y which is
the SID of the interactively logged on user. If you are running a version
of Windows NT earlier than 4.0, and if you access HKEY_CURRENT_USER from a
service or from a user account that did not logon interactively, registry
access to HKEY_CURRENT_USER goes to HKEY_USERS\.Default, not to your user's
profile. Because of this, you are not able to access any user specific
Crypto Key material, which would normally be seen if the user logged on
interactively.
Additional query words:
Keywords : kbAPI kbCrypt kbKernBase kbDSupport kbGrpKernBase |
Last Reviewed: December 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |