Desktop Functions: Smart Device Functions:
|
Search Results for "closehandle" in [All]coredll1: CloseHandle
public static extern bool CloseHandle(HANDLE hObject);
Declare Function CloseHandle Lib "coredll.dll" (hObject As IntPtr) As Boolean
public static extern bool CloseHandle(HANDLE hObject);
CloseHandle(p); 2: CreateEvent
public static extern bool CloseHandle(HANDLE hObject);
CloseHandle(p);
Public Shared Function CloseHandle(ByVal handle As IntPtr) As Boolean
WaitHandles.CloseHandle(_handle)
WaitHandles.CloseHandle(Me._handle)
NativeMethods.CloseHandle(file); 4: EventModify
public static extern bool CloseHandle(HANDLE hObject);
CloseHandle(p);
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread); 6: OpenEvent Use the DuplicateHandle function to duplicate the handle. Use the CloseHandle function to close the handle. The system closes the handle automatically when the process terminates. The event object is destroyed when its last handle has been closed. 7: ResetEvent
public static extern bool CloseHandle(HANDLE hObject);
CloseHandle(p); 8: SetEvent
public static extern bool CloseHandle(HANDLE hObject);
CloseHandle(p); 9: WriteFile
CloseHandle hFile Enums10: HRESULT
public const int CO_E_FAILEDTOCLOSEHANDLE = unchecked((int)0x80010138);
Public Const CO_E_FAILEDTOCLOSEHANDLE As Integer = CInt(&H80010138UI) wlanapi11: WlanCloseHandle
[DllImport("Wlanapi", EntryPoint = "WlanCloseHandle")]
public static extern uint WlanCloseHandle([In] IntPtr hClientHandle,
<DllImport("Wlanapi", EntryPoint := "WlanCloseHandle")> _
Public Shared Function WlanCloseHandle(<[In]> ByVal hClientHandle As IntPtr, ByVal pReserved As IntPtr) As UInteger
WlanCloseHandle(handle, IntPtr.Zero);
WlanCloseHandle(handle, IntPtr.Zero) msi13: MsiCloseHandle 15: MsiOpenDatabase 16: MsiOpenPackageEx 17: MsiOpenProduct The sample application below demonstrates how to use MsiRecordSetString, MsiOpenDatabase, MsiCreateRecord, MsiCloseHandle, MsiDatabaseOpenView, MsiViewExecute, MsiDatabaseCommit, and MsiViewClose in C# to modify a property value in an MSI database. To run it, simply create a new Windows Console application and replace the code that Visual Studio gives you with the code below. You may have to modify the namespace name. The sample as-is requires a valid MSI database named SETUP.msi, with a property named PROPERTY1 in the Property table, to be located in C:\. You can of course change the path to your MSI database in the calls to ChangeMSIProperty() in Main() and use any existing property you wish.
static extern int MsiCloseHandle(IntPtr hAny);
MsiCloseHandle(msiRecord);
MsiCloseHandle(msiView);
MsiCloseHandle(msiHandle); rapi19: CeCloseHandle
public static extern bool CeCloseHandle(int hObject); function info on msdn at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceactsy/html/cerefCeCloseHandleRAPI.asp Constants
static extern bool CloseHandle(IntPtr hHandle);
CloseHandle(hToken); 21: WINERROR
public const int CO_E_FAILEDTOCLOSEHANDLE = (int)(0x80010138 - 0x100000000); irprops
CloseHandle(firstRadio);
CloseHandle(nextRadio);
static extern bool CloseHandle(IntPtr handle);
/// <param name="phRadio">Pointer to where the first enumerated radio handle will be returned. When no longer needed, this handle must be closed via CloseHandle.</param> wininet23: FtpFindFirstFile
InternetCloseHandle(hFind) ' close the handle. 24: FtpGetFile
[DllImport("wininet.dll", EntryPoint = "InternetCloseHandle")]
public static extern long InternetCloseHandle(IntPtr hInet);
InternetCloseHandle(ftpHandle);
InternetCloseHandle(internetHandle);
static extern bool InternetCloseHandle(IntPtr hInternet);
Public Declare Function InternetCloseHandle Lib "wininet.dll" ( _ 26: InternetConnect To close the handle returned from InternetConnect, the application should call InternetCloseHandle. This function disconnects the client from the server and frees all resources associated with the connection. advapi32
NativeMethods.CloseHandle(tokenHandle);
internal static extern Boolean CloseHandle(IntPtr hObject);
Private Function CloseHandle(ByVal hHandle As IntPtr) As Boolean
CloseHandle(hToken) Handles returned from CreateService must be closed using this function, rather than the standard CloseHandle
Public Function CloseHandle(ByVal handle As IntPtr) As Boolean
CloseHandle(processInfo.process)
CloseHandle(processInfo.thread)
public static extern bool CloseHandle(IntPtr handle);
CloseHandle(processInfo.process);
CloseHandle(processInfo.thread); 30: CreateService
CloseHandle(scHandle)
CloseHandle(lngTokenHandle) 32: OpenProcessToken The access token handle that is returned by TokenHandle should be closed using CloseHandle (kernel32) when you are finished using it. 33: OpenThreadToken
private static extern bool CloseHandle(IntPtr handle);
if (!CloseHandle(hToken)) Structures
public extern static int CloseHandle(IntPtr hObject);
CloseHandle(h);
CloseHandle(h);
CloseHandle(h);
CloseHandle(h);
CloseHandle(h);
CloseHandle(h); ntdll40: NtClose The same functionality as CloseHandle(). See also PROCESS_BASIC_INFORMATION, PROCESSINFOCLASS, OpenProcess, CloseHandle.
CloseHandle(hProc);
CloseHandle(hProc); setupapi42: Option Explicit Private Declare Sub CloseHandle Lib “kernel32″ _ kernel3243: CloseHandle
static extern bool CloseHandle(IntPtr hObject);
Public Shared Function CloseHandle(ByVal hObject As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean
Declare Auto Function CloseHandle Lib "kernel32.dll" (ByVal hObject As IntPtr) As Boolean
Declare Function CloseHandle Lib "kernel32" Alias "CloseHandle" (ByVal hObject As Integer) As Integer
static def CloseHandle(hObject as IntPtr) as bool: For .NET 2.0, consider using Microsoft.Win32.SafeHandles.SafeFileHandle instead. It can be used where IntPtr is used. If you use a SafeFileHandle, do not call CloseHandle as the CLR will close it for you (even if it's already closed).
static extern unsafe bool CloseHandle(
CloseHandle(hMapFile) 44: CreateEvent
CloseHandle(myEventHandle); NOTE: This class needs some changes. The CloseHandle call will destroy the event when the last handle is closed. This makes it hard for one application to "lock" the event while making another wait on it since this class is always closing the handle. An alternative that I found to work is to have the CreateEvent call in the constructor and implement IDisposable by moving the CloseHandle call to the Dispose method.
static extern bool CloseHandle(IntPtr hObject);
CloseHandle( _Handle );
CloseHandle( _Handle );
CloseHandle( _Handle );
CloseHandle( _Handle ); 45: CreateFile
Win32API.CloseHandle(_hMMF);
internal static extern bool CloseHandle(IntPtr hFile);
Win32API.CloseHandle(_hMMF);
internal static extern bool CloseHandle(IntPtr hFile); 47: CreateNamedPipe
private static extern bool CloseHandle(IntPtr handle);
CloseHandle(_handle);
private static extern bool CloseHandle([In] IntPtr hObject);
CloseHandle(handleToSnapshot); 49: DeviceIoControl
Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Integer) As Integer
CloseHandle(hdrive)
static extern bool CloseHandle(IntPtr hHandle);
CloseHandle(ptrProcess);
CloseHandle(handle);
CloseHandle(handle); 53: GetFileTime
private static extern bool CloseHandle(
if (ptr !=IntPtr.Zero && ptr.ToInt32() != INVALID_HANDLE_VALUE) CloseHandle(ptr); 54: GetLastError
static extern bool CloseHandle(IntPtr hObject); 55: GetThreadContext
static extern bool CloseHandle(IntPtr hObject);
CloseHandle(hThread); 56: Heap32ListFirst
ToolHelp.CloseHandle(heaplist_h); 57: IsProcessInJob public static extern bool CloseHandle(IntPtr Object);
CloseHandle (Job); 58: OpenFile
CloseHandle(hHandle); //fair to leak if can't close 59: OpenFileMapping
CloseHandle(hHandle); //fair to leak if can't close 60: OpenProcess See also CloseHandle, Cut off search results after 60. Please refine your search. |