search for: specialmod

Displaying 1 result from an estimated 1 matches for "specialmod".

Did you mean: specialmode
2010 Jun 26
1
Problem in "porting" a function on windows to linux?
...False otherwise int isLogEnabled() { HKEY hKey; LONG lRes; DWORD dwType, dwSize = 0; int retVal = 0; if((RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\MyCorp", 0, KEY_ALL_ACCESS, &hKey)) == ERROR_SUCCESS) { lRes = RegQueryValueEx(hKey, "SpecialMode", 0, &dwType, NULL, &dwSize ); if(lRes == ERROR_SUCCESS) retVal = 1; RegCloseKey(hKey); } return retVal; } Since I think we don't have registry concept in linux and this function uses registry APIs, I'm confused to change it to be co...