VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/advpub.h@ 33282

Last change on this file since 33282 was 16477, checked in by vboxsync, 16 years ago

LGPL disclaimer by filemuncher

  • Property svn:eol-style set to native
File size: 12.6 KB
Line 
1/*
2 * Copyright 2004 Huw D M Davies
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19/*
20 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27#ifndef __WINE_ADVPUB_H
28#define __WINE_ADVPUB_H
29
30#include <setupapi.h>
31#include <cfgmgr32.h>
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
37#ifndef S_ASYNCHRONOUS
38#define S_ASYNCHRONOUS _HRESULT_TYPEDEF_(0x401E8L)
39#endif
40
41typedef struct _CabInfoA
42{
43 LPSTR pszCab;
44 LPSTR pszInf;
45 LPSTR pszSection;
46 CHAR szSrcPath[MAX_PATH];
47 DWORD dwFlags;
48} CABINFOA, *PCABINFOA;
49
50typedef struct _CabInfoW
51{
52 LPWSTR pszCab;
53 LPWSTR pszInf;
54 LPWSTR pszSection;
55 WCHAR szSrcPath[MAX_PATH];
56 DWORD dwFlags;
57} CABINFOW, *PCABINFOW;
58
59DECL_WINELIB_TYPE_AW(CABINFO)
60DECL_WINELIB_TYPE_AW(PCABINFO)
61
62typedef struct _PERUSERSECTIONA
63{
64 CHAR szGUID[39 /*MAX_GUID_STRING_LEN*/ + 20];
65 CHAR szDispName[128];
66 CHAR szLocale[10];
67 CHAR szStub[MAX_PATH * 4];
68 CHAR szVersion[32];
69 CHAR szCompID[128];
70 DWORD dwIsInstalled;
71 BOOL bRollback;
72} PERUSERSECTIONA, *PPERUSERSECTIONA;
73
74typedef struct _PERUSERSECTIONW
75{
76 WCHAR szGUID[39 /*MAX_GUID_STRING_LEN*/ + 20];
77 WCHAR szDispName[128];
78 WCHAR szLocale[10];
79 WCHAR szStub[MAX_PATH * 4];
80 WCHAR szVersion[32];
81 WCHAR szCompID[128];
82 DWORD dwIsInstalled;
83 BOOL bRollback;
84} PERUSERSECTIONW, *PPERUSERSECTIONW;
85
86DECL_WINELIB_TYPE_AW(PERUSERSECTION)
87DECL_WINELIB_TYPE_AW(PPERUSERSECTION)
88
89typedef struct _StrEntryA
90{
91 LPSTR pszName;
92 LPSTR pszValue;
93} STRENTRYA, *LPSTRENTRYA;
94
95typedef struct _StrEntryW
96{
97 LPWSTR pszName;
98 LPWSTR pszValue;
99} STRENTRYW, *LPSTRENTRYW;
100
101DECL_WINELIB_TYPE_AW(STRENTRY)
102DECL_WINELIB_TYPE_AW(LPSTRENTRY)
103
104typedef struct _StrTableA
105{
106 DWORD cEntries;
107 STRENTRYA* pse;
108} STRTABLEA, *LPSTRTABLEA;
109typedef const STRTABLEA CSTRTABLEA, *LPCSTRTABLEA;
110
111typedef struct _StrTableW
112{
113 DWORD cEntries;
114 STRENTRYW* pse;
115} STRTABLEW, *LPSTRTABLEW;
116typedef const STRTABLEW CSTRTABLEW, *LPCSTRTABLEW;
117
118DECL_WINELIB_TYPE_AW(STRTABLE)
119DECL_WINELIB_TYPE_AW(CSTRTABLE)
120DECL_WINELIB_TYPE_AW(LPSTRTABLE)
121DECL_WINELIB_TYPE_AW(LPCSTRTABLE)
122
123/* Flags for AddDelBackupEntry */
124#define AADBE_ADD_ENTRY 0x01
125#define AADBE_DEL_ENTRY 0x02
126
127/* Flags for AdvInstallFile */
128#define AIF_WARNIFSKIP 0x00000001
129#define AIF_NOSKIP 0x00000002
130#define AIF_NOVERSIONCHECK 0x00000004
131#define AIF_FORCE_FILE_IN_USE 0x00000008
132#define AIF_NOOVERWRITE 0x00000010
133#define AIF_NO_VERSION_DIALOG 0x00000020
134#define AIF_REPLACEONLY 0x00000400
135#define AIF_NOLANGUAGECHECK 0x10000000
136#define AIF_QUIET 0x20000000
137
138/* Flags for RunSetupCommand */
139#define RSC_FLAG_INF 0x00000001
140#define RSC_FLAG_SKIPDISKSPACECHECK 0x00000002
141#define RSC_FLAG_QUIET 0x00000004
142#define RSC_FLAG_NGCONV 0x00000008
143#define RSC_FLAG_UPDHLPDLLS 0x00000010
144#define RSC_FLAG_DELAYREGISTEROCX 0x00000200
145#define RSC_FLAG_SETUPAPI 0x00000400
146
147/* Flags for DelNode */
148#define ADN_DEL_IF_EMPTY 0x00000001
149#define ADN_DONT_DEL_SUBDIRS 0x00000002
150#define ADN_DONT_DEL_DIR 0x00000004
151#define ADN_DEL_UNC_PATHS 0x00000008
152
153/* Flags for RegRestoreAll, RegSaveRestore, RegSaveRestoreOnINF */
154#define IE4_RESTORE 0x00000001
155#define IE4_BACKNEW 0x00000002
156#define IE4_NODELETENEW 0x00000004
157#define IE4_NOMESSAGES 0x00000008
158#define IE4_NOPROGRESS 0x00000010
159#define IE4_NOENUMKEY 0x00000020
160#define IE4_NO_CRC_MAPPING 0x00000040
161#define IE4_REGSECTION 0x00000080
162#define IE4_FRDOALL 0x00000100
163#define IE4_UPDREFCNT 0x00000200
164#define IE4_USEREFCNT 0x00000400
165#define IE4_EXTRAINCREFCNT 0x00000800
166
167/* Flags for file save and restore functions */
168#define AFSR_RESTORE IE4_RESTORE
169#define AFSR_BACKNEW IE4_BACKNEW
170#define AFSR_NODELETENEW IE4_NODELETENEW
171#define AFSR_NOMESSAGES IE4_NOMESSAGES
172#define AFSR_NOPROGRESS IE4_NOPROGRESS
173#define AFSR_UPDREFCNT IE4_UPDREFCNT
174#define AFSR_USEREFCNT IE4_USEREFCNT
175#define AFSR_EXTRAINCREFCNT IE4_EXTRAINCREFCNT
176
177HRESULT WINAPI AddDelBackupEntryA(LPCSTR lpcszFileList, LPCSTR lpcszBackupDir,
178 LPCSTR lpcszBaseName, DWORD dwFlags);
179HRESULT WINAPI AddDelBackupEntryW(LPCWSTR lpcszFileList, LPCWSTR lpcszBackupDir,
180 LPCWSTR lpcszBaseName, DWORD dwFlags);
181#define AddDelBackupEntry WINELIB_NAME_AW(AddDelBackupEntry)
182HRESULT WINAPI AdvInstallFileA(HWND hwnd, LPCSTR lpszSourceDir,
183 LPCSTR lpszSourceFile, LPCSTR lpszDestDir, LPCSTR lpszDestFile,
184 DWORD dwFlags, DWORD dwReserved);
185HRESULT WINAPI AdvInstallFileW(HWND hwnd, LPCWSTR lpszSourceDir,
186 LPCWSTR lpszSourceFile, LPCWSTR lpszDestDir, LPCWSTR lpszDestFile,
187 DWORD dwFlags, DWORD dwReserved);
188#define AdvInstallFile WINELIB_NAME_AW(AdvInstallFile)
189HRESULT WINAPI CloseINFEngine(HINF hInf);
190HRESULT WINAPI DelNodeA(LPCSTR pszFileOrDirName, DWORD dwFlags);
191HRESULT WINAPI DelNodeW(LPCWSTR pszFileOrDirName, DWORD dwFlags);
192#define DelNode WINELIB_NAME_AW(DelNode)
193HRESULT WINAPI DelNodeRunDLL32A(HWND,HINSTANCE,LPSTR,INT);
194HRESULT WINAPI DelNodeRunDLL32W(HWND,HINSTANCE,LPWSTR,INT);
195#define DelNodeRunDLL32 WINELIB_NAME_AW(DelNodeRunDLL32)
196HRESULT WINAPI ExecuteCabA( HWND hwnd, CABINFOA* pCab, LPVOID pReserved );
197HRESULT WINAPI ExecuteCabW( HWND hwnd, CABINFOW* pCab, LPVOID pReserved );
198#define ExecuteCab WINELIB_NAME_AW(ExecuteCab)
199HRESULT WINAPI ExtractFilesA(LPCSTR,LPCSTR,DWORD,LPCSTR,LPVOID,DWORD);
200HRESULT WINAPI ExtractFilesW(LPCWSTR,LPCWSTR,DWORD,LPCWSTR,LPVOID,DWORD);
201#define ExtractFiles WINELIB_NAME_AW(ExtractFiles)
202HRESULT WINAPI FileSaveMarkNotExistA(LPSTR pszFileList, LPSTR pszDir, LPSTR pszBaseName);
203HRESULT WINAPI FileSaveMarkNotExistW(LPWSTR pszFileList, LPWSTR pszDir, LPWSTR pszBaseName);
204#define FileSaveMarkNotExist WINELIB_NAME_AW(FileSaveMarkNotExist)
205HRESULT WINAPI FileSaveRestoreA(HWND hDlg, LPSTR pszFileList, LPSTR pszDir,
206 LPSTR pszBaseName, DWORD dwFlags);
207HRESULT WINAPI FileSaveRestoreW(HWND hDlg, LPWSTR pszFileList, LPWSTR pszDir,
208 LPWSTR pszBaseName, DWORD dwFlags);
209#define FileSaveRestore WINELIB_NAME_AW(FileSaveRestore)
210HRESULT WINAPI FileSaveRestoreOnINFA(HWND hWnd, LPCSTR pszTitle, LPCSTR pszINF,
211 LPCSTR pszSection, LPCSTR pszBackupDir, LPCSTR pszBaseBackupFile, DWORD dwFlags);
212HRESULT WINAPI FileSaveRestoreOnINFW(HWND hWnd, LPCWSTR pszTitle, LPCWSTR pszINF,
213 LPCWSTR pszSection, LPCWSTR pszBackupDir, LPCWSTR pszBaseBackupFile, DWORD dwFlags);
214#define FileSaveRestoreOnINF WINELIB_NAME_AW(FileSaveRestoreOnINF)
215HRESULT WINAPI GetVersionFromFileA(LPCSTR lpszFilename, LPDWORD pdwMSVer, LPDWORD pdwLSVer, BOOL bVersion);
216HRESULT WINAPI GetVersionFromFileW(LPCWSTR lpszFilename, LPDWORD pdwMSVer, LPDWORD pdwLSVer, BOOL bVersion);
217#define GetVersionFromFile WINELIB_NAME_AW(GetVersionFromFile)
218HRESULT WINAPI GetVersionFromFileExA(LPCSTR lpszFilename, LPDWORD pdwMSVer, LPDWORD pdwLSVer, BOOL bVersion);
219HRESULT WINAPI GetVersionFromFileExW(LPCWSTR lpszFilename, LPDWORD pdwMSVer, LPDWORD pdwLSVer, BOOL bVersion);
220#define GetVersionFromFileEx WINELIB_NAME_AW(GetVersionFromFileEx)
221BOOL WINAPI IsNTAdmin(DWORD,LPDWORD);
222INT WINAPI LaunchINFSectionA(HWND,HINSTANCE,LPSTR,INT);
223INT WINAPI LaunchINFSectionW(HWND,HINSTANCE,LPWSTR,INT);
224#define LaunchINFSection WINELIB_NAME_AW(LaunchINFSection)
225HRESULT WINAPI LaunchINFSectionExA(HWND,HINSTANCE,LPSTR,INT);
226HRESULT WINAPI LaunchINFSectionExW(HWND,HINSTANCE,LPWSTR,INT);
227#define LaunchINFSectionEx WINELIB_NAME_AW(LaunchINFSectionEx)
228DWORD WINAPI NeedRebootInit(VOID);
229BOOL WINAPI NeedReboot(DWORD dwRebootCheck);
230HRESULT WINAPI OpenINFEngineA(LPCSTR pszInfFilename, LPCSTR pszInstallSection,
231 DWORD dwFlags, HINF *phInf, PVOID pvReserved);
232HRESULT WINAPI OpenINFEngineW(LPCWSTR pszInfFilename, LPCWSTR pszInstallSection,
233 DWORD dwFlags, HINF *phInf, PVOID pvReserved);
234#define OpenINFEngine WINELIB_NAME_AW(OpenINFEngine)
235HRESULT WINAPI RebootCheckOnInstallA(HWND hWnd, LPCSTR pszINF, LPCSTR pszSec, DWORD dwReserved);
236HRESULT WINAPI RebootCheckOnInstallW(HWND hWnd, LPCWSTR pszINF, LPCWSTR pszSec, DWORD dwReserved);
237#define RebootCheckOnInstall WINELIB_NAME_AW(RebootCheckOnInstall)
238HRESULT WINAPI RegInstallA(HMODULE hm, LPCSTR pszSection, const STRTABLEA* pstTable);
239HRESULT WINAPI RegInstallW(HMODULE hm, LPCWSTR pszSection, const STRTABLEW* pstTable);
240#define RegInstall WINELIB_NAME_AW(RegInstall)
241HRESULT WINAPI RegRestoreAllA(HWND hWnd, LPSTR pszTitleString, HKEY hkBackupKey);
242HRESULT WINAPI RegRestoreAllW(HWND hWnd, LPWSTR pszTitleString, HKEY hkBackupKey);
243#define RegRestoreAll WINELIB_NAME_AW(RegRestoreAll)
244HRESULT WINAPI RegSaveRestoreA(HWND hWnd, LPCSTR pszTitleString, HKEY hkBackupKey,
245 LPCSTR pcszRootKey, LPCSTR pcszSubKey, LPCSTR pcszValueName, DWORD dwFlags);
246HRESULT WINAPI RegSaveRestoreW(HWND hWnd, LPCWSTR pszTitleString, HKEY hkBackupKey,
247 LPCWSTR pcszRootKey, LPCWSTR pcszSubKey, LPCWSTR pcszValueName, DWORD dwFlags);
248#define RegSaveRestore WINELIB_NAME_AW(RegSaveRestore)
249HRESULT WINAPI RegSaveRestoreOnINFA(HWND hWnd, LPCSTR pszTitle, LPCSTR pszINF,
250 LPCSTR pszSection, HKEY hHKLMBackKey, HKEY hHKCUBackKey, DWORD dwFlags);
251HRESULT WINAPI RegSaveRestoreOnINFW(HWND hWnd, LPCWSTR pszTitle, LPCWSTR pszINF,
252 LPCWSTR pszSection, HKEY hHKLMBackKey, HKEY hHKCUBackKey, DWORD dwFlags);
253#define RegSaveRestoreOnINF WINELIB_NAME_AW(RegSaveRestoreOnINF)
254HRESULT WINAPI RunSetupCommandA(HWND hWnd,
255 LPCSTR szCmdName, LPCSTR szInfSection, LPCSTR szDir, LPCSTR lpszTitle,
256 HANDLE *phEXE, DWORD dwFlags, LPVOID pvReserved);
257HRESULT WINAPI RunSetupCommandW(HWND hWnd,
258 LPCWSTR szCmdName, LPCWSTR szInfSection, LPCWSTR szDir, LPCWSTR lpszTitle,
259 HANDLE *phEXE, DWORD dwFlags, LPVOID pvReserved);
260#define RunSetupCommand WINELIB_NAME_AW(RunSetupCommand)
261HRESULT WINAPI SetPerUserSecValuesA(PERUSERSECTIONA* pPerUser);
262HRESULT WINAPI SetPerUserSecValuesW(PERUSERSECTIONW* pPerUser);
263#define SetPerUserSecValues WINELIB_NAME_AW(SetPerUserSecValues)
264HRESULT WINAPI TranslateInfStringA(LPCSTR pszInfFilename, LPCSTR pszInstallSection,
265 LPCSTR pszTranslateSection, LPCSTR pszTranslateKey, LPSTR pszBuffer,
266 DWORD dwBufferSize, PDWORD pdwRequiredSize, PVOID pvReserved);
267HRESULT WINAPI TranslateInfStringW(LPCWSTR pszInfFilename, LPCWSTR pszInstallSection,
268 LPCWSTR pszTranslateSection, LPCWSTR pszTranslateKey, LPWSTR pszBuffer,
269 DWORD dwBufferSize, PDWORD pdwRequiredSize, PVOID pvReserved);
270#define TranslateInfString WINELIB_NAME_AW(TranslateInfString)
271HRESULT WINAPI TranslateInfStringExA(HINF hInf, LPCSTR pszInfFilename,
272 LPCSTR pszTranslateSection, LPCSTR pszTranslateKey, LPSTR pszBuffer,
273 DWORD dwBufferSize, PDWORD pdwRequiredSize, PVOID pvReserved);
274HRESULT WINAPI TranslateInfStringExW(HINF hInf, LPCWSTR pszInfFilename,
275 LPCWSTR pszTranslateSection, LPCWSTR pszTranslateKey, LPWSTR pszBuffer,
276 DWORD dwBufferSize, PDWORD pdwRequiredSize, PVOID pvReserved);
277#define TranslateInfStringEx WINELIB_NAME_AW(TranslateInfStringEx)
278HRESULT WINAPI UserInstStubWrapperA(HWND hWnd, HINSTANCE hInstance, LPSTR pszParms, INT nShow);
279HRESULT WINAPI UserInstStubWrapperW(HWND hWnd, HINSTANCE hInstance, LPWSTR pszParms, INT nShow);
280#define UserInstStubWrapper WINELIB_NAME_AW(UserInstStubWrapper)
281HRESULT WINAPI UserUnInstStubWrapperA(HWND hWnd, HINSTANCE hInstance, LPSTR pszParms, INT nShow);
282HRESULT WINAPI UserUnInstStubWrapperW(HWND hWnd, HINSTANCE hInstance, LPWSTR pszParms, INT nShow);
283#define UserUnInstStubWrapper WINELIB_NAME_AW(UserUnInstStubWrapper)
284
285#ifdef __cplusplus
286}
287#endif
288
289#endif /* __WINE_ADVPUB_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette