MINOR: Change output filename
[openwide.git] / owSharedUtil.h
blob88c0a8ec0a1ff527b0ece1fa0b1c199d77d95268
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 /**
25 * @author Luke Hudson
26 * @licence GPL2
29 #define C__Data_Code_C_openwide_owSharedUtil_h
30 #pragma once
32 #include <windows.h>
34 /* Prototype file C:\Data\Code\C\openwide\owSharedUtil.h *
35 * generated by Pro2 from files:
36 * C:\Data\Code\C\openwide\owSharedUtil.c
37 * on Tuesday, 12 July 2005 */
39 typedef int (*RegValEnumProc)(HKEY hk, const TCHAR *keyName, DWORD dwType, LPVOID pparam);
42 void dbg(char *szError, ...);
43 char * getDlgItemText(HWND hwnd, UINT uID);
44 DWORD GetDllVersion(LPCTSTR lpszDllName);
45 const char * geterrmsg(void);
46 BOOL isWinXP(void);
47 BOOL DLLEXPORT isWin7(void);
48 void regCloseKey(HKEY hk);
49 HKEY regCreateKey(HKEY hkParent, const char *szSubKey);
50 int regDeleteKey(HKEY hkParent, const char *szSubKey);
51 int regEnumValues(HKEY hkRoot, RegValEnumProc fp, LPVOID param);
52 DWORD regGetDWORD(HKEY hkRoot, const char *szValue, int *pSuccess);
53 int regGetMaxValueNameLength(HKEY hk, LPDWORD pValueDataLen);
54 HKEY regOpenKey(HKEY hkParent, const char *szSubKey);
55 BYTE *regReadBinaryData(HKEY hkRoot, const char *szValueName);
56 DWORD regReadDWORD(HKEY hkRoot, const char *szValueName, int *pSuccess);
57 char *regReadSZ(HKEY hk, const char *szValueName);
58 int regWriteBinaryData(HKEY hkRoot, const char *szValue, BYTE *buf, int bufSize );
59 int regWriteDWORD(HKEY hkRoot, const char *szValue, DWORD dwData);
60 int regWriteSZ(HKEY hkRoot, const char *szValueName, const char *szData);
61 void Warn(char *szError, ...);
63 #endif // C__Data_Code_C_openwide_owSharedUtil_h