https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0616df11e6a4c4fb29d0a…
commit 0616df11e6a4c4fb29d0a44bc4d278608472b485
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sat Jul 15 12:59:06 2023 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Sat Jul 15 12:59:06 2023 +0200
[PSDK] Fix issues with callback function type declarations
---
sdk/include/psdk/netsh.h | 45 +++++++++------------------------------------
1 file changed, 9 insertions(+), 36 deletions(-)
diff --git a/sdk/include/psdk/netsh.h b/sdk/include/psdk/netsh.h
index 39cef2f6ff3..5a42dd01c96 100644
--- a/sdk/include/psdk/netsh.h
+++ b/sdk/include/psdk/netsh.h
@@ -7,71 +7,49 @@ extern "C" {
typedef
DWORD
-WINAPI
-(GET_RESOURCE_STRING_FN)(
+(WINAPI *PGET_RESOURCE_STRING_FN)(
_In_ DWORD dwMsgID,
_Out_ LPWSTR lpBuffer,
_In_ DWORD nBufferMax);
-typedef GET_RESOURCE_STRING_FN *PGET_RESOURCE_STRING_FN;
-
typedef
DWORD
-WINAPI
-(NS_DLL_INIT_FN)(
+(WINAPI *PNS_DLL_INIT_FN)(
_In_ DWORD dwNetshVersion,
_Out_ PVOID pReserved);
-typedef NS_DLL_INIT_FN *PNS_DLL_INIT_FN;
-
typedef
DWORD
-WINAPI
-(NS_HELPER_START_FN)(
+(WINAPI *PNS_HELPER_START_FN)(
_In_ const GUID *pguidParent,
_In_ DWORD dwVersion);
-typedef NS_HELPER_START_FN *PNS_HELPER_START_FN;
-
typedef
DWORD
-WINAPI
-(NS_HELPER_STOP_FN)(
+(WINAPI *PNS_HELPER_STOP_FN)(
_In_ DWORD dwReserved);
-typedef NS_HELPER_STOP_FN *PNS_HELPER_STOP_FN;
-
typedef
DWORD
-WINAPI
-(NS_CONTEXT_COMMIT_FN)(
+(WINAPI *PNS_CONTEXT_COMMIT_FN)(
_In_ DWORD dwAction);
-typedef NS_CONTEXT_COMMIT_FN *PNS_CONTEXT_COMMIT_FN;
-
typedef
DWORD
-WINAPI
-(NS_CONTEXT_CONNECT_FN)(
+(WINAPI *PNS_CONTEXT_CONNECT_FN)(
_In_ LPCWSTR pwszMachine);
-typedef NS_CONTEXT_CONNECT_FN *PNS_CONTEXT_CONNECT_FN;
-
typedef
DWORD
-WINAPI
-(NS_CONTEXT_DUMP_FN)(
+(WINAPI *PNS_CONTEXT_DUMP_FN)(
_In_ LPCWSTR pwszRouter,
_In_ LPWSTR *ppwcArguments,
_In_ DWORD dwArgCount,
_In_ LPCVOID pvData);
-typedef NS_CONTEXT_DUMP_FN *PNS_CONTEXT_DUMP_FN;
-
typedef
BOOL
-WINAPI
-(NS_OSVERSIONCHECK)(
+(WINAPI *PNS_OSVERSIONCHECK)(
_In_ UINT CIMOSType,
_In_ UINT CIMOSProductSuite,
_In_ LPCWSTR CIMOSVersion,
@@ -81,12 +59,9 @@ WINAPI
_In_ UINT uiReserved,
_In_ DWORD dwReserved);
-typedef NS_OSVERSIONCHECK *PNS_OSVERSIONCHECK;
-
typedef
DWORD
-WINAPI
-(FN_HANDLE_CMD)(
+(WINAPI *PFN_HANDLE_CMD)(
_In_ LPCWSTR pwszMachine,
_In_ LPWSTR *ppwcArguments,
_In_ DWORD dwCurrentIndex,
@@ -95,8 +70,6 @@ WINAPI
_In_ LPCVOID pvData,
_Out_ BOOL *pbDone);
-typedef FN_HANDLE_CMD *PFN_HANDLE_CMD;
-
typedef struct _CMD_ENTRY
{