From adeddd0218155c9a9b6a5c60a398edcdafd3d200 Mon Sep 17 00:00:00 2001 From: David Hall Date: Sat, 25 May 2024 19:01:37 -0600 Subject: [PATCH] Add Pack stmt to Shell32.SHQUERYRBINFO to make compatible with 32 or 64-bit. --- PInvoke/Shell32/ShellApi.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PInvoke/Shell32/ShellApi.cs b/PInvoke/Shell32/ShellApi.cs index f0dac713..576cd427 100644 --- a/PInvoke/Shell32/ShellApi.cs +++ b/PInvoke/Shell32/ShellApi.cs @@ -4539,7 +4539,7 @@ public static partial class Shell32 // https://docs.microsoft.com/en-us/windows/desktop/api/shellapi/ns-shellapi-_shqueryrbinfo typedef struct _SHQUERYRBINFO { DWORD // cbSize; __int64 i64Size; __int64 i64NumItems; DWORDLONG i64Size; DWORDLONG i64NumItems; } SHQUERYRBINFO, *LPSHQUERYRBINFO; [PInvokeData("shellapi.h", MSDNShortId = "7e9bc7e9-5712-45e7-a424-0afb62f26450")] - [StructLayout(LayoutKind.Sequential)] + [StructLayout(LayoutKind.Sequential, Pack = 0)] public struct SHQUERYRBINFO { /// The size of the structure, in bytes. This member must be filled in prior to calling the function.