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

BOOL WINAPI CryptGetOIDFunctionValue ( DWORD  dwEncodingType,
LPCSTR  pszFuncName,
LPCSTR  pszOID,
LPCWSTR  pwszValueName,
DWORD *  pdwValueType,
BYTE pbValueData,
DWORD *  pcbValueData 
)

Definition at line 690 of file oid.c.

00693 {
00694     LPSTR szKey;
00695     LONG rc;
00696     HKEY hKey;
00697 
00698     TRACE("%x %s %s %s %p %p %p\n", dwEncodingType, debugstr_a(pszFuncName),
00699      debugstr_a(pszOID), debugstr_w(pwszValueName), pdwValueType, pbValueData,
00700      pcbValueData);
00701 
00702     if (!GET_CERT_ENCODING_TYPE(dwEncodingType))
00703         return TRUE;
00704 
00705     if (!pszFuncName || !pszOID || !pwszValueName)
00706     {
00707         SetLastError(ERROR_INVALID_PARAMETER);
00708         return FALSE;
00709     }
00710 
00711     szKey = CRYPT_GetKeyName(dwEncodingType, pszFuncName, pszOID);
00712     rc = RegOpenKeyA(HKEY_LOCAL_MACHINE, szKey, &hKey);
00713     CryptMemFree(szKey);
00714     if (rc)
00715         SetLastError(rc);
00716     else
00717     {
00718         rc = RegQueryValueExW(hKey, pwszValueName, NULL, pdwValueType,
00719          pbValueData, pcbValueData);
00720         if (rc)
00721             SetLastError(rc);
00722         RegCloseKey(hKey);
00723     }
00724     return rc ? FALSE : TRUE;
00725 }


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.