Removed Pro2 comments
[openwide.git] / owSharedUtil.h
blob2fb9bd5ab47ccbea87ab579906c1000494e82f6d
1 /*
2 * Openwide -- control Windows common dialog
3 *
4 * Copyright (c) 2000 Luke Hudson
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 #ifndef C__Data_Code_C_openwide_owSharedUtil_h
24 #define C__Data_Code_C_openwide_owSharedUtil_h
25 #pragma once
27 #include <windows.h>
29 /* Prototype file C:\Data\Code\C\openwide\owSharedUtil.h *
30 * generated by Pro2 from files:
31 * C:\Data\Code\C\openwide\owSharedUtil.c
32 * on Tuesday, 12 July 2005 */
34 typedef int (*RegValEnumProc)(HKEY hk, const TCHAR *keyName, DWORD dwType, LPVOID pparam);
37 void dbg(char *szError, ...);
38 char * getDlgItemText(HWND hwnd, UINT uID);
39 DWORD GetDllVersion(LPCTSTR lpszDllName);
40 const char * geterrmsg(void);
41 BOOL isWinXP(void);
42 void regCloseKey(HKEY hk);
43 HKEY regCreateKey(HKEY hkParent, const char *szSubKey);
44 int regDeleteKey(HKEY hkParent, const char *szSubKey);
45 int regEnumValues(HKEY hkRoot, RegValEnumProc fp, LPVOID param);
46 DWORD regGetDWORD(HKEY hkRoot, const char *szValue, int *pSuccess);
47 int regGetMaxValueNameLength(HKEY hk, LPDWORD pValueDataLen);
48 HKEY regOpenKey(HKEY hkParent, const char *szSubKey);
49 BYTE *regReadBinaryData(HKEY hkRoot, const char *szValueName);
50 DWORD regReadDWORD(HKEY hkRoot, const char *szValueName, int *pSuccess);
51 char *regReadSZ(HKEY hk, const char *szValueName);
52 int regWriteBinaryData(HKEY hkRoot, const char *szValue, BYTE *buf, int bufSize );
53 int regWriteDWORD(HKEY hkRoot, const char *szValue, DWORD dwData);
54 int regWriteSZ(HKEY hkRoot, const char *szValueName, const char *szData);
55 void Warn(char *szError, ...);
57 #endif // C__Data_Code_C_openwide_owSharedUtil_h