Skip to content

Commit 984284c

Browse files
[DDK] Fix wsk.h header (reactos#5544)
Some datagram related dispatcher function types (like PFN_WSK_SEND_TO) were used before they were declared. This patch moves the use after the definition.
1 parent 0aa2e82 commit 984284c

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

sdk/include/ddk/wsk.h

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -284,23 +284,6 @@ NTSTATUS
284284
_Inout_ PIRP Irp);
285285
#endif /* (NTDDI_VERSION >= NTDDI_WIN8) */
286286

287-
typedef struct _WSK_PROVIDER_DATAGRAM_DISPATCH
288-
{
289-
#ifdef __cplusplus
290-
WSK_PROVIDER_BASIC_DISPATCH Basic;
291-
#else
292-
WSK_PROVIDER_BASIC_DISPATCH;
293-
#endif
294-
PFN_WSK_BIND WskBind;
295-
PFN_WSK_SEND_TO WskSendTo;
296-
PFN_WSK_RECEIVE_FROM WskReceiveFrom;
297-
PFN_WSK_RELEASE_DATAGRAM_INDICATION_LIST WskRelease;
298-
PFN_WSK_GET_LOCAL_ADDRESS WskGetLocalAddress;
299-
#if (NTDDI_VERSION >= NTDDI_WIN8)
300-
PFN_WSK_SEND_MESSAGES WskSendMessages;
301-
#endif
302-
} WSK_PROVIDER_DATAGRAM_DISPATCH, *PWSK_PROVIDER_DATAGRAM_DISPATCH;
303-
304287
typedef
305288
NTSTATUS
306289
(WSKAPI * PFN_WSK_CONNECT) (
@@ -507,6 +490,23 @@ NTSTATUS
507490
_In_ PWSK_SOCKET Socket,
508491
_In_ PWSK_DATAGRAM_INDICATION DatagramIndication);
509492

493+
typedef struct _WSK_PROVIDER_DATAGRAM_DISPATCH
494+
{
495+
#ifdef __cplusplus
496+
WSK_PROVIDER_BASIC_DISPATCH Basic;
497+
#else
498+
WSK_PROVIDER_BASIC_DISPATCH;
499+
#endif
500+
PFN_WSK_BIND WskBind;
501+
PFN_WSK_SEND_TO WskSendTo;
502+
PFN_WSK_RECEIVE_FROM WskReceiveFrom;
503+
PFN_WSK_RELEASE_DATAGRAM_INDICATION_LIST WskRelease;
504+
PFN_WSK_GET_LOCAL_ADDRESS WskGetLocalAddress;
505+
#if (NTDDI_VERSION >= NTDDI_WIN8)
506+
PFN_WSK_SEND_MESSAGES WskSendMessages;
507+
#endif
508+
} WSK_PROVIDER_DATAGRAM_DISPATCH, *PWSK_PROVIDER_DATAGRAM_DISPATCH;
509+
510510
typedef
511511
NTSTATUS
512512
(WSKAPI * PFN_WSK_CLIENT_EVENT)(

0 commit comments

Comments
 (0)