mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Annotate return types
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Squirrel
|
|||||||
static class NativeMethods
|
static class NativeMethods
|
||||||
{
|
{
|
||||||
[DllImport("version.dll", SetLastError = true)]
|
[DllImport("version.dll", SetLastError = true)]
|
||||||
public static extern bool GetFileVersionInfo(
|
[return:MarshalAs(UnmanagedType.Bool)] public static extern bool GetFileVersionInfo(
|
||||||
string lpszFileName,
|
string lpszFileName,
|
||||||
IntPtr dwHandleIgnored,
|
IntPtr dwHandleIgnored,
|
||||||
int dwLen,
|
int dwLen,
|
||||||
@@ -22,6 +22,10 @@ namespace Squirrel
|
|||||||
IntPtr dwHandleIgnored);
|
IntPtr dwHandleIgnored);
|
||||||
|
|
||||||
[DllImport("version.dll")]
|
[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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user