https://git.reactos.org/?p=reactos.git;a=commitdiff;h=490fbfb2c599f61c780fa…
commit 490fbfb2c599f61c780fae8e60cd5e45b3f21ffe
Author: Johannes Thoma <johannes(a)johannesthoma.com>
AuthorDate: Tue Sep 19 17:28:19 2023 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Tue Sep 19 18:28:19 2023 +0300
[DDK] wsk header: Add WSKAPI to exported functions. (#5687)
Names need decoration (stdcall) in order to be linked.
When using the wsk.h header functions exported therein should
be WSKAPI (which enforces the stdcall calling convention). Linking
would later fail because stdcall functions are named differently in
the object code.
---
sdk/include/ddk/wsk.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sdk/include/ddk/wsk.h b/sdk/include/ddk/wsk.h
index e9458e8d882..0fe2fd3fd60 100644
--- a/sdk/include/ddk/wsk.h
+++ b/sdk/include/ddk/wsk.h
@@ -585,28 +585,33 @@ typedef struct _WSK_TRANSPORT
_Must_inspect_result_
NTSTATUS
+WSKAPI
WskRegister(
_In_ PWSK_CLIENT_NPI WskClientNpi,
_Out_ PWSK_REGISTRATION WskRegistration);
_Must_inspect_result_
NTSTATUS
+WSKAPI
WskCaptureProviderNPI(
_In_ PWSK_REGISTRATION WskRegistration,
_In_ ULONG WaitTimeout,
_Out_ PWSK_PROVIDER_NPI WskProviderNpi);
VOID
+WSKAPI
WskReleaseProviderNPI(
_In_ PWSK_REGISTRATION WskRegistration);
_Must_inspect_result_
NTSTATUS
+WSKAPI
WskQueryProviderCharacteristics(
_In_ PWSK_REGISTRATION WskRegistration,
_Out_ PWSK_PROVIDER_CHARACTERISTICS WskProviderCharacteristics);
VOID
+WSKAPI
WskDeregister(
_In_ PWSK_REGISTRATION WskRegistration);