Added cap query support example.

This commit is contained in:
soukoku
2014-04-20 22:24:05 -04:00
parent a766370930
commit 31f77edb40
11 changed files with 76 additions and 44 deletions

View File

@@ -13,7 +13,7 @@ namespace NTwain
{
public IntPtr Allocate(uint size)
{
IntPtr retVal = NativeMethods.WinGlobalAlloc(0x0040, new UIntPtr(size));
IntPtr retVal = UnsafeNativeMethods.WinGlobalAlloc(0x0040, new UIntPtr(size));
if (retVal == IntPtr.Zero)
{
@@ -24,17 +24,17 @@ namespace NTwain
public void Free(IntPtr handle)
{
NativeMethods.WinGlobalFree(handle);
UnsafeNativeMethods.WinGlobalFree(handle);
}
public IntPtr Lock(IntPtr handle)
{
return NativeMethods.WinGlobalLock(handle);
return UnsafeNativeMethods.WinGlobalLock(handle);
}
public void Unlock(IntPtr handle)
{
NativeMethods.WinGlobalUnlock(handle);
UnsafeNativeMethods.WinGlobalUnlock(handle);
}
}
}