VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/npapi.h@ 33252

Last change on this file since 33252 was 28475, checked in by vboxsync, 15 years ago

crOpenGL: update to wine 1.1.43

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