VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/npapi.h

最後變更 在這個檔案是 53206,由 vboxsync 提交於 10 年 前

Devices/vmsvga: header fixes

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 7.8 KB
 
1/*
2 * Copyright (C) 2004 Juan Lang
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 * Oracle 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, Oracle 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
28#ifndef __WINE_NPAPI_H__
29#define __WINE_NPAPI_H__
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
35/* capabilities */
36#define WNNC_SPEC_VERSION 0x00000001
37#define WNNC_SPEC_VERSION51 0x00050001
38#define WNNC_NET_TYPE 0x00000002
39#define WNNC_NET_NONE 0x00000000
40
41#define WNNC_DRIVER_VERSION 0x00000003
42
43#define WNNC_USER 0x00000004
44#define WNNC_USR_GETUSER 0x00000001
45
46#define WNNC_CONNECTION 0x00000006
47#define WNNC_CON_ADDCONNECTION 0x00000001
48#define WNNC_CON_CANCELCONNECTION 0x00000002
49#define WNNC_CON_GETCONNECTIONS 0x00000004
50#define WNNC_CON_ADDCONNECTION3 0x00000008
51#define WNNC_CON_GETPERFORMANCE 0x00000040
52#define WNNC_CON_DEFER 0x00000080
53
54#define WNNC_DIALOG 0x00000008
55#define WNNC_DLG_DEVICEMODE 0x00000001
56#define WNNC_DLG_PROPERTYDIALOG 0x00000020
57#define WNNC_DLG_SEARCHDIALOG 0x00000040
58#define WNNC_DLG_FORMATNETWORKNAME 0x00000080
59#define WNNC_DLG_PERMISSIONEDITOR 0x00000100
60#define WNNC_DLG_GETRESOURCEPARENT 0x00000200
61#define WNNC_DLG_GETRESOURCEINFORMATION 0x00000800
62
63#define WNNC_ADMIN 0x00000009
64#define WNNC_ADM_GETDIRECTORYTYPE 0x00000001
65#define WNNC_ADM_DIRECTORYNOTIFY 0x00000002
66
67#define WNNC_ENUMERATION 0x0000000b
68#define WNNC_ENUM_GLOBAL 0x00000001
69#define WNNC_ENUM_LOCAL 0x00000002
70#define WNNC_ENUM_CONTEXT 0x00000004
71
72#define WNNC_START 0x0000000c
73#define WNNC_WAIT_FOR_START 0x00000001
74
75typedef DWORD (APIENTRY *PF_NPGetCaps)(DWORD ndex);
76
77/* get user */
78typedef DWORD (APIENTRY *PF_NPGetUser)(LPWSTR lpName, LPWSTR lpUserName,
79 LPDWORD lpnBufferLen);
80
81/* enumeration-related */
82typedef DWORD (APIENTRY *PF_NPOpenEnum)(DWORD dwScope, DWORD dwType, DWORD dwUsage,
83 LPNETRESOURCEW lpNetResource, LPHANDLE lphEnum);
84typedef DWORD (APIENTRY *PF_NPEnumResource)(HANDLE hEnum, LPDWORD lpcCount,
85 LPVOID lpBuffer, LPDWORD lpBufferSize);
86typedef DWORD (APIENTRY *PF_NPCloseEnum)(HANDLE hEnum);
87typedef DWORD (APIENTRY *PF_NPGetResourceInformation)(LPNETRESOURCEW lpNetResource,
88 LPVOID lpBuffer, LPDWORD lpcbBuffer, LPWSTR* lplpSystem);
89
90/* connection-related */
91typedef DWORD (APIENTRY *PF_NPAddConnection)(LPNETRESOURCEW lpNetResource,
92 LPWSTR lpPassword, LPWSTR lpUserName);
93typedef DWORD (APIENTRY *PF_NPAddConnection3)(HWND hwndOwner,
94 LPNETRESOURCEW lpNetResource, LPWSTR lpPassword, LPWSTR lpUserName,
95 DWORD dwFlags);
96typedef DWORD (APIENTRY *PF_NPCancelConnection)(LPWSTR lpName, BOOL fForce);
97typedef DWORD (APIENTRY *PF_NPGetConnection)(LPWSTR lpLocalName,
98 LPWSTR lpRemoteName, LPDWORD lpnBufferLen);
99
100/* network name manipulation */
101typedef DWORD (APIENTRY *PF_NPGetUniversalName)(LPWSTR lpLocalPath,
102 DWORD dwInfoLevel, LPVOID lpBuffer, LPDWORD lpnBufferSize);
103typedef DWORD (APIENTRY *PF_NPFormatNetworkName)(LPWSTR lpRemoteName,
104 LPWSTR lpFormattedName, LPDWORD lpnLength, DWORD dwFlags,
105 DWORD dwAveCharPerLine);
106
107/* dialogs */
108typedef DWORD (APIENTRY *PF_NPDeviceMode)(HWND hParent);
109
110/* search dialog */
111#define WNSRCH_REFRESH_FIRST_LEVEL 0x00000001
112
113typedef DWORD (APIENTRY *PF_NPSearchDialog)(HWND hwndParent,
114 LPNETRESOURCEW lpNetResource, LPVOID lpBuffer, DWORD cbBuffer,
115 LPDWORD lpnFlags);
116
117/* property dialog */
118
119#define WNTYPE_DRIVE 1
120#define WNTYPE_FILE 2
121#define WNTYPE_PRINTER 3
122#define WNTYPE_COMM 4
123
124#define WNPS_FILE 0
125#define WNPS_DIR 1
126#define WNPS_MULT 2
127
128typedef DWORD (APIENTRY *PF_NPGetPropertyText)(DWORD iButton, DWORD nPropSel,
129 LPWSTR lpName, LPWSTR lpButtonName, DWORD nButtonNameLen, DWORD nType);
130
131typedef DWORD (APIENTRY *PF_NPPropertyDialog)(HWND hwndParent, DWORD iButtonDlg,
132 DWORD nPropSel, LPWSTR lpFileName, DWORD nType);
133
134/* admin */
135#define WNDT_NORMAL 0
136#define WNDT_NETWORK 1
137
138#define WNDN_MKDIR 1
139#define WNDN_RMDIR 2
140#define WNDN_MVDIR 3
141
142typedef DWORD (APIENTRY *PF_NPGetDirectoryType)(LPWSTR lpName, LPINT lpType,
143 BOOL bFlushCache);
144typedef DWORD (APIENTRY *PF_NPDirectoryNotify)(HWND hwnd, LPWSTR lpDir,
145 DWORD dwOper);
146
147/* permission editor dialogs */
148#define WNPERMC_PERM 0x00000001
149#define WNPERMC_AUDIT 0x00000002
150#define WNPERMC_OWNER 0x00000004
151
152typedef DWORD (APIENTRY *PF_NPFMXGetPermCaps)(LPWSTR lpDriveName);
153
154#define WNPERM_DLG_PERM 0
155#define WNPERM_DLG_AUDIT 1
156#define WNPERM_DLG_OWNER 2
157
158typedef DWORD (APIENTRY *PF_NPFMXEditPerm)(LPWSTR lpDriveName, HWND hwndFMX,
159 DWORD nDialogType);
160
161typedef DWORD (APIENTRY *PF_NPFMXGetPermHelp)(LPWSTR lpDriveName,
162 DWORD nDialogType, BOOL fDirectory, LPVOID lpFileNameBuffer,
163 LPDWORD lpBufferSize, LPDWORD lpnHelpContext);
164
165VOID WINAPI WNetSetLastErrorA(DWORD err, LPSTR lpError, LPSTR lpProviders);
166VOID WINAPI WNetSetLastErrorW(DWORD err, LPWSTR lpError, LPWSTR lpProviders);
167#define WNetSetLastError WINELIB_NAME_AW(WNetSetLastError)
168
169/* provider classes */
170#define WN_NETWORK_CLASS 0x00000001
171#define WN_CREDENTIAL_CLASS 0x00000002
172#define WN_PRIMARY_AUTHENT_CLASS 0x00000004
173#define WN_SERVICE_CLASS 0x00000008
174
175#define WN_VALID_LOGON_ACCOUNT 0x00000001
176#define WN_NT_PASSWORD_CHANGED 0x00000002
177
178/* notifications */
179typedef DWORD (APIENTRY *PF_NPLogonNotify)(PLUID lpLogonId,
180 LPCWSTR lpAuthentInfoType, LPVOID lpAuthentInfo,
181 LPCWSTR lpPreviousAuthentInfoType, LPVOID lpPreviousAuthentInfo,
182 LPWSTR lpStationName, LPVOID StationHandle, LPWSTR *lpLogonScript);
183typedef DWORD (APIENTRY *PF_NPPasswordChangeNotify)(LPCWSTR lpAuthentInfoType,
184 LPVOID lpAuthentInfo, LPCWSTR lpPreviousAuthentInfoType,
185 LPVOID lpPreviousAuthentInfo, LPWSTR lpStationName, LPVOID StationHandle,
186 DWORD dwChangeInfo);
187
188#define NOTIFY_PRE 0x00000001
189#define NOTIFY_POST 0x00000002
190
191typedef struct _NOTIFYINFO
192{
193 DWORD dwNotifyStatus;
194 DWORD dwOperationStatus;
195 LPVOID lpContext;
196} NOTIFYINFO, *LPNOTIFYINFO;
197
198/* FIXME: NetResource is declared as a NETRESOURCE in psdk, not a NETRESOURCEW,
199 * but how can the type change in a service provider? Defaulting to wide-char
200 * for consistency with the rest of the api.
201 */
202typedef struct _NOTIFYADD
203{
204 HWND hwndOwner;
205 NETRESOURCEW NetResource;
206 DWORD dwAddFlags;
207} NOTIFYADD, *LPNOTIFYADD;
208
209/* FIXME: lpName and lpProvider are declared as LPTSTRs in psdk, but again
210 * for consistency with rest of api defaulting to LPWSTRs.
211 */
212typedef struct _NOTIFYCANCEL
213{
214 LPWSTR lpName;
215 LPWSTR lpProvider;
216 DWORD dwFlags;
217 BOOL fForce;
218} NOTIFYCANCEL, *LPNOTIFYCANCEL;
219
220typedef DWORD (APIENTRY *PF_AddConnectNotify)(LPNOTIFYINFO lpNotifyInfo,
221 LPNOTIFYADD lpAddInfo);
222typedef DWORD (APIENTRY *PF_CancelConnectNotify)(LPNOTIFYINFO lpNotifyInfo,
223 LPNOTIFYADD lpAddInfo);
224
225#ifdef __cplusplus
226}
227#endif
228
229#endif /* ndef __WINE_NPAPI_H__ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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