[PSDK] Add missing hMonitor member in union with hIcon in SHELLEXECUTEINFOA/W

As documented in the official MS PSDK and MSDN.
This commit is contained in:
Hermès Bélusca-Maïto 2025-04-29 16:25:13 +02:00
parent 37e2c59096
commit b1cf981c52
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -319,11 +319,17 @@ typedef struct _SHELLEXECUTEINFOA {
LPCSTR lpDirectory; LPCSTR lpDirectory;
int nShow; int nShow;
HINSTANCE hInstApp; HINSTANCE hInstApp;
/* Optional fields */
PVOID lpIDList; PVOID lpIDList;
LPCSTR lpClass; LPCSTR lpClass;
HKEY hkeyClass; HKEY hkeyClass;
DWORD dwHotKey; DWORD dwHotKey;
HANDLE hIcon; _ANONYMOUS_UNION union {
HANDLE hIcon;
#if (NTDDI_VERSION >= NTDDI_WIN2K)
HANDLE hMonitor;
#endif
} DUMMYUNIONNAME;
HANDLE hProcess; HANDLE hProcess;
} SHELLEXECUTEINFOA,*LPSHELLEXECUTEINFOA; } SHELLEXECUTEINFOA,*LPSHELLEXECUTEINFOA;
typedef struct _SHELLEXECUTEINFOW { typedef struct _SHELLEXECUTEINFOW {
@ -336,11 +342,17 @@ typedef struct _SHELLEXECUTEINFOW {
LPCWSTR lpDirectory; LPCWSTR lpDirectory;
int nShow; int nShow;
HINSTANCE hInstApp; HINSTANCE hInstApp;
/* Optional fields */
PVOID lpIDList; PVOID lpIDList;
LPCWSTR lpClass; LPCWSTR lpClass;
HKEY hkeyClass; HKEY hkeyClass;
DWORD dwHotKey; DWORD dwHotKey;
HANDLE hIcon; _ANONYMOUS_UNION union {
HANDLE hIcon;
#if (NTDDI_VERSION >= NTDDI_WIN2K)
HANDLE hMonitor;
#endif
} DUMMYUNIONNAME;
HANDLE hProcess; HANDLE hProcess;
} SHELLEXECUTEINFOW,*LPSHELLEXECUTEINFOW; } SHELLEXECUTEINFOW,*LPSHELLEXECUTEINFOW;
typedef struct _SHFILEOPSTRUCTA { typedef struct _SHFILEOPSTRUCTA {