Desktop Functions: Smart Device Functions:
|
closehandle (kernel32)
C# Signature:
[DllImport("kernel32.dll", SetLastError=true)] VB .NET Signature:
Declare Auto Function CloseHandle Lib "kernel32.dll" (ByVal hObject As IntPtr) As Boolean User-Defined Types:None. Notes:For .NET 2.0, consider using Microsoft.Win32.SafeHandles.SafeFileHandle instead. It can be used where IntPtr is used. Can someone explain why "[return: MarshalAs(UnmanagedType.Bool)]" is part of the signature? Tips & Tricks:Please add some! Sample Code:
hMapFile = CreateFileMapping(INVALID_HANDLE_VALUE, 0, PAGE_READWRITE, 0, 4096, "mIRC") Alternative Managed API:Do you know one? Please contribute it! Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|