1 | /*
|
---|
2 | * Definitions for Common Property Sheet User Interface
|
---|
3 | *
|
---|
4 | * Copyright 2006 Detlef Riekenberg
|
---|
5 | *
|
---|
6 | * This library is free software; you can redistribute it and/or
|
---|
7 | * modify it under the terms of the GNU Lesser General Public
|
---|
8 | * License as published by the Free Software Foundation; either
|
---|
9 | * version 2.1 of the License, or (at your option) any later version.
|
---|
10 | *
|
---|
11 | * This library 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 GNU
|
---|
14 | * Lesser General Public License for more details.
|
---|
15 | *
|
---|
16 | * You should have received a copy of the GNU Lesser General Public
|
---|
17 | * License along with this library; if not, write to the Free Software
|
---|
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
19 | *
|
---|
20 | */
|
---|
21 |
|
---|
22 | /*
|
---|
23 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
24 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
25 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
26 | * a choice of LGPL license versions is made available with the language indicating
|
---|
27 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
28 | * of the LGPL is applied is otherwise unspecified.
|
---|
29 | */
|
---|
30 |
|
---|
31 | #ifndef _COMPSTUI_
|
---|
32 | #define _COMPSTUI_
|
---|
33 |
|
---|
34 | #ifdef __cplusplus
|
---|
35 | extern "C" {
|
---|
36 | #endif
|
---|
37 |
|
---|
38 | /* DEFINES */
|
---|
39 |
|
---|
40 | #define PROPSHEETUI_INFO_VERSION 0x0100
|
---|
41 |
|
---|
42 | #define PSUIINFO_UNICODE 1
|
---|
43 |
|
---|
44 | /* return-values for CommonPropertySheetUI on success */
|
---|
45 | #define CPSUI_CANCEL 0
|
---|
46 | #define CPSUI_OK 1
|
---|
47 | #define CPSUI_RESTARTWINDOWS 2
|
---|
48 | #define CPSUI_REBOOTSYSTEM 3
|
---|
49 |
|
---|
50 |
|
---|
51 | /* TYPES */
|
---|
52 | typedef DWORD (CALLBACK *PFNCOMPROPSHEET)(HANDLE, UINT, LPARAM, LPARAM);
|
---|
53 |
|
---|
54 | typedef struct _PROPSHEETUI_INFO {
|
---|
55 | WORD cbSize;
|
---|
56 | WORD Version;
|
---|
57 | WORD Flags; /* set PSUIINFO_UNICODE for UNICODE */
|
---|
58 | WORD Reason;
|
---|
59 | HANDLE hComPropSheet;
|
---|
60 | PFNCOMPROPSHEET pfnComPropSheet;
|
---|
61 | LPARAM lParamInit;
|
---|
62 | DWORD UserData;
|
---|
63 | DWORD Result;
|
---|
64 | } PROPSHEETUI_INFO, *PPROPSHEETUI_INFO;
|
---|
65 |
|
---|
66 | typedef LONG (CALLBACK *PFNPROPSHEETUI)(PROPSHEETUI_INFO, LPARAM);
|
---|
67 |
|
---|
68 | /* FUNCTIONS */
|
---|
69 | LONG WINAPI CommonPropertySheetUIA(HWND, PFNPROPSHEETUI, LPARAM, LPDWORD);
|
---|
70 | LONG WINAPI CommonPropertySheetUIW(HWND, PFNPROPSHEETUI, LPARAM, LPDWORD);
|
---|
71 | #define CommonPropertySheetUI WINELIB_NAME_AW(CommonPropertySheetUI)
|
---|
72 |
|
---|
73 | ULONG_PTR WINAPI GetPSTUIUserData(HWND);
|
---|
74 | BOOL WINAPI SetPSTUIUserData(HWND, ULONG_PTR);
|
---|
75 |
|
---|
76 | #ifdef __cplusplus
|
---|
77 | } /* extern "C" */
|
---|
78 | #endif
|
---|
79 |
|
---|
80 | #endif /* _COMPSTUI_ */
|
---|