24 #define DBG_PROGNAME "OPENCBM-libmisc"
25 #endif // #ifndef DBG_PROGNAME
54 RegGetDWORD(IN HKEY RegKey, IN
char *SubKey, OUT LPDWORD Value)
65 valueLen =
sizeof(value);
67 rc = RegQueryValueEx(RegKey, SubKey, NULL, &lpType, (LPBYTE)&value, &valueLen);
71 if ((rc == ERROR_SUCCESS) && (valueLen == 4))
101 char * dllDebugFlagsName = NULL;
115 if (RegOpenKeyEx(HKEY_LOCAL_MACHINE,
129 " value, leaving default."));
void cbm_get_debugging_flags(const char *ModuleName)
Set the debugging flags.
#define FUNC_LEAVE_INT(_xxx)
char * cbmlibmisc_strdup(const char *const OldString)
Duplicate a given string.
Define makros for debugging purposes.
void cbmlibmisc_strfree(const char *String)
Free a string.
#define CBM_REGKEY_SERVICE
Define the IOCTL codes for the opencbm driver.
LONG RegGetDWORD(IN HKEY RegKey, IN char *SubKey, OUT LPDWORD Value)
Get a DWORD value from the registry.
char * cbmlibmisc_strcat(const char *First, const char *Second)
Concatenate two strings.
#define DBG_SUCCESS(_xxx)
#define CBM_REGKEY_SERVICE_DLL_DEBUGFLAGS
Some functions for string handling.