Release/: Updated readme.txt and added gpl-2.0.txt
[openwide.git] / owSharedUtil.h
blob99564ff9e1ab67e4855731e6429dcbf7ee2da2b0
1 #ifndef C__Data_Code_C_openwide_owSharedUtil_h
2 /**
3 * @author Luke Hudson
4 * @licence GPL2
5 */
7 #define C__Data_Code_C_openwide_owSharedUtil_h
8 #pragma once
10 #include <windows.h>
12 /* Prototype file C:\Data\Code\C\openwide\owSharedUtil.h *
13 * generated by Pro2 from files:
14 * C:\Data\Code\C\openwide\owSharedUtil.c
15 * on Tuesday, 12 July 2005 */
17 typedef int (*RegValEnumProc)(HKEY hk, const TCHAR *keyName, DWORD dwType, LPVOID pparam);
20 void dbg(char *szError, ...);
21 char * getDlgItemText(HWND hwnd, UINT uID);
22 DWORD GetDllVersion(LPCTSTR lpszDllName);
23 const char * geterrmsg(void);
24 BOOL isWinXP(void);
25 void regCloseKey(HKEY hk);
26 HKEY regCreateKey(HKEY hkParent, const char *szSubKey);
27 int regDeleteKey(HKEY hkParent, const char *szSubKey);
28 int regEnumValues(HKEY hkRoot, RegValEnumProc fp, LPVOID param);
29 DWORD regGetDWORD(HKEY hkRoot, const char *szValue, int *pSuccess);
30 int regGetMaxValueNameLength(HKEY hk, LPDWORD pValueDataLen);
31 HKEY regOpenKey(HKEY hkParent, const char *szSubKey);
32 BYTE *regReadBinaryData(HKEY hkRoot, const char *szValueName);
33 DWORD regReadDWORD(HKEY hkRoot, const char *szValueName, int *pSuccess);
34 char *regReadSZ(HKEY hk, const char *szValueName);
35 int regWriteBinaryData(HKEY hkRoot, const char *szValue, BYTE *buf, int bufSize );
36 int regWriteDWORD(HKEY hkRoot, const char *szValue, DWORD dwData);
37 int regWriteSZ(HKEY hkRoot, const char *szValueName, const char *szData);
38 void Warn(char *szError, ...);
40 #endif // C__Data_Code_C_openwide_owSharedUtil_h