ReactOS  0.4.13-dev-100-gc8611ae
ws2_32p.h
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS WinSock 2.2 Library
4  * FILE: dll/win32/ws2_32_new/inc/ws2_32p.h
5  * PURPOSE: WinSock 2.2 Main Header
6  */
7 
8 #pragma once
9 
10 #define WINSOCK_ROOT "System\\CurrentControlSet\\Services\\WinSock2\\Parameters"
11 #define MAXALIASES 35
12 
13 typedef enum _WSASYNCOPS
14 {
22 } WSASYNCOPS;
23 
24 typedef struct _WSASYNCBLOCK
25 {
29  union
30  {
31  struct
32  {
40  } GetHost;
41  struct
42  {
43  HWND hWnd;
44  UINT wMsg;
45  PCHAR ByWhat;
46  DWORD Length;
47  PVOID Buffer;
49  } GetProto;
50  struct
51  {
52  HWND hWnd;
53  UINT wMsg;
54  PCHAR ByWhat;
55  DWORD Length;
57  PVOID Buffer;
59  } GetServ;
60  };
62 
63 typedef struct _WSASYNCCONTEXT
64 {
69 
70 typedef struct _WSPROTO_BUFFER
71 {
76 
77 typedef struct _TPROVIDER
78 {
84 
85 typedef struct _TCATALOG_ENTRY
86 {
93 
94 typedef struct _TCATALOG
95 {
103 } TCATALOG, *PTCATALOG;
104 
105 typedef struct _NSPROVIDER
106 {
113 
114 typedef struct _NSQUERY_PROVIDER
115 {
120 
121 typedef struct _NSCATALOG_ENTRY
122 {
135 
136 typedef struct _NSCATALOG
137 {
144 
145 typedef struct _NSQUERY
146 {
158 } NSQUERY, *PNSQUERY;
159 
160 typedef struct _WSPROCESS
161 {
174 
175 typedef struct _WSTHREAD
176 {
181  LPBLOCKINGCALLBACK BlockingCallback;
192 } WSTHREAD, *PWSTHREAD;
193 
194 typedef struct _WSSOCKET
195 {
204 } WSSOCKET, *PWSSOCKET;
205 
206 typedef struct _ENUM_CONTEXT
207 {
213 
215 {
224 
226 {
234 
236 {
244 
245 typedef struct _WS_BUFFER
246 {
251 
252 typedef BOOL
254  IN PVOID Context,
256 );
257 
258 typedef BOOL
260  IN PVOID Context,
262 );
263 
264 typedef BOOL
266  IN HWND hWnd,
267  IN UINT wMsg,
268  IN WPARAM wParam,
270 );
271 
272 extern HINSTANCE WsDllHandle;
273 extern HANDLE WsSockHeap;
276 extern DWORD GlobalTlsIndex;
277 #define TlsIndex GlobalTlsIndex
280 
281 LPSTR
282 WSAAPI
284 
285 LPWSTR
286 WSAAPI
288 
289 VOID
290 WSAAPI
292 
293 VOID
294 WSAAPI
296 
297 BOOL
298 WSAAPI
299 WSAttemptAutodialName(IN CONST LPWSAQUERYSETW lpqsRestrictions);
300 
301 BOOL
302 WSAAPI
305  IN INT NameLength
306 );
307 
308 VOID
309 WSAAPI
311  IN CONST CHAR FAR *Name,
313 );
314 
315 INT
316 WSAAPI
318  OUT LPWSAPROTOCOL_INFOA AnsiInfo);
319 
320 INT
321 WSAAPI
323  IN OUT PSIZE_T SetSize,
324  OUT LPWSAQUERYSETW UnicodeSet);
325 
326 INT
327 WSAAPI
329  IN OUT PSIZE_T SetSize,
330  OUT LPWSAQUERYSETA AnsiSet);
331 
332 INT
333 WSAAPI
334 CopyQuerySetW(IN LPWSAQUERYSETW UnicodeSet,
335  OUT LPWSAQUERYSETW *UnicodeCopy);
336 
337 INT
338 WSAAPI
340 
341 INT
342 WSAAPI
344 
345 PWSSOCKET
346 WSAAPI
348 
349 INT
350 WSAAPI
352  OUT PWSTHREAD *Thread);
353 
354 HKEY
355 WSAAPI
357 
358 VOID
359 WSAAPI
361 
362 VOID
363 WSAAPI
365 
366 INT
367 WSAAPI
368 WsSetupCatalogProtection(IN HKEY CatalogKey,
369  IN HANDLE CatalogEvent,
370  OUT LPDWORD UniqueId);
371 
372 BOOL
373 WSAAPI
375 
377 WSAAPI
379 
380 VOID
381 WSAAPI
382 WsNcDelete(IN PNSCATALOG Catalog);
383 
384 INT
385 WSAAPI
387  IN HKEY ParentKey,
388  IN HANDLE CatalogEvent);
389 
390 INT
391 WSAAPI
393  IN HANDLE CatalogEvent);
394 
395 VOID
396 WSAAPI
399 
400 BOOL
401 WSAAPI
402 WsNcMatchProtocols(IN DWORD NameSpace,
404  IN LPWSAQUERYSETW QuerySet);
405 
406 INT
407 WSAAPI
409  IN PNSCATALOG_ENTRY CatalogEntry);
410 
411 INT
412 WSAAPI
414  IN LPGUID ProviderId,
415  OUT PNSCATALOG_ENTRY *CatalogEntry);
416 
417 VOID
418 WSAAPI
421  IN PVOID Context);
422 
423 INT
424 WSAAPI
426  IN OUT LPDWORD BugSize,
427  IN OUT LPWSASERVICECLASSINFOW lpServiceClassInfo);
428 
430 WSAAPI
432 
433 INT
434 WSAAPI
436  IN HKEY ParentKey,
437  IN ULONG UniqueId);
438 
439 VOID
440 WSAAPI
442 
443 VOID
444 WSAAPI
447 
448 BOOL
449 WSAAPI
451  IN PNSQUERY NsQuery,
453 );
454 
455 PNSQUERY
456 WSAAPI
458 
459 BOOL
460 WSAAPI
462  PVOID Context,
463  PNSCATALOG_ENTRY CatalogEntry
464 );
465 
466 VOID
467 WSAAPI
468 WsNqDelete(IN PNSQUERY NsQuery);
469 
470 DWORD
471 WSAAPI
472 WsNqInitialize(IN PNSQUERY NsQuery);
473 
474 DWORD
475 WSAAPI
477  IN PNSQUERY NsQuery,
478  IN LPWSAQUERYSETW QuerySet,
479  IN DWORD ControlFlags,
480  IN PNSCATALOG Catalog
481 );
482 
483 DWORD
484 WSAAPI
486 
487 DWORD
488 WSAAPI
490  PNSQUERY NsQuery,
491  DWORD,
492  PDWORD,
493  OUT LPWSAQUERYSETW QuerySet
494 );
495 
497 WSAAPI
499  PNSQUERY NsQuery,
501 );
502 
504 WSAAPI
506  IN PNSQUERY Query,
508 );
509 
510 VOID
511 WSAAPI
513 
514 BOOL
515 WSAAPI
517 
518 DWORD
519 WSAAPI
521  IN PNSQUERY_PROVIDER QueryProvider,
522  DWORD,
523  PDWORD ,
524  LPWSAQUERYSETW QuerySet
525 );
526 
527 DWORD
528 WSAAPI
530 
531 DWORD
532 WSAAPI
534  IN PNSQUERY_PROVIDER QueryProvider,
536 );
537 
539 WSAAPI
541 
542 VOID
543 WSAAPI
544 WsNqProvDelete(IN PNSQUERY_PROVIDER QueryProvider);
545 
546 DWORD
547 WSAAPI
549  IN PNSQUERY_PROVIDER QueryProvider,
550  IN LPWSAQUERYSETW QuerySet,
551  IN LPWSASERVICECLASSINFOW ServiceClassInfo,
552  IN DWORD
553 );
554 
555 VOID
556 WSAAPI
558 
559 DWORD
560 WSAAPI
563  IN LPWSAQUERYSETW Restrictions,
564  struct _WSAServiceClassInfoW *,
565  IN DWORD ControlFlags,
566  OUT PHANDLE LookupHandle
567 );
568 
569 DWORD
570 WSAAPI
572 
573 DWORD
574 WSAAPI
577  IN HANDLE LookupHandle
578 );
579 
580 DWORD
581 WSAAPI
584  IN LPWSTR DllPath,
585  IN LPGUID ProviderGuid
586 );
587 
589 WSAAPI
591 
592 VOID
593 WSAAPI
595 
596 DWORD
597 WSAAPI
600  IN HANDLE LookupHandle,
601  IN DWORD ControlFlags,
603  OUT LPWSAQUERYSETW Results
604 );
605 
606 VOID
607 WSAAPI
609 
610 DWORD
611 WSAAPI
614  int *
615 );
616 
618 WSAAPI
620 
621 DWORD
622 WSAAPI
625  IN LPSTR DllName,
626  LPWSAPROTOCOL_INFOW ProtocolInfo
627 );
628 
629 VOID
630 WSAAPI
632 
633 VOID
634 WSAAPI
636 
637 VOID
638 WSAAPI
640 
641 DWORD
642 WSAAPI
646 );
647 
648 DWORD
649 WSAAPI
653 );
654 
656 WSAAPI
658 
659 DWORD
660 WSAAPI
662 
663 VOID
664 WSAAPI
666 
667 DWORD
668 WSAAPI
670 
671 DWORD
672 WSAAPI
674 
675 FARPROC
676 WSAAPI
678  IN FARPROC BlockingHook);
679 
680 
681 PHOSTENT
682 WSAAPI
684  IN LPBLOB Blob);
685 
686 PSERVENT
687 WSAAPI
689  IN LPBLOB Blob);
690 
692 WSAAPI
694 
695 PWSTHREAD
696 WSAAPI
698 
699 DWORD
700 WSAAPI
702 
703 DWORD
704 WSAAPI
708 );
709 
710 DWORD
711 WSAAPI
713 
714 DWORD
715 WSAAPI
716 WsTcEntryInitializeFromRegistry(IN PTCATALOG_ENTRY CatalogEntry, IN HKEY, unsigned long);
717 
718 DWORD
719 WSAAPI
721 
723 WSAAPI
725 
726 VOID
727 WSAAPI
729 
730 DWORD
731 WSAAPI
733 
734 BOOL
735 WSAAPI
736 WsTcOpen(IN PTCATALOG TCatalog, IN HKEY);
737 
739 WSAAPI
740 WsTcFindProvider(IN PTCATALOG TCatalog, IN LPGUID ProviderId);
741 
742 VOID
743 WSAAPI
746  IN PVOID Context);
747 
748 VOID
749 WSAAPI
751 
752 PTCATALOG
753 WSAAPI
755 
756 VOID
757 WSAAPI
758 WsTcDelete(IN PTCATALOG Catalog);
759 
760 DWORD
761 WSAAPI
763 
764 VOID
765 WSAAPI
766 WsTcUpdateProtocolList(IN PTCATALOG TCatalog, PLIST_ENTRY ProtocolList);
767 
768 VOID
769 WSAAPI
770 WsTcEntryDelete(IN PTCATALOG_ENTRY CatalogEntry);
771 
772 DWORD
773 WSAAPI
775 
776 DWORD
777 WSAAPI
778 WsTcLoadProvider(IN PTCATALOG TCatalog, IN PTCATALOG_ENTRY CatalogEntry);
779 
780 DWORD
781 WSAAPI
783 
784 INT
785 WSAAPI
787 
788 VOID
789 WSAAPI
791 
792 BOOL
793 WSAAPI
796 
797 VOID
798 WSAAPI
800 
801 PWSSOCKET
802 WSAAPI
804 
805 INT
806 WSAAPI
808  IN PTCATALOG_ENTRY CatalogEntry);
809 
810 INT
811 WSAAPI
813  IN SOCKET Handle,
814  IN BOOLEAN IsProvider);
815 
816 INT
817 WSAAPI
819 
820 INT
821 WSAAPI
823 
824 PTCATALOG
825 WSAAPI
827 
828 BOOL
829 WSAAPI
832 
833 INT
834 WSAAPI
836  OUT PHANDLE Handle);
837 
838 VOID
839 WSAAPI
841 
842 INT
843 WSAAPI
845 
847 WSAAPI
849 
850 VOID
851 WSAAPI
853  IN WORD VersionRequested);
854 
855 VOID
856 WSAAPI
858 
859 BOOL
860 WSAAPI
862 
863 INT
864 WSAAPI
865 WsAsyncCancelRequest(IN HANDLE TaskHandle);
866 
868 WSAAPI
869 WsAsyncAllocateBlock(IN SIZE_T ExtraLength);
870 
871 VOID
872 WSAAPI
874 
875 VOID
876 WSAAPI
878 
879 VOID
880 WSAAPI
882 
886 {
887  return CurrentWsProcess;
888 }
889 
891 DWORD
893 {
894  /* Try to see if we're initialized. If not, do the full prolog */
895  return WsGetProcess() ? ERROR_SUCCESS : WsSlowProlog();
896 }
897 
899 DWORD
901 {
902  /* Try to see if we're initialized. If not, do the full prolog */
903  if ((WsGetProcess()) && (*Tid = WsThreadGetThreadId(WsGetProcess())))
904  {
905  return ERROR_SUCCESS;
906  }
907  else
908  {
909  return WsSlowPrologTid(Tid);
910  }
911 }
HANDLE TaskHandle
Definition: ws2_32p.h:27
INT WSAAPI WsProcGetAsyncHelper(IN PWSPROCESS Process, OUT PHANDLE Handle)
Definition: dprocess.c:107
BOOL(WINAPI * PWS_SOCK_POST_ROUTINE)(IN HWND hWnd, IN UINT wMsg, IN WPARAM wParam, IN LPARAM lParam)
Definition: ws2_32p.h:265
HKEY WSAAPI WsOpenRegistryRoot(VOID)
Definition: wsautil.c:17
LIST_ENTRY AsyncQueue
Definition: ws2_32p.h:65
signed char * PCHAR
Definition: retypes.h:7
DWORD WSAAPI WsTcInitializeFromRegistry(IN PTCATALOG TCatalog, HKEY, PVOID)
PWS_SOCK_POST_ROUTINE WsSockPostRoutine
Definition: startup.c:18
DWORD Version
Definition: ws2_32p.h:128
BOOLEAN IsProvider
Definition: ws2_32p.h:203
PNSCATALOG Catalog
Definition: ws2_32p.h:156
BOOLEAN LockReady
Definition: ws2_32p.h:171
#define IN
Definition: typedefs.h:38
INT WSAAPI WsSlowProlog(VOID)
Definition: wsautil.c:109
BOOL WSAAPI WsNqBeginEnumerationProc(PVOID Context, PNSCATALOG_ENTRY CatalogEntry)
Definition: nsquery.c:117
IN PCO_ADDRESS_FAMILY AddressFamily
Definition: ndis.h:1888
VOID WSAAPI WsTpDereference(IN PTPROVIDER Provider)
Definition: dprovide.c:143
LONG AddressFamily
Definition: ws2_32p.h:126
HINSTANCE DllHandle
Definition: ws2_32p.h:81
BOOLEAN Overlapped
Definition: ws2_32p.h:201
Definition: ws2_32p.h:85
DWORD CatalogEntryId
Definition: dllmain.c:21
PHOSTENT WSAAPI WsThreadBlobToHostent(IN PWSTHREAD Thread, IN LPBLOB Blob)
Definition: dthread.c:316
DWORD WSAAPI WsNpLookupServiceNext(IN PNS_PROVIDER Provider, IN HANDLE LookupHandle, IN DWORD ControlFlags, OUT PDWORD BufferLength, OUT LPWSAQUERYSETW Results)
Definition: nsprovid.c:240
PCHAR ByWhat
Definition: ws2_32p.h:35
#define ERROR_SUCCESS
Definition: deptool.c:10
PTPROVIDER WSAAPI WsTcFindProvider(IN PTCATALOG TCatalog, IN LPGUID ProviderId)
Definition: dcatalog.c:575
PWSPROCESS CurrentWsProcess
Definition: dprocess.c:15
struct _Entry Entry
Definition: kefuncs.h:640
BOOLEAN ShuttingDown
Definition: ws2_32p.h:149
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
PSERVENT WSAAPI WsThreadBlobToServent(IN PWSTHREAD Thread, IN LPBLOB Blob)
Definition: dthread.c:349
BOOL WSAAPI WsProcDetachSocket(IN PWSPROCESS Process, IN PWAH_HANDLE Handle)
Definition: dprocess.c:182
struct _WSASYNCBLOCK::@567::@571 GetServ
BOOL WSAAPI WsTcOpen(IN PTCATALOG TCatalog, IN HKEY)
Definition: dcatalog.c:38
DWORD WSAAPI WsNpLookupServiceEnd(IN PNS_PROVIDER Provider, IN HANDLE LookupHandle)
Definition: nsprovid.c:231
LPWSTR WSAAPI UnicodeDupFromAnsi(IN LPCSTR AnsiString)
Definition: qshelpr.c:68
DWORD WSAAPI WsTcLoadProvider(IN PTCATALOG TCatalog, IN PTCATALOG_ENTRY CatalogEntry)
Definition: dcatalog.c:608
PNSCATALOG Catalog
Definition: ws2_32p.h:211
VOID WSAAPI WsNcEntryDereference(IN PNSCATALOG_ENTRY CatalogEntry)
Definition: nscatent.c:53
PWSASYNCBLOCK WSAAPI WsAsyncAllocateBlock(IN SIZE_T ExtraLength)
Definition: async.c:439
HANDLE Handle
Definition: ws2_32p.h:197
HKEY CatalogKey
Definition: ws2_32p.h:100
PCHAR Aliases[MAXALIASES]
Definition: ws2_32p.h:73
BOOLEAN ApiSocket
Definition: ws2_32p.h:202
struct _TCATALOG * PTCATALOG
struct _TCATALOG TCATALOG
PNSQUERY_PROVIDER ActiveProvider
Definition: ws2_32p.h:151
char CHAR
Definition: xmlstorage.h:175
struct _NSQUERY_PROVIDER NSQUERY_PROVIDER
VOID WSAAPI WsNqDelete(IN PNSQUERY NsQuery)
Definition: nsquery.c:74
struct _NSQUERY NSQUERY
struct _PROVIDER_ENUM_CONTEXT * PPROVIDER_ENUM_CONTEXT
INT WSAAPI WsNcGetCatalogFromProviderId(IN PNSCATALOG Catalog, IN LPGUID ProviderId, OUT PNSCATALOG_ENTRY *CatalogEntry)
Definition: nscatalo.c:496
VOID WSAAPI WsTcEntryDelete(IN PTCATALOG_ENTRY CatalogEntry)
Definition: dcatitem.c:35
DWORD OpenType
Definition: ws2_32p.h:190
PWSPROTO_BUFFER WSAAPI WsThreadGetProtoBuffer(IN PWSTHREAD Thread)
Definition: dthread.c:120
HWND hWnd
Definition: settings.c:17
LONG RefCount
Definition: ws2_32p.h:88
LIST_ENTRY AsyncQueue
Definition: ws2_32p.h:26
BOOLEAN Initialized
Definition: ws2_32p.h:102
SIZE_T BytesUsed
Definition: ws2_32p.h:249
LIST_ENTRY ProtocolList
Definition: ws2_32p.h:96
static LPWSAQUERYSETW
Definition: sock.c:91
PTPROVIDER WSAAPI WsTpAllocate(VOID)
Definition: dprovide.c:20
LONG RefCount
Definition: ws2_32p.h:162
DWORD WSAAPI WsTcFindIfsProviderForSocket(IN PTCATALOG TCatalog, SOCKET Socket)
PWSSOCKET WSAAPI WsSockGetSocket(IN SOCKET Handle)
Definition: dsocket.c:140
DWORD NamespaceId
Definition: ws2_32p.h:108
struct _WSASYNCBLOCK::@567::@569 GetHost
DWORD WSAAPI WsTcGetEntryFromTriplet(IN PTCATALOG TCatalog, IN INT AddressFamily, IN INT SocketType, IN INT Protocol, IN DWORD StartId, IN PTCATALOG_ENTRY *CatalogEntry)
Definition: dcatalog.c:480
DWORD NextId
Definition: ws2_32p.h:99
DWORD TryAgain
Definition: ws2_32p.h:157
UINT_PTR WPARAM
Definition: windef.h:207
GUID ProviderId
Definition: ws2_32p.h:110
DWORD WSAAPI WsNpInitialize(IN PNS_PROVIDER Provider, IN LPWSTR DllPath, IN LPGUID ProviderGuid)
Definition: nsprovid.c:82
struct _NSCATALOG_ENTRY * PNSCATALOG_ENTRY
INT WSAAPI WsNcEntryInitializeFromRegistry(IN PNSCATALOG_ENTRY CatalogEntry, IN HKEY ParentKey, IN ULONG UniqueId)
Definition: nscatent.c:65
struct _WSASYNCBLOCK::@567::@570 GetProto
DWORD WSAAPI WsTcGetEntryFromCatalogEntryId(IN PTCATALOG TCatalog, IN DWORD CatalogEntryId, IN PTCATALOG_ENTRY *CatalogEntry)
Definition: dcatalog.c:434
PTCATALOG_ENTRY CatalogEntry
Definition: ws2_32p.h:200
VOID WSAAPI WsTcDelete(IN PTCATALOG Catalog)
Definition: dcatalog.c:862
Definition: nspapi.h:57
char * LPSTR
Definition: xmlstorage.h:182
LIST_ENTRY CatalogLink
Definition: ws2_32p.h:123
HANDLE LookupHandle
Definition: ws2_32p.h:118
PTPROVIDER Provider
Definition: ws2_32p.h:89
Definition: ws2_32p.h:121
struct _TPROVIDER TPROVIDER
#define BOOL
Definition: nt_native.h:43
HANDLE ProtocolCatalogEvent
Definition: ws2_32p.h:168
struct _PROVIDER_ENUM_CONTEXT PROVIDER_ENUM_CONTEXT
FARPROC BlockingHook
Definition: ws2_32p.h:182
HANDLE ApcHelper
Definition: ws2_32p.h:163
int32_t INT
Definition: typedefs.h:56
WSPPROC_TABLE Service
Definition: ws2_32p.h:80
VOID WSAAPI WsCreateStartupSynchronization(VOID)
Definition: startup.c:28
WPARAM wParam
Definition: combotst.c:138
HANDLE AsyncEvent
Definition: ws2_32p.h:66
DWORD WSAAPI WsNqProvLookupServiceNext(IN PNSQUERY_PROVIDER QueryProvider, DWORD, PDWORD, LPWSAQUERYSETW QuerySet)
PNS_PROVIDER Provider
Definition: ws2_32p.h:117
UINT wMsg
Definition: ws2_32p.h:34
LPBLOCKINGCALLBACK BlockingCallback
Definition: ws2_32p.h:181
VOID WSAAPI WsAsyncGlobalInitialize(VOID)
Definition: async.c:31
uint32_t ULONG_PTR
Definition: typedefs.h:63
LPWSATHREADID WSAAPI WsThreadGetThreadId(IN PWSPROCESS Process)
Definition: dthread.c:297
DWORD WSAAPI WsThreadUnhookBlockingHook(IN PWSTHREAD Thread)
Definition: dthread.c:84
VOID WSAAPI WsSockDereference(IN PWSSOCKET Socket)
Definition: dsocket.c:205
#define MAXALIASES
Definition: ws2_32p.h:11
VOID WSAAPI WsNqDereference(IN PNSQUERY Query)
Definition: nsquery.c:105
VOID WSAAPI WsTcEntrySetProvider(IN PTCATALOG_ENTRY CatalogEntry, IN PTPROVIDER Provider)
Definition: dcatitem.c:121
INT WSAAPI WsNcRefreshFromRegistry(IN PNSCATALOG Catalog, IN HANDLE CatalogEvent)
Definition: nscatalo.c:209
INT WSAAPI MapUnicodeQuerySetToAnsi(IN LPWSAQUERYSETW UnicodeSet, IN OUT PSIZE_T SetSize, OUT LPWSAQUERYSETA AnsiSet)
Definition: qshelpr.c:929
DWORD WSAAPI WsNqInitialize(IN PNSQUERY NsQuery)
Definition: nsquery.c:42
LIST_ENTRY CatalogList
Definition: ws2_32p.h:138
struct _NSCATALOG_ENTRY NSCATALOG_ENTRY
ULONG_PTR * PSIZE_T
Definition: typedefs.h:78
HANDLE HandleHelper
Definition: ws2_32p.h:164
LPWSAQUERYSETW lpqsRestrictions
Definition: ws2_32p.h:208
unsigned int BOOL
Definition: ntddk_ex.h:94
PNSQUERY_PROVIDER CurrentProvider
Definition: ws2_32p.h:153
long LONG
Definition: pedump.c:60
_In_ ULONG BufferLength
Definition: usbdlib.h:225
INT WSAAPI WsAsyncCancelRequest(IN HANDLE TaskHandle)
Definition: async.c:936
PROTOENT Protoent
Definition: ws2_32p.h:72
struct _WSASYNCCONTEXT WSASYNCCONTEXT
LPWSTR ProviderName
Definition: ws2_32p.h:129
VOID WSAAPI WsNpDelete(IN PNS_PROVIDER Provider)
Definition: nsprovid.c:161
#define FAR
Definition: guiddef.h:36
BOOL WSAAPI WSAttemptAutodialName(IN CONST LPWSAQUERYSETW lpqsRestrictions)
Definition: winsock.c:58
struct _NSCATALOG NSCATALOG
DWORD WSAAPI WsTpInitialize(IN PTPROVIDER Provider, IN LPSTR DllName, LPWSAPROTOCOL_INFOW ProtocolInfo)
DWORD ItemCount
Definition: ws2_32p.h:97
DWORD WSAAPI WsNqLookupServiceEnd(IN PNSQUERY NsQuery)
Definition: nsquery.c:164
VOID WSAAPI WsNpDereference(IN PNS_PROVIDER Provider)
Definition: nsprovid.c:180
DWORD ControlFlags
Definition: ws2_32p.h:155
DWORD WSAAPI WsTpWSPCleanup(IN PTPROVIDER Provider, int *)
struct _PROTOCOL_ENUM_CONTEXT PROTOCOL_ENUM_CONTEXT
CRITICAL_SECTION ThreadLock
Definition: ws2_32p.h:172
INT WSAAPI WsSetupCatalogProtection(IN HKEY CatalogKey, IN HANDLE CatalogEvent, OUT LPDWORD UniqueId)
Definition: wsautil.c:142
DWORD Type
Definition: ws2_32p.h:37
PWSPROCESS Process
Definition: ws2_32p.h:198
struct _WSTHREAD WSTHREAD
unsigned char BOOLEAN
INT WSAAPI WsSockInitialize(IN PWSSOCKET Socket, IN PTCATALOG_ENTRY CatalogEntry)
Definition: dsocket.c:67
struct _TPROVIDER * PTPROVIDER
CHAR DllPath[MAX_PATH]
Definition: ws2_32p.h:90
static WCHAR Address[46]
Definition: ping.c:68
PNSQUERY NsQuery
Definition: ws2_32p.h:210
FORCEINLINE PWSPROCESS WsGetProcess(VOID)
Definition: ws2_32p.h:885
VOID WSAAPI WSNoteSuccessfulHostentLookup(IN CONST CHAR FAR *Name, IN CONST ULONG Address)
Definition: winsock.c:119
struct _ENUM_CONTEXT ENUM_CONTEXT
BOOL WSAAPI WsSockDeleteSockets(IN LPVOID Context, IN PWAH_HANDLE Handle)
Definition: dsocket.c:180
#define FORCEINLINE
Definition: ntbasedef.h:221
PWSSOCKET WSAAPI WsSockAllocate(VOID)
Definition: dsocket.c:48
VOID WSAAPI WsRasInitializeAutodial(VOID)
Definition: rasdial.c:47
struct _WSASYNCCONTEXT * PWSASYNCCONTEXT
LONG_PTR LPARAM
Definition: windef.h:208
INT WSAAPI MapAnsiQuerySetToUnicode(IN LPWSAQUERYSETA AnsiSet, IN OUT PSIZE_T SetSize, OUT LPWSAQUERYSETW UnicodeSet)
Definition: qshelpr.c:808
DWORD WSAAPI WsTcRefreshFromRegistry(IN PTCATALOG TCatalog, PVOID)
LONG RefCount
Definition: ws2_32p.h:124
INT WSAAPI WsSockDisassociateHandle(IN PWSSOCKET Socket)
Definition: dsocket.c:217
Definition: bufpool.h:45
struct _WSPROCESS WSPROCESS
ULONG_PTR Position
Definition: ws2_32p.h:247
const char * LPCSTR
Definition: xmlstorage.h:183
struct _WSSOCKET WSSOCKET
VOID WSAAPI WsSockCleanup(VOID)
Definition: dsocket.c:36
LPSTR WSAAPI AnsiDupFromUnicode(IN LPCWSTR UnicodeString)
Definition: qshelpr.c:20
BOOL WSAAPI WsAsyncCheckAndInitThread(VOID)
Definition: async.c:832
FORCEINLINE DWORD WsQuickPrologTid(LPWSATHREADID *Tid)
Definition: ws2_32p.h:900
VOID WSAAPI WsThreadCleanup(VOID)
Definition: dthread.c:170
struct _NSPROVIDER_ENUM_CONTEXT NSPROVIDER_ENUM_CONTEXT
PNSQUERY WSAAPI WsNqAllocate(VOID)
Definition: nsquery.c:22
DWORD WSAAPI WsNqLookupServiceNext(PNSQUERY NsQuery, DWORD, PDWORD, OUT LPWSAQUERYSETW QuerySet)
INT WSAAPI WsSlowPrologTid(OUT LPWSATHREADID *ThreadId)
Definition: wsautil.c:120
PCHAR Servent
Definition: ws2_32p.h:187
DWORD WSAAPI WsNqProvLookupServiceBegin(IN PNSQUERY_PROVIDER QueryProvider, IN LPWSAQUERYSETW QuerySet, IN LPWSASERVICECLASSINFOW ServiceClassInfo, IN DWORD)
Definition: nsprovid.c:216
BOOLEAN WsAsyncThreadInitialized
Definition: async.c:15
WSATHREADID WahThreadId
Definition: ws2_32p.h:178
HANDLE NamespaceCatalogEvent
Definition: ws2_32p.h:169
struct _TCATALOG_ENTRY TCATALOG_ENTRY
INT WSAAPI WsNcLoadProvider(IN PNSCATALOG Catalog, IN PNSCATALOG_ENTRY CatalogEntry)
Definition: nscatalo.c:379
struct _ENUM_CONTEXT * PENUM_CONTEXT
struct _NSQUERY_PROVIDER * PNSQUERY_PROVIDER
LPWSAQUERYSETW QuerySet
Definition: ws2_32p.h:154
_In_ HANDLE Handle
Definition: extypes.h:390
SIZE_T MaxSize
Definition: ws2_32p.h:248
struct _WSASYNCBLOCK * PWSASYNCBLOCK
struct _WSPROTO_BUFFER * PWSPROTO_BUFFER
VOID WSAAPI WsTcEntryDereference(IN PTCATALOG_ENTRY CatalogEntry)
Definition: dcatitem.c:51
PWSTHREAD WSAAPI WsThreadAllocate(VOID)
Definition: dthread.c:135
PNSQUERY_PROVIDER WSAAPI WsNqNextProvider(PNSQUERY NsQuery, IN PNSQUERY_PROVIDER Provider)
PTCATALOG_ENTRY WSAAPI WsTcEntryAllocate(VOID)
Definition: dcatitem.c:17
DWORD WSAAPI WsThreadDefaultBlockingHook(VOID)
Definition: dthread.c:17
BOOLEAN Enabled
Definition: ws2_32p.h:130
LIST_ENTRY List
Definition: psmgr.c:57
VOID WSAAPI WsDestroyStartupSynchronization(VOID)
Definition: startup.c:36
__wchar_t WCHAR
Definition: xmlstorage.h:180
INT ErrorCode
Definition: ws2_32p.h:209
VOID WSAAPI WsAsyncTerminateThread(VOID)
Definition: async.c:899
DWORD GlobalTlsIndex
Definition: dllmain.c:23
LIST_ENTRY ProviderList
Definition: ws2_32p.h:150
DWORD WSAAPI WsThreadCreate(IN PWSPROCESS Process, IN PWSTHREAD *Thread)
Definition: dthread.c:244
PNSQUERY_PROVIDER WSAAPI WsNqPreviousProvider(IN PNSQUERY Query, IN PNSQUERY_PROVIDER Provider)
Definition: nsquery.c:532
WCHAR DllPath[MAX_PATH]
Definition: ws2_32p.h:133
PNS_PROVIDER Provider
Definition: ws2_32p.h:125
PTPROVIDER Provider
Definition: ws2_32p.h:199
#define MAX_PATH
Definition: compat.h:26
#define WINAPI
Definition: msvc.h:8
unsigned short WORD
Definition: ntddk_ex.h:93
PWAH_HANDLE_TABLE WsSockHandleTable
Definition: dsocket.c:15
HANDLE AsyncHelper
Definition: ws2_32p.h:179
INT WSAAPI CopyQuerySetW(IN LPWSAQUERYSETW UnicodeSet, OUT LPWSAQUERYSETW *UnicodeCopy)
Definition: qshelpr.c:1050
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL WSAAPI WsNqValidateAndReference(IN PNSQUERY Query)
Definition: nsquery.c:57
BOOL WSAAPI WsNqAddProvider(IN PNSQUERY NsQuery, IN PNS_PROVIDER Provider)
Definition: nsquery.c:552
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
Definition: fltkernel.h:2653
HKEY CatalogKey
Definition: ws2_32p.h:141
VOID WSAAPI WsProcDelete(IN PWSPROCESS Process)
Definition: dprocess.c:247
LONG RefCount
Definition: ws2_32p.h:107
DWORD BufferLength
Definition: ws2_32p.h:39
VOID WSAAPI WsNqProvDelete(IN PNSQUERY_PROVIDER QueryProvider)
Definition: nsprovid.c:45
VOID WSAAPI WsThreadDestroyCurrentThread(VOID)
Definition: dthread.c:225
DWORD WSAAPI WsTcEntryInitializeFromRegistry(IN PTCATALOG_ENTRY CatalogEntry, IN HKEY, unsigned long)
DWORD Version
Definition: ws2_32p.h:170
BOOL Query(LPCTSTR *ServiceArgs, DWORD ArgCount, BOOL bExtended)
Definition: query.c:292
PCHAR Hostent
Definition: ws2_32p.h:186
VOID WSAAPI WsProcSetVersion(IN PWSPROCESS Process, IN WORD VersionRequested)
Definition: dprocess.c:312
struct _NSCATALOG * PNSCATALOG
INT WSAAPI WsApiProlog(OUT PWSPROCESS *Process, OUT PWSTHREAD *Thread)
Definition: wsautil.c:91
DWORD NamespaceId
Definition: ws2_32p.h:127
LIST_ENTRY CatalogLink
Definition: ws2_32p.h:87
LIST_ENTRY SocketList
Definition: ws2_32p.h:67
CRITICAL_SECTION Lock
Definition: ws2_32p.h:101
PWSPROCESS Process
Definition: ws2_32p.h:177
WSAPROTOCOL_INFOW ProtocolInfo
Definition: ws2_32p.h:91
HWND hWnd
Definition: ws2_32p.h:33
INT WSAAPI WsSockAssociateHandle(IN PWSSOCKET Socket, IN SOCKET Handle, IN BOOLEAN IsProvider)
Definition: dsocket.c:225
BOOL WSAAPI WsCheckCatalogState(IN HANDLE Event)
Definition: wsautil.c:75
LPWSPCANCELBLOCKINGCALL CancelBlockingCall
Definition: ws2_32p.h:180
DWORD WSAAPI WsNpNSPCleanup(IN PNS_PROVIDER Provider)
Definition: nsprovid.c:140
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:414
LONG RefCount
Definition: ws2_32p.h:79
INT WSAAPI WsSockAddApiReference(IN SOCKET Handle)
Definition: dsocket.c:159
VOID WSAAPI WsNcEntrySetProvider(IN PNSCATALOG_ENTRY Entry, IN PNS_PROVIDER Provider)
Definition: nscatent.c:175
struct _NSPROVIDER * PNS_PROVIDER
Definition: typedefs.h:117
VOID WSAAPI WsTcEnumerateCatalogItems(IN PTCATALOG Catalog, IN PTCATALOG_ENUMERATE_PROC Callback, IN PVOID Context)
Definition: dcatalog.c:729
DWORD UniqueId
Definition: ws2_32p.h:140
enum _WSASYNCOPS WSASYNCOPS
struct _PROTOCOL_ENUM_CONTEXT * PPROTOCOL_ENUM_CONTEXT
struct _NSPROVIDER NSPROVIDER
VOID WSAAPI WsNcEnumerateCatalogItems(IN PNSCATALOG Catalog, IN PNSCATALOG_ENUMERATE_PROC Callback, IN PVOID Context)
Definition: nscatalo.c:350
DWORD HostentSize
Definition: ws2_32p.h:188
LIST_ENTRY QueryLink
Definition: ws2_32p.h:116
_In_ USHORT SocketType
Definition: wsk.h:182
LONG RefCount
Definition: ws2_32p.h:196
struct _NSQUERY * PNSQUERY
PCHAR Protocol
Definition: ws2_32p.h:56
DWORD WSAAPI WsThreadStartup(VOID)
Definition: dthread.c:153
PTCATALOG ProtocolCatalog
Definition: ws2_32p.h:166
CRITICAL_SECTION Lock
Definition: ws2_32p.h:142
INT WSAAPI WsSockStartup(VOID)
Definition: dsocket.c:21
struct _WSTHREAD * PWSTHREAD
struct _WSPROCESS * PWSPROCESS
ULONG_PTR SIZE_T
Definition: typedefs.h:78
struct _NSPROVIDER_ENUM_CONTEXT * PNSPROVIDER_ENUM_CONTEXT
INT WSAAPI WsNcGetServiceClassInfo(IN PNSCATALOG Catalog, IN OUT LPDWORD BugSize, IN OUT LPWSASERVICECLASSINFOW lpServiceClassInfo)
Definition: nscatalo.c:423
PNSQUERY_PROVIDER WSAAPI WsNqProvAllocate(VOID)
Definition: nsprovid.c:17
DWORD WSAAPI WsThreadGetCurrentThread(IN PWSPROCESS Process, IN PWSTHREAD *Thread)
Definition: dthread.c:279
CHAR LineBuffer[512]
Definition: ws2_32p.h:74
VOID WSAAPI WsThreadDelete(IN PWSTHREAD Thread)
Definition: dthread.c:202
PNSCATALOG WSAAPI WsProcGetNsCatalog(IN PWSPROCESS Process)
Definition: dprocess.c:166
PNS_PROVIDER WSAAPI WsNpAllocate(VOID)
Definition: nsprovid.c:63
static const char const char * DllPath
Definition: image.c:34
#define WSAAPI
Definition: winsock2.h:584
struct _WSPROTO_BUFFER WSPROTO_BUFFER
DWORD Length
Definition: ws2_32p.h:36
INT WSAAPI MapUnicodeProtocolInfoToAnsi(IN LPWSAPROTOCOL_INFOW UnicodeInfo, OUT LPWSAPROTOCOL_INFOA AnsiInfo)
Definition: wsautil.c:224
BOOLEAN Cancelled
Definition: ws2_32p.h:184
PNSCATALOG_ENTRY WSAAPI WsNcEntryAllocate(VOID)
Definition: nscatent.c:17
VOID WSAAPI WsTpDelete(IN PTPROVIDER Provider)
Definition: dprovide.c:122
unsigned int UINT
Definition: ndis.h:50
DWORD WSAAPI WsNpLookupServiceBegin(IN PNS_PROVIDER Provider, IN LPWSAQUERYSETW Restrictions, struct _WSAServiceClassInfoW *, IN DWORD ControlFlags, OUT PHANDLE LookupHandle)
GUID ProviderId
Definition: ws2_32p.h:132
BOOLEAN StoresServiceClassInfo
Definition: ws2_32p.h:131
BOOLEAN Blocking
Definition: ws2_32p.h:183
DWORD ItemCount
Definition: ws2_32p.h:139
VOID WSAAPI WsNcUpdateNamespaceList(IN PNSCATALOG Catalog, IN PLIST_ENTRY List)
Definition: nscatalo.c:434
DWORD * PDWORD
Definition: pedump.c:68
PVOID Buffer
Definition: ws2_32p.h:38
VOID WSAAPI WsAsyncGlobalTerminate(VOID)
Definition: async.c:39
DWORD WSAAPI WsNqLookupServiceBegin(IN PNSQUERY NsQuery, IN LPWSAQUERYSETW QuerySet, IN DWORD ControlFlags, IN PNSCATALOG Catalog)
Definition: nsquery.c:347
VOID WSAAPI WsRasUninitializeAutodial(VOID)
Definition: rasdial.c:55
VOID WSAAPI WsAsyncQueueRequest(IN PWSASYNCBLOCK AsyncBlock)
Definition: async.c:919
HINSTANCE DllHandle
Definition: ws2_32p.h:109
NSP_ROUTINE Service
Definition: ws2_32p.h:111
WSPUPCALLTABLE UpcallTable
Definition: ws2_32p.h:82
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
#define OUT
Definition: typedefs.h:39
VOID WSAAPI WsNcDelete(IN PNSCATALOG Catalog)
Definition: nscatalo.c:603
uint32_t * LPDWORD
Definition: typedefs.h:57
struct tagContext Context
Definition: acpixf.h:1012
DWORD WSAAPI WsNqProvInitialize(IN PNSQUERY_PROVIDER QueryProvider, IN PNS_PROVIDER Provider)
Definition: nsprovid.c:30
VOID WSAAPI WsTcUpdateProtocolList(IN PTCATALOG TCatalog, PLIST_ENTRY ProtocolList)
unsigned int ULONG
Definition: retypes.h:1
LPWSAPROTOCOL_INFOW ProtocolBuffer
Definition: ws2_32p.h:228
PVOID ProtocolInfo
Definition: ws2_32p.h:191
DWORD UniqueId
Definition: ws2_32p.h:98
DWORD WSAAPI WsThreadCancelBlockingCall(IN PWSTHREAD Thread)
Definition: dthread.c:96
CRITICAL_SECTION Lock
Definition: ws2_32p.h:152
UINT_PTR SOCKET
Definition: winsock.h:47
HANDLE NotificationHelper
Definition: ws2_32p.h:165
BOOL WSAAPI WSAttemptAutodialAddr(IN CONST SOCKADDR FAR *Name, IN INT NameLength)
Definition: winsock.c:20
struct _WS_BUFFER WS_BUFFER
PNSCATALOG WSAAPI WsNcAllocate(VOID)
Definition: nscatalo.c:25
BOOL WSAAPI WsNcMatchProtocols(IN DWORD NameSpace, IN LONG AddressFamily, IN LPWSAQUERYSETW QuerySet)
Definition: nscatalo.c:540
DWORD WSAAPI WsThreadInitialize(IN PWSTHREAD Thread, IN PWSPROCESS Process)
Definition: dthread.c:176
DWORD ServentSize
Definition: ws2_32p.h:189
WCHAR * LPWSTR
Definition: xmlstorage.h:184
DWORD WSAAPI WsNqProvLookupServiceEnd(IN PNSQUERY_PROVIDER QueryProvider)
Definition: nsprovid.c:192
FORCEINLINE DWORD WsQuickProlog(VOID)
Definition: ws2_32p.h:892
struct _WSASYNCBLOCK WSASYNCBLOCK
LPFNPSPCALLBACK Callback
Definition: desk.c:111
struct _WSSOCKET * PWSSOCKET
HANDLE WsSockHeap
Definition: dllmain.c:21
BOOL(WINAPI * PNSCATALOG_ENUMERATE_PROC)(IN PVOID Context, IN PNSCATALOG_ENTRY Entry)
Definition: ws2_32p.h:253
LONG RefCount
Definition: ws2_32p.h:148
DWORD Signature
Definition: ws2_32p.h:147
LPARAM lParam
Definition: combotst.c:139
WSASYNCOPS Operation
Definition: ws2_32p.h:28
_WSASYNCOPS
Definition: ws2_32p.h:13
#define CONST
Definition: pedump.c:81
DWORD WSAAPI WsTcGetEntryFromAf(IN PTCATALOG TCatalog, IN INT AddressFamily, IN PTCATALOG_ENTRY *CatalogEntry)
Definition: dcatalog.c:382
base of all file and directory entries
Definition: entries.h:82
int(* FARPROC)()
Definition: compat.h:28
PNSCATALOG NamespaceCatalog
Definition: ws2_32p.h:167
int(WSPAPI * LPWSPCANCELBLOCKINGCALL)(_Out_ LPINT lpErrno)
Definition: ws2spi.h:96
INT WSAAPI WsNcInitializeFromRegistry(IN PNSCATALOG Catalog, IN HKEY ParentKey, IN HANDLE CatalogEvent)
Definition: nscatalo.c:190
PTCATALOG WSAAPI WsProcGetTCatalog(IN PWSPROCESS Process)
Definition: dprocess.c:150
HINSTANCE WsDllHandle
Definition: dllmain.c:22
PTCATALOG WSAAPI WsTcAllocate(VOID)
Definition: dcatalog.c:25
struct _TCATALOG_ENTRY * PTCATALOG_ENTRY
int * LPINT
Definition: windef.h:178
BOOL(WINAPI * PTCATALOG_ENUMERATE_PROC)(IN PVOID Context, IN PTCATALOG_ENTRY Entry)
Definition: ws2_32p.h:259
INT WSAAPI WsProcStartup(VOID)
Definition: dprocess.c:126
FARPROC WSAAPI WsThreadSetBlockingHook(IN PWSTHREAD Thread, IN FARPROC BlockingHook)
Definition: dthread.c:60
struct _WS_BUFFER * PWS_BUFFER