ReactOS  0.4.14-dev-337-gf981a68
winnetwk.h
Go to the documentation of this file.
1 #ifndef _WINNETWK_
2 #define _WINNETWK_
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #ifdef _MSC_VER
9 #pragma warning(push)
10 #pragma warning(disable:4820)
11 #endif
12 
13 #define WNNC_NET_MSNET 0x00010000
14 #define WNNC_NET_LANMAN 0x00020000
15 #define WNNC_NET_NETWARE 0x00030000
16 #define WNNC_NET_VINES 0x00040000
17 #define WNNC_NET_10NET 0x00050000
18 #define WNNC_NET_LOCUS 0x00060000
19 #define WNNC_NET_SUN_PC_NFS 0x00070000
20 #define WNNC_NET_LANSTEP 0x00080000
21 #define WNNC_NET_9TILES 0x00090000
22 #define WNNC_NET_LANTASTIC 0x000A0000
23 #define WNNC_NET_AS400 0x000B0000
24 #define WNNC_NET_FTP_NFS 0x000C0000
25 #define WNNC_NET_PATHWORKS 0x000D0000
26 #define WNNC_NET_LIFENET 0x000E0000
27 #define WNNC_NET_POWERLAN 0x000F0000
28 #define WNNC_NET_BWNFS 0x00100000
29 #define WNNC_NET_COGENT 0x00110000
30 #define WNNC_NET_FARALLON 0x00120000
31 #define WNNC_NET_APPLETALK 0x00130000
32 #define WNNC_NET_INTERGRAPH 0x00140000
33 #define WNNC_NET_SYMFONET 0x00150000
34 #define WNNC_NET_CLEARCASE 0x00160000
35 #define WNNC_NET_FRONTIER 0x00170000
36 #define WNNC_NET_BMC 0x00180000
37 #define WNNC_NET_DCE 0x00190000
38 #define WNNC_NET_AVID 0x001A0000
39 #define WNNC_NET_DOCUSPACE 0x001B0000
40 #define WNNC_NET_MANGOSOFT 0x001C0000
41 #define WNNC_NET_SERNET 0x001D0000
42 #define WNNC_NET_DECORB 0x00200000
43 #define WNNC_NET_PROTSTOR 0x00210000
44 #define WNNC_NET_FJ_REDIR 0x00220000
45 #define WNNC_NET_DISTINCT 0x00230000
46 #define WNNC_NET_TWINS 0x00240000
47 #define WNNC_NET_RDR2SAMPLE 0x00250000
48 #define WNNC_NET_CSC 0x00260000
49 #define WNNC_NET_3IN1 0x00270000
50 #define WNNC_NET_EXTENDNET 0x00290000
51 #define WNNC_NET_OBJECT_DIRE 0x00300000
52 #define WNNC_NET_MASFAX 0x00310000
53 #define WNNC_NET_HOB_NFS 0x00320000
54 #define WNNC_NET_SHIVA 0x00330000
55 #define WNNC_NET_IBMAL 0x00340000
56 #define WNNC_CRED_MANAGER 0xFFFF0000
57 
58 #define RESOURCE_CONNECTED 1
59 #define RESOURCE_GLOBALNET 2
60 #define RESOURCE_REMEMBERED 3
61 #define RESOURCE_RECENT 4
62 #define RESOURCE_CONTEXT 5
63 #define RESOURCETYPE_ANY 0
64 #define RESOURCETYPE_DISK 1
65 #define RESOURCETYPE_PRINT 2
66 #define RESOURCETYPE_RESERVED 8
67 #define RESOURCETYPE_UNKNOWN 0xFFFFFFFF
68 #define RESOURCEUSAGE_CONNECTABLE 0x00000001
69 #define RESOURCEUSAGE_CONTAINER 0x00000002
70 #define RESOURCEUSAGE_NOLOCALDEVICE 0x00000004
71 #define RESOURCEUSAGE_SIBLING 0x00000008
72 #define RESOURCEUSAGE_ATTACHED 0x00000010
73 #define RESOURCEUSAGE_ALL (RESOURCEUSAGE_CONNECTABLE | RESOURCEUSAGE_CONTAINER | RESOURCEUSAGE_ATTACHED)
74 #define RESOURCEUSAGE_RESERVED 0x80000000
75 #define RESOURCEDISPLAYTYPE_GENERIC 0
76 #define RESOURCEDISPLAYTYPE_DOMAIN 1
77 #define RESOURCEDISPLAYTYPE_SERVER 2
78 #define RESOURCEDISPLAYTYPE_SHARE 3
79 #define RESOURCEDISPLAYTYPE_FILE 4
80 #define RESOURCEDISPLAYTYPE_GROUP 5
81 #define RESOURCEDISPLAYTYPE_NETWORK 6
82 #define RESOURCEDISPLAYTYPE_ROOT 7
83 #define RESOURCEDISPLAYTYPE_SHAREADMIN 8
84 #define RESOURCEDISPLAYTYPE_DIRECTORY 9
85 #define RESOURCEDISPLAYTYPE_TREE 10
86 #define NETPROPERTY_PERSISTENT 1
87 #define CONNECT_UPDATE_PROFILE 1
88 #define CONNECT_UPDATE_RECENT 2
89 #define CONNECT_TEMPORARY 4
90 #define CONNECT_INTERACTIVE 8
91 #define CONNECT_PROMPT 16
92 #define CONNECT_NEED_DRIVE 32
93 #define CONNECT_REFCOUNT 64
94 #define CONNECT_REDIRECT 128
95 #define CONNECT_LOCALDRIVE 256
96 #define CONNECT_CURRENT_MEDIA 512
97 #define CONNECT_COMMANDLINE 2048
98 #define CONNECT_CMD_SAVECRED 4096
99 #define CONNDLG_RO_PATH 1
100 #define CONNDLG_CONN_POINT 2
101 #define CONNDLG_USE_MRU 4
102 #define CONNDLG_HIDE_BOX 8
103 #define CONNDLG_PERSIST 16
104 #define CONNDLG_NOT_PERSIST 32
105 #define DISC_UPDATE_PROFILE 1
106 #define DISC_NO_FORCE 64
107 #define WNFMT_MULTILINE 1
108 #define WNFMT_ABBREVIATED 2
109 #define WNFMT_INENUM 16
110 #define WNFMT_CONNECTION 32
111 #define WN_SUCCESS NO_ERROR
112 #define WN_NO_ERROR NO_ERROR
113 #define WN_NOT_SUPPORTED ERROR_NOT_SUPPORTED
114 #define WN_CANCEL ERROR_CANCELLED
115 #define WN_RETRY ERROR_RETRY
116 #define WN_NET_ERROR ERROR_UNEXP_NET_ERR
117 #define WN_MORE_DATA ERROR_MORE_DATA
118 #define WN_BAD_POINTER ERROR_INVALID_ADDRESS
119 #define WN_BAD_VALUE ERROR_INVALID_PARAMETER
120 #define WN_BAD_USER ERROR_BAD_USERNAME
121 #define WN_BAD_PASSWORD ERROR_INVALID_PASSWORD
122 #define WN_ACCESS_DENIED ERROR_ACCESS_DENIED
123 #define WN_FUNCTION_BUSY ERROR_BUSY
124 #define WN_WINDOWS_ERROR ERROR_UNEXP_NET_ERR
125 #define WN_OUT_OF_MEMORY ERROR_NOT_ENOUGH_MEMORY
126 #define WN_NO_NETWORK ERROR_NO_NETWORK
127 #define WN_EXTENDED_ERROR ERROR_EXTENDED_ERROR
128 #define WN_BAD_LEVEL ERROR_INVALID_LEVEL
129 #define WN_BAD_HANDLE ERROR_INVALID_HANDLE
130 #define WN_NOT_INITIALIZING ERROR_ALREADY_INITIALIZED
131 #define WN_NO_MORE_DEVICES ERROR_NO_MORE_DEVICES
132 #define WN_NOT_CONNECTED ERROR_NOT_CONNECTED
133 #define WN_OPEN_FILES ERROR_OPEN_FILES
134 #define WN_DEVICE_IN_USE ERROR_DEVICE_IN_USE
135 #define WN_BAD_NETNAME ERROR_BAD_NET_NAME
136 #define WN_BAD_LOCALNAME ERROR_BAD_DEVICE
137 #define WN_ALREADY_CONNECTED ERROR_ALREADY_ASSIGNED
138 #define WN_DEVICE_ERROR ERROR_GEN_FAILURE
139 #define WN_CONNECTION_CLOSED ERROR_CONNECTION_UNAVAIL
140 #define WN_NO_NET_OR_BAD_PATH ERROR_NO_NET_OR_BAD_PATH
141 #define WN_BAD_PROVIDER ERROR_BAD_PROVIDER
142 #define WN_CANNOT_OPEN_PROFILE ERROR_CANNOT_OPEN_PROFILE
143 #define WN_BAD_PROFILE ERROR_BAD_PROFILE
144 #define WN_BAD_DEV_TYPE ERROR_BAD_DEV_TYPE
145 #define WN_DEVICE_ALREADY_REMEMBERED ERROR_DEVICE_ALREADY_REMEMBERED
146 #define WN_NO_MORE_ENTRIES ERROR_NO_MORE_ITEMS
147 #define WN_NOT_CONTAINER ERROR_NOT_CONTAINER
148 #define WN_NOT_AUTHENTICATED ERROR_NOT_AUTHENTICATED
149 #define WN_NOT_LOGGED_ON ERROR_NOT_LOGGED_ON
150 #define WN_NOT_VALIDATED ERROR_NO_LOGON_SERVERS
151 #define UNIVERSAL_NAME_INFO_LEVEL 1
152 #define REMOTE_NAME_INFO_LEVEL 2
153 #define NETINFO_DLL16 1
154 #define NETINFO_DISKRED 4
155 #define NETINFO_PRINTERRED 8
156 #define RP_LOGON 1
157 #define RP_INIFILE 2
158 #define PP_DISPLAYERRORS 1
159 #define WNCON_FORNETCARD 1
160 #define WNCON_NOTROUTED 2
161 #define WNCON_SLOWLINK 4
162 #define WNCON_DYNAMIC 8
163 
164 #ifndef RC_INVOKED
165 
166 typedef struct _NETRESOURCEA {
176 typedef struct _NETRESOURCEW {
186 typedef struct _CONNECTDLGSTRUCTA{
193 typedef struct _CONNECTDLGSTRUCTW{
200 typedef struct _DISCDLGSTRUCTA{
207 typedef struct _DISCDLGSTRUCTW{
216 typedef struct _REMOTE_NAME_INFOA {
221 typedef struct _REMOTE_NAME_INFOW {
226 typedef struct _NETINFOSTRUCT{
242 typedef struct _NETCONNECTINFOSTRUCT{
249 
251 DWORD
252 APIENTRY
254  _In_ LPCSTR,
256  _In_opt_ LPCSTR);
257 
259 DWORD
260 APIENTRY
262  _In_ LPCWSTR,
264  _In_opt_ LPCWSTR);
265 
267 DWORD
268 APIENTRY
273  _In_ DWORD);
274 
276 DWORD
277 APIENTRY
282  _In_ DWORD);
283 
285 DWORD
286 APIENTRY
288  _In_opt_ HWND,
292  _In_ DWORD);
293 
295 DWORD
296 APIENTRY
298  _In_opt_ HWND,
302  _In_ DWORD);
303 
306 
308 DWORD
309 APIENTRY
311  _In_ LPCSTR,
312  _In_ DWORD,
313  _In_ BOOL);
314 
316 DWORD
317 APIENTRY
319  _In_ LPCWSTR,
320  _In_ DWORD,
321  _In_ BOOL);
322 
324 DWORD
325 APIENTRY
327  _In_ LPCSTR lpLocalName,
328  _Out_writes_opt_(*lpnLength) LPSTR lpRemoteName,
329  _Inout_ LPDWORD lpnLength);
330 
332 DWORD
333 APIENTRY
335  _In_ LPCWSTR lpLocalName,
336  _Out_writes_opt_(*lpnLength) LPWSTR lpRemoteName,
337  _Inout_ LPDWORD lpnLength);
338 
340 DWORD
341 APIENTRY
343  _In_opt_ HWND hwndOwner,
344  _In_ LPNETRESOURCEA lpNetResource,
345  _In_opt_ LPCSTR lpPassword,
346  _In_opt_ LPCSTR lpUserId,
348  _Out_writes_opt_(*lpBufferSize) LPSTR lpAccessName,
349  _Inout_opt_ LPDWORD lpBufferSize,
350  _Out_opt_ LPDWORD lpResult);
351 
353 DWORD
354 APIENTRY
356  _In_opt_ HWND hwndOwner,
357  _In_ LPNETRESOURCEW lpNetResource,
358  _In_opt_ LPCWSTR lpPassword,
359  _In_opt_ LPCWSTR lpUserId,
361  _Out_writes_opt_(*lpBufferSize) LPWSTR lpAccessName,
362  _Inout_opt_ LPDWORD lpBufferSize,
363  _Out_opt_ LPDWORD lpResult);
364 
369 
371 DWORD
372 APIENTRY
375 
377 DWORD
378 APIENTRY
381 
384 
386 DWORD
387 APIENTRY
389  _In_ DWORD,
390  _In_ DWORD,
391  _In_ DWORD,
393  _Out_ LPHANDLE);
394 
396 DWORD
397 APIENTRY
399  _In_ DWORD,
400  _In_ DWORD,
401  _In_ DWORD,
403  _Out_ LPHANDLE);
404 
406 DWORD
407 APIENTRY
409  _In_ HANDLE hEnum,
410  _Inout_ LPDWORD lpcCount,
411  _Out_writes_bytes_(*lpBufferSize) LPVOID lpBuffer,
412  _Inout_ LPDWORD lpBufferSize);
413 
415 DWORD
416 APIENTRY
418  _In_ HANDLE hEnum,
419  _Inout_ LPDWORD lpcCount,
420  _Out_writes_bytes_(*lpBufferSize) LPVOID lpBuffer,
421  _Inout_ LPDWORD lpBufferSize);
422 
424 
426 DWORD
427 APIENTRY
429  _In_ LPCSTR lpLocalPath,
431  _Out_writes_bytes_(*lpBufferSize) LPVOID lpBuffer,
432  _Inout_ LPDWORD lpBufferSize);
433 
435 DWORD
436 APIENTRY
438  _In_ LPCWSTR lpLocalPath,
440  _Out_writes_bytes_(*lpBufferSize) LPVOID lpBuffer,
441  _Inout_ LPDWORD lpBufferSize);
442 
444 DWORD
445 APIENTRY
448  _Out_writes_(*lpnLength) LPSTR lpUserName,
449  _Inout_ LPDWORD lpnLength);
450 
452 DWORD
453 APIENTRY
456  _Out_writes_(*lpnLength) LPWSTR lpUserName,
457  _Inout_ LPDWORD lpnLength);
458 
460 DWORD
461 APIENTRY
463  _In_ DWORD dwNetType,
464  _Out_writes_(*lpBufferSize) LPSTR lpProviderName,
465  _Inout_ LPDWORD lpBufferSize);
466 
468 DWORD
469 APIENTRY
471  _In_ DWORD dwNetType,
472  _Out_writes_(*lpBufferSize) LPWSTR lpProviderName,
473  _Inout_ LPDWORD lpBufferSize);
474 
476 DWORD
477 APIENTRY
479  _In_ LPCSTR,
481 
483 DWORD
484 APIENTRY
486  _In_ LPCWSTR,
488 
490 DWORD
491 APIENTRY
493  _In_ LPNETRESOURCEA lpNetResource,
494  _Out_writes_bytes_(*lpcbBuffer) LPVOID lpBuffer,
495  _Inout_ LPDWORD lpcbBuffer,
496  _Outptr_ LPSTR *lplpSystem);
497 
499 DWORD
500 APIENTRY
502  _In_ LPNETRESOURCEW lpNetResource,
503  _Out_writes_bytes_(*lpcbBuffer) LPVOID lpBuffer,
504  _Inout_ LPDWORD lpcbBuffer,
505  _Outptr_ LPWSTR *lplpSystem);
506 
508 DWORD
509 APIENTRY
511  _Out_ LPDWORD lpError,
512  _Out_writes_(nErrorBufSize) LPSTR lpErrorBuf,
513  _In_ DWORD nErrorBufSize,
514  _Out_writes_(nNameBufSize) LPSTR lpNameBuf,
515  _In_ DWORD nNameBufSize);
516 
518 DWORD
519 APIENTRY
521  _Out_ LPDWORD lpError,
522  _Out_writes_(nErrorBufSize) LPWSTR lpErrorBuf,
523  _In_ DWORD nErrorBufSize,
524  _Out_writes_(nNameBufSize) LPWSTR lpNameBuf,
525  _In_ DWORD nNameBufSize);
526 
529 
531 DWORD
532 APIENTRY
536 
538 DWORD
539 APIENTRY
543 
544 #ifdef _WINE
545 typedef struct tagPASSWORD_CACHE_ENTRY
546 {
547  WORD cbEntry;
548  WORD cbResource;
549  WORD cbPassword;
550  BYTE iEntry;
551  BYTE nType;
552  BYTE abResource[1];
553 } PASSWORD_CACHE_ENTRY;
554 
555 typedef BOOL (CALLBACK *ENUMPASSWORDPROC)(PASSWORD_CACHE_ENTRY *, DWORD);
559 #endif
560 
561 #ifdef UNICODE
562 #define PFNPROCESSPOLICIES PFNPROCESSPOLICIESW
563 #define PFNRECONCILEPROFILE PFNRECONCILEPROFILEW
564 #define PFNGETPROFILEPATH PFNGETPROFILEPATHW
570 #define WNetEnumResource WNetEnumResourceW
571 #define WNetOpenEnum WNetOpenEnumW
572 #define WNetGetResourceInformation WNetGetResourceInformationW
573 #define WNetGetUniversalName WNetGetUniversalNameW
574 #define WNetSetConnection WNetSetConnectionW
575 #define WNetUseConnection WNetUseConnectionW
576 #define WNetGetConnection WNetGetConnectionW
577 #define WNetCancelConnection2 WNetCancelConnection2W
578 #define WNetCancelConnection WNetCancelConnectionW
579 #define WNetAddConnection3 WNetAddConnection3W
580 #define WNetAddConnection2 WNetAddConnection2W
581 #define WNetAddConnection WNetAddConnectionW
582 #define WNetConnectionDialog1 WNetConnectionDialog1W
583 #define WNetDisconnectDialog1 WNetDisconnectDialog1W
584 #define WNetGetNetworkInformation WNetGetNetworkInformationW
585 #define WNetGetProviderName WNetGetProviderNameW
586 #define WNetGetUser WNetGetUserW
587 #define MultinetGetConnectionPerformance MultinetGetConnectionPerformanceW
588 #define WNetGetLastError WNetGetLastErrorW
589 #else
590 #define PFNGETPROFILEPATH PFNGETPROFILEPATHA
591 #define PFNRECONCILEPROFILE PFNRECONCILEPROFILEA
592 #define PFNPROCESSPOLICIES PFNPROCESSPOLICIESA
598 #define WNetOpenEnum WNetOpenEnumA
599 #define WNetEnumResource WNetEnumResourceA
600 #define WNetGetResourceInformation WNetGetResourceInformationA
601 #define WNetGetUniversalName WNetGetUniversalNameA
602 #define WNetConnectionDialog1 WNetConnectionDialog1A
603 #define WNetDisconnectDialog1 WNetDisconnectDialog1A
604 #define WNetAddConnection2 WNetAddConnection2A
605 #define WNetAddConnection3 WNetAddConnection3A
606 #define WNetCancelConnection WNetCancelConnectionA
607 #define WNetCancelConnection2 WNetCancelConnection2A
608 #define WNetGetConnection WNetGetConnectionA
609 #define WNetUseConnection WNetUseConnectionA
610 #define WNetSetConnection WNetSetConnectionA
611 #define WNetAddConnection WNetAddConnectionA
612 #define WNetGetUser WNetGetUserA
613 #define WNetGetProviderName WNetGetProviderNameA
614 #define WNetGetNetworkInformation WNetGetNetworkInformationA
615 #define WNetGetLastError WNetGetLastErrorA
616 #define MultinetGetConnectionPerformance MultinetGetConnectionPerformanceA
617 #endif
618 
619 #endif /* !RC_INVOKED */
620 
621 #ifdef _MSC_VER
622 #pragma warning(pop)
623 #endif
624 
625 #ifdef __cplusplus
626 }
627 #endif
628 
629 #endif /* _WINNETWK_ */
LPNETRESOURCEA lpConnRes
Definition: winnetwk.h:189
_Check_return_ DWORD APIENTRY WNetGetResourceInformationA(_In_ LPNETRESOURCEA lpNetResource, _Out_writes_bytes_(*lpcbBuffer) LPVOID lpBuffer, _Inout_ LPDWORD lpcbBuffer, _Outptr_ LPSTR *lplpSystem)
DISCDLGSTRUCTA DISCDLGSTRUCT
Definition: winnetwk.h:595
struct _NETRESOURCEW NETRESOURCEW
DWORD WINAPI WNetCachePassword(LPSTR pbResource, WORD cbResource, LPSTR pbPassword, WORD cbPassword, BYTE nType, WORD x)
Definition: pwcache.c:85
DWORD dwDrives
Definition: winnetwk.h:234
_Check_return_ DWORD APIENTRY WNetAddConnection3W(_In_opt_ HWND, _In_ LPNETRESOURCEW, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR, _In_ DWORD)
struct _UNIVERSAL_NAME_INFOA UNIVERSAL_NAME_INFOA
DWORD dwType
Definition: winnetwk.h:168
DWORD APIENTRY WNetSetConnectionA(LPCSTR, DWORD, PVOID)
Definition: wnet.c:2706
_Check_return_ DWORD APIENTRY WNetAddConnectionA(_In_ LPCSTR, _In_opt_ LPCSTR, _In_opt_ LPCSTR)
_Check_return_ DWORD APIENTRY WNetGetUniversalNameW(_In_ LPCWSTR lpLocalPath, _In_ DWORD dwInfoLevel, _Out_writes_bytes_(*lpBufferSize) LPVOID lpBuffer, _Inout_ LPDWORD lpBufferSize)
LPSTR lpRemoteName
Definition: winnetwk.h:204
UNIVERSAL_NAME_INFOA UNIVERSAL_NAME_INFO
Definition: winnetwk.h:596
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
_Check_return_ DWORD APIENTRY WNetGetUniversalNameA(_In_ LPCSTR lpLocalPath, _In_ DWORD dwInfoLevel, _Out_writes_bytes_(*lpBufferSize) LPVOID lpBuffer, _Inout_ LPDWORD lpBufferSize)
_Check_return_ DWORD APIENTRY WNetGetNetworkInformationA(_In_ LPCSTR, _Out_ LPNETINFOSTRUCT)
DWORD dwProviderVersion
Definition: winnetwk.h:228
LPWSTR lpRemoteName
Definition: winnetwk.h:211
struct _CONNECTDLGSTRUCTA CONNECTDLGSTRUCTA
UINT(PASCAL * PFNRECONCILEPROFILEA)(LPCSTR, LPCSTR, DWORD)
Definition: winnetwk.h:238
struct _REMOTE_NAME_INFOA * LPREMOTE_NAME_INFOA
#define CALLBACK
Definition: compat.h:27
_In_ LPCSTR lpName
Definition: winbase.h:2736
#define _Outptr_
Definition: no_sal2.h:396
_Check_return_ DWORD APIENTRY WNetCancelConnectionW(_In_ LPCWSTR, _In_ BOOL)
LPSTR lpRemainingPath
Definition: winnetwk.h:219
LPSTR lpLocalName
Definition: winnetwk.h:171
HANDLE HWND
Definition: compat.h:13
struct _UNIVERSAL_NAME_INFOW * LPUNIVERSAL_NAME_INFOW
_Check_return_ DWORD APIENTRY WNetGetProviderNameW(_In_ DWORD dwNetType, _Out_writes_(*lpBufferSize) LPWSTR lpProviderName, _Inout_ LPDWORD lpBufferSize)
#define _Check_return_
Definition: no_sal2.h:13
LPWSTR lpUniversalName
Definition: winnetwk.h:222
DWORD cbStructure
Definition: winnetwk.h:201
struct _NETRESOURCEA * LPNETRESOURCEA
struct _NETRESOURCEA NETRESOURCEA
DWORD dwDisplayType
Definition: winnetwk.h:169
_Check_return_ DWORD APIENTRY WNetGetLastErrorW(_Out_ LPDWORD lpError, _Out_writes_(nErrorBufSize) LPWSTR lpErrorBuf, _In_ DWORD nErrorBufSize, _Out_writes_(nNameBufSize) LPWSTR lpNameBuf, _In_ DWORD nNameBufSize)
char * LPSTR
Definition: xmlstorage.h:182
#define BOOL
Definition: nt_native.h:43
_Check_return_ DWORD APIENTRY WNetGetUserA(_In_opt_ LPCSTR lpName, _Out_writes_(*lpnLength) LPSTR lpUserName, _Inout_ LPDWORD lpnLength)
struct _NETCONNECTINFOSTRUCT * LPNETCONNECTINFOSTRUCT
#define DWORD
Definition: nt_native.h:44
struct _DISCDLGSTRUCTW * LPDISCDLGSTRUCTW
_Check_return_ DWORD APIENTRY WNetCloseEnum(_In_ HANDLE)
#define _In_opt_
Definition: no_sal2.h:213
uint32_t ULONG_PTR
Definition: typedefs.h:63
struct _DISCDLGSTRUCTW DISCDLGSTRUCTW
LPWSTR lpConnectionName
Definition: winnetwk.h:223
#define _Out_writes_(size)
Definition: no_sal2.h:367
DWORD dwPrinters
Definition: winnetwk.h:233
DWORD dwStatus
Definition: winnetwk.h:229
CONNECTDLGSTRUCTA CONNECTDLGSTRUCT
Definition: winnetwk.h:594
_Check_return_ DWORD APIENTRY WNetAddConnection2W(_In_ LPNETRESOURCEW, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR, _In_ DWORD)
_Check_return_ DWORD APIENTRY WNetCancelConnectionA(_In_ LPCSTR, _In_ BOOL)
DISCDLGSTRUCTA * LPDISCDLGSTRUCT
Definition: winnetwk.h:595
unsigned int BOOL
Definition: ntddk_ex.h:94
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
Definition: db.cpp:173
LPNETRESOURCEW lpConnRes
Definition: winnetwk.h:196
DWORD dwCharacteristics
Definition: winnetwk.h:230
static ENUMPASSWORDPROC
Definition: mpr.c:165
struct _NETRESOURCEW * LPNETRESOURCEW
struct _NETINFOSTRUCT NETINFOSTRUCT
DWORD dwDisplayType
Definition: winnetwk.h:179
#define _Out_writes_bytes_(size)
Definition: no_sal2.h:370
#define _Out_
Definition: no_sal2.h:323
_Check_return_ DWORD APIENTRY WNetDisconnectDialog1A(_In_ LPDISCDLGSTRUCTA)
_Check_return_ DWORD APIENTRY WNetOpenEnumW(_In_ DWORD, _In_ DWORD, _In_ DWORD, _In_opt_ LPNETRESOURCEW, _Out_ LPHANDLE)
_Check_return_ DWORD APIENTRY WNetEnumResourceA(_In_ HANDLE hEnum, _Inout_ LPDWORD lpcCount, _Out_writes_bytes_(*lpBufferSize) LPVOID lpBuffer, _Inout_ LPDWORD lpBufferSize)
const char * LPCSTR
Definition: xmlstorage.h:183
NETRESOURCEA * LPNETRESOURCE
Definition: winnetwk.h:593
struct _UNIVERSAL_NAME_INFOA * LPUNIVERSAL_NAME_INFOA
CONNECTDLGSTRUCTA * LPCONNECTDLGSTRUCT
Definition: winnetwk.h:594
LPSTR lpProvider
Definition: winnetwk.h:174
struct _REMOTE_NAME_INFOW REMOTE_NAME_INFOW
_Check_return_ DWORD APIENTRY WNetDisconnectDialog1W(_In_ LPDISCDLGSTRUCTW)
_Check_return_ DWORD APIENTRY WNetCancelConnection2A(_In_ LPCSTR, _In_ DWORD, _In_ BOOL)
_Check_return_ DWORD APIENTRY WNetAddConnection3A(_In_opt_ HWND, _In_ LPNETRESOURCEA, _In_opt_ LPCSTR, _In_opt_ LPCSTR, _In_ DWORD)
DWORD dwScope
Definition: winnetwk.h:167
LPWSTR lpLocalName
Definition: winnetwk.h:181
UINT(PASCAL * PFNGETPROFILEPATHW)(LPCWSTR, LPWSTR, UINT)
Definition: winnetwk.h:237
#define _Out_opt_
Definition: no_sal2.h:339
_Check_return_ DWORD APIENTRY WNetOpenEnumA(_In_ DWORD, _In_ DWORD, _In_ DWORD, _In_opt_ LPNETRESOURCEA, _Out_ LPHANDLE)
DWORD WINAPI WNetRestoreConnectionW(HWND, LPCWSTR)
Definition: wnet.c:2473
LPWSTR lpRemainingPath
Definition: winnetwk.h:224
struct _NETCONNECTINFOSTRUCT NETCONNECTINFOSTRUCT
LPSTR lpLocalName
Definition: winnetwk.h:203
REMOTE_NAME_INFOA * LPREMOTE_NAME_INFO
Definition: winnetwk.h:597
struct _UNIVERSAL_NAME_INFOW UNIVERSAL_NAME_INFOW
_Check_return_ DWORD APIENTRY WNetCancelConnection2W(_In_ LPCWSTR, _In_ DWORD, _In_ BOOL)
#define WINAPI
Definition: msvc.h:8
struct _CONNECTDLGSTRUCTW CONNECTDLGSTRUCTW
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL(PASCAL * PFNPROCESSPOLICIESA)(HWND, LPCSTR, LPCSTR, LPCSTR, DWORD)
Definition: winnetwk.h:240
#define _Inout_
Definition: no_sal2.h:244
LPSTR lpComment
Definition: winnetwk.h:173
_Check_return_ DWORD APIENTRY WNetConnectionDialog(_In_ HWND, _In_ DWORD)
DWORD WINAPI WNetGetCachedPassword(LPSTR pbResource, WORD cbResource, LPSTR pbPassword, LPWORD pcbPassword, BYTE nType)
Definition: pwcache.c:180
DWORD dwUsage
Definition: winnetwk.h:170
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
struct _CONNECTDLGSTRUCTW * LPCONNECTDLGSTRUCTW
struct _DISCDLGSTRUCTA * LPDISCDLGSTRUCTA
_Check_return_ DWORD APIENTRY WNetGetUserW(_In_opt_ LPCWSTR lpName, _Out_writes_(*lpnLength) LPWSTR lpUserName, _Inout_ LPDWORD lpnLength)
unsigned char BYTE
Definition: mem.h:68
_Check_return_ DWORD APIENTRY WNetDisconnectDialog(_In_opt_ HWND, _In_ DWORD)
_Check_return_ DWORD APIENTRY WNetAddConnectionW(_In_ LPCWSTR, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR)
LPWSTR lpComment
Definition: winnetwk.h:183
#define PASCAL
Definition: windef.h:133
UNIVERSAL_NAME_INFOA * LPUNIVERSAL_NAME_INFO
Definition: winnetwk.h:596
LPWSTR lpLocalName
Definition: winnetwk.h:210
ULONG_PTR dwHandle
Definition: winnetwk.h:231
BOOL(PASCAL * PFNPROCESSPOLICIESW)(HWND, LPCWSTR, LPCWSTR, LPCWSTR, DWORD)
Definition: winnetwk.h:241
LPWSTR lpRemoteName
Definition: winnetwk.h:182
REMOTE_NAME_INFOA REMOTE_NAME_INFO
Definition: winnetwk.h:597
_In_ DWORD dwInfoLevel
Definition: winsvc.h:422
LPSTR lpUniversalName
Definition: winnetwk.h:217
_Check_return_ DWORD APIENTRY WNetUseConnectionA(_In_opt_ HWND hwndOwner, _In_ LPNETRESOURCEA lpNetResource, _In_opt_ LPCSTR lpPassword, _In_opt_ LPCSTR lpUserId, _In_ DWORD dwFlags, _Out_writes_opt_(*lpBufferSize) LPSTR lpAccessName, _Inout_opt_ LPDWORD lpBufferSize, _Out_opt_ LPDWORD lpResult)
DWORD cbStructure
Definition: winnetwk.h:227
_Check_return_ DWORD APIENTRY WNetUseConnectionW(_In_opt_ HWND hwndOwner, _In_ LPNETRESOURCEW lpNetResource, _In_opt_ LPCWSTR lpPassword, _In_opt_ LPCWSTR lpUserId, _In_ DWORD dwFlags, _Out_writes_opt_(*lpBufferSize) LPWSTR lpAccessName, _Inout_opt_ LPDWORD lpBufferSize, _Out_opt_ LPDWORD lpResult)
DWORD dwUsage
Definition: winnetwk.h:180
struct _REMOTE_NAME_INFOA REMOTE_NAME_INFOA
uint16_t * LPWORD
Definition: typedefs.h:54
#define _In_
Definition: no_sal2.h:204
_Check_return_ DWORD APIENTRY MultinetGetConnectionPerformanceW(_In_ LPNETRESOURCEW, _Out_ LPNETCONNECTINFOSTRUCT)
_In_ UINT _Out_writes_opt_(cch) LPSTR lpszFile
_Check_return_ DWORD APIENTRY WNetConnectionDialog1W(_Inout_ LPCONNECTDLGSTRUCTW)
struct _REMOTE_NAME_INFOW * LPREMOTE_NAME_INFOW
_Check_return_ DWORD APIENTRY WNetConnectionDialog1A(_Inout_ LPCONNECTDLGSTRUCTA)
UINT WINAPI WNetEnumCachedPasswords(LPSTR pbPrefix, WORD cbPrefix, BYTE nType, ENUMPASSWORDPROC enumPasswordProc, DWORD param)
Definition: pwcache.c:240
UINT(PASCAL * PFNRECONCILEPROFILEW)(LPCWSTR, LPCWSTR, DWORD)
Definition: winnetwk.h:239
DWORD cbStructure
Definition: winnetwk.h:208
DWORD dwScope
Definition: winnetwk.h:177
unsigned int UINT
Definition: ndis.h:50
LPSTR lpRemoteName
Definition: winnetwk.h:172
struct _CONNECTDLGSTRUCTA * LPCONNECTDLGSTRUCTA
NETRESOURCEA NETRESOURCE
Definition: winnetwk.h:593
DWORD WINAPI WNetRestoreConnectionA(HWND, LPCSTR)
Definition: wnet.c:2462
struct _NETINFOSTRUCT * LPNETINFOSTRUCT
uint32_t * LPDWORD
Definition: typedefs.h:57
DWORD dwType
Definition: winnetwk.h:178
LPSTR lpConnectionName
Definition: winnetwk.h:218
LPWSTR lpProvider
Definition: winnetwk.h:184
DWORD APIENTRY WNetSetConnectionW(LPCWSTR, DWORD, PVOID)
Definition: wnet.c:2718
_Check_return_ DWORD APIENTRY WNetGetResourceInformationW(_In_ LPNETRESOURCEW lpNetResource, _Out_writes_bytes_(*lpcbBuffer) LPVOID lpBuffer, _Inout_ LPDWORD lpcbBuffer, _Outptr_ LPWSTR *lplpSystem)
WCHAR * LPWSTR
Definition: xmlstorage.h:184
UINT(PASCAL * PFNGETPROFILEPATHA)(LPCSTR, LPSTR, UINT)
Definition: winnetwk.h:236
_Check_return_ DWORD APIENTRY WNetGetProviderNameA(_In_ DWORD dwNetType, _Out_writes_(*lpBufferSize) LPSTR lpProviderName, _Inout_ LPDWORD lpBufferSize)
_Check_return_ DWORD APIENTRY MultinetGetConnectionPerformanceA(_In_ LPNETRESOURCEA, _Out_ LPNETCONNECTINFOSTRUCT)
_Check_return_ DWORD APIENTRY WNetGetConnectionW(_In_ LPCWSTR lpLocalName, _Out_writes_opt_(*lpnLength) LPWSTR lpRemoteName, _Inout_ LPDWORD lpnLength)
_Check_return_ DWORD APIENTRY WNetGetConnectionA(_In_ LPCSTR lpLocalName, _Out_writes_opt_(*lpnLength) LPSTR lpRemoteName, _Inout_ LPDWORD lpnLength)
_Check_return_ DWORD APIENTRY WNetGetLastErrorA(_Out_ LPDWORD lpError, _Out_writes_(nErrorBufSize) LPSTR lpErrorBuf, _In_ DWORD nErrorBufSize, _Out_writes_(nNameBufSize) LPSTR lpNameBuf, _In_ DWORD nNameBufSize)
#define APIENTRY
Definition: api.h:79
_Check_return_ DWORD APIENTRY WNetEnumResourceW(_In_ HANDLE hEnum, _Inout_ LPDWORD lpcCount, _Out_writes_bytes_(*lpBufferSize) LPVOID lpBuffer, _Inout_ LPDWORD lpBufferSize)
struct _DISCDLGSTRUCTA DISCDLGSTRUCTA
#define _Inout_opt_
Definition: no_sal2.h:258
_Check_return_ DWORD APIENTRY WNetAddConnection2A(_In_ LPNETRESOURCEA, _In_opt_ LPCSTR, _In_opt_ LPCSTR, _In_ DWORD)
_Check_return_ DWORD APIENTRY WNetGetNetworkInformationW(_In_ LPCWSTR, _Out_ LPNETINFOSTRUCT)