[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.
This commit is contained in:
Johannes Thoma 2023-09-19 17:28:19 +02:00 committed by GitHub
parent 8d74bc4b46
commit 490fbfb2c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);