Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

static BOOL CRYPT_GetDefaultOIDKey ( DWORD  dwEncodingType,
LPCSTR  pszFuncName,
PHKEY  key 
) [static]

Definition at line 886 of file oid.c.

Referenced by CryptRegisterDefaultOIDFunction(), and CryptUnregisterDefaultOIDFunction().

00888 {
00889     LPSTR keyName;
00890     LONG r;
00891 
00892     keyName = CRYPT_GetKeyName(dwEncodingType, pszFuncName, "DEFAULT");
00893     TRACE("Key name is %s\n", debugstr_a(keyName));
00894 
00895     if (!keyName)
00896         return FALSE;
00897 
00898     r = RegCreateKeyExA(HKEY_LOCAL_MACHINE, keyName, 0, NULL, 0, KEY_ALL_ACCESS,
00899      NULL, key, NULL);
00900     CryptMemFree(keyName);
00901     if (r != ERROR_SUCCESS)
00902     {
00903         SetLastError(r);
00904         return FALSE;
00905     }
00906     return TRUE;
00907 }


Generated on Fri Feb 10 05:27:54 2012 for ReactOS by doxygen 1.6.3

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.