Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BOOL GetBinKey(char *key, BYTE *value, DWORD size)
- {
- HKEY hKey;
- if (RegOpenKeyEx(HKEY_LOCAL_MACHINE,
- DEFAULT_SUBKEY,
- 0,
- KEY_QUERY_VALUE | KEY_WOW64_32KEY,
- &hKey) == ERROR_SUCCESS)
- {
- if (RegQueryValueEx(hKey,
- key,
- NULL,
- NULL,
- (LPBYTE)value,
- &size) != ERROR_SUCCESS)
- {
- return FALSE;
- }
- }
- else return FALSE;
- return TRUE;
- }
Advertisement
Add Comment
Please, Sign In to add comment