G
Guest
Does any one have trouble with CeRegOpenKeyEx
I get an error : -2147467259 and I can't figure out what it is
I am using the following code
result = CeRegOpenKeyEx(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\.NETCompactFramework", 0, 0, &hKey)
char msg[1024]
LPVOID lpMsgBuf;
if( FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM, NULL, result, 0, (LPTSTR) &lpMsgBuf, 0, NULL) == 0
sprintf(msg, "%s ", (LPCSTR)lpMsgBuf);
MessageBox( NULL, msg, "Error Message", MB_OK )
// Free the buffer.
LocalFree( lpMsgBuf );
result comes back as -2147467259, and the only string I am able to get back from FormatMessage is "PE" ... :
Any ideas what I should be looking at
All other RAPI seem to work fine.
I get an error : -2147467259 and I can't figure out what it is
I am using the following code
result = CeRegOpenKeyEx(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\.NETCompactFramework", 0, 0, &hKey)
char msg[1024]
LPVOID lpMsgBuf;
if( FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM, NULL, result, 0, (LPTSTR) &lpMsgBuf, 0, NULL) == 0
sprintf(msg, "%s ", (LPCSTR)lpMsgBuf);
MessageBox( NULL, msg, "Error Message", MB_OK )
// Free the buffer.
LocalFree( lpMsgBuf );
result comes back as -2147467259, and the only string I am able to get back from FormatMessage is "PE" ... :
Any ideas what I should be looking at
All other RAPI seem to work fine.