From 7dc244d6446ec5dd01b578e24fa0a2682a89fa7a Mon Sep 17 00:00:00 2001 From: Paul Betts Date: Thu, 21 Aug 2014 14:47:22 -0700 Subject: [PATCH] Annotate return types --- src/Squirrel/NativeMethods.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Squirrel/NativeMethods.cs b/src/Squirrel/NativeMethods.cs index 611f4d3b..a717002c 100644 --- a/src/Squirrel/NativeMethods.cs +++ b/src/Squirrel/NativeMethods.cs @@ -10,7 +10,7 @@ namespace Squirrel static class NativeMethods { [DllImport("version.dll", SetLastError = true)] - public static extern bool GetFileVersionInfo( + [return:MarshalAs(UnmanagedType.Bool)] public static extern bool GetFileVersionInfo( string lpszFileName, IntPtr dwHandleIgnored, int dwLen, @@ -22,6 +22,10 @@ namespace Squirrel IntPtr dwHandleIgnored); [DllImport("version.dll")] - public static extern bool VerQueryValue(byte[] pBlock, string pSubBlock, out IntPtr pValue, out int len); + [return:MarshalAs(UnmanagedType.Bool)] public static extern bool VerQueryValue( + byte[] pBlock, + string pSubBlock, + out IntPtr pValue, + out int len); } }