Desktop Functions: Smart Device Functions:
|
Search Results for "Close" in [All]kernel321: AddAtom [System.String.Intern] is the closest thing, although an atom is different from a string. 2: 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)
// so we want to use LayoutKind.Explicit to mimic it as closely
CTRL_CLOSE_EVENT, - Save the current buffer information so you can restore it when close it your buffer 5: CreateEvent
are.Close();
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 ); 6: CreateFile
Win32API.CloseHandle(_hMMF);
_fs.Close();
internal static extern bool CloseHandle(IntPtr hFile);
Win32API.CloseHandle(_hMMF);
_fs.Close();
internal static extern bool CloseHandle(IntPtr hFile); 8: CreateMutex
mutex.Close();
/// then call Close();
private static extern bool CloseHandle(IntPtr handle);
throw new ObjectDisposedException("NamedPipeStream", "The stream has already been closed");
throw new ObjectDisposedException("NamedPipeStream", "The stream has already been closed");
public override void Close()
CloseHandle(_handle);
throw new ObjectDisposedException("NamedPipeStream", "The stream has already been closed");
sw.Close();
private static extern bool CloseHandle([In] IntPtr hObject);
CloseHandle(handleToSnapshot); 11: DeviceIoControl
FsctlOpBatchAckClosePending = (EFileDevice.FileSystem << 16) | (4 << 2) | EMethod.Buffered | (0 << 14),
FsctlWriteUsnCloseRecord = (EFileDevice.FileSystem << 16) | (59 << 2) | EMethod.Neither | (0 << 14),
Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Integer) As Integer
CloseHandle(hdrive) 12: DuplicateHandle
DUPLICATE_CLOSE_SOURCE = (0x00000001),// Closes the source handle. This occurs regardless of any error status returned. 13: FindAtom [System.String.IsInterned] is the closest thing, although an atom is different from a string. 14: FindClose 16: FindFirstFile
FindClose(hFile); 17: FindFirstFileEx
FindClose(hFile); 18: FindFirstVolume
static extern bool FindVolumeClose(IntPtr hFindVolume);
return FindVolumeClose(handle);
static extern bool CloseHandle(IntPtr hHandle);
CloseHandle(ptrProcess);
CloseHandle(handle);
CloseHandle(handle); 22: GetFileTime
private static extern bool CloseHandle(
if (ptr !=IntPtr.Zero && ptr.ToInt32() != INVALID_HANDLE_VALUE) CloseHandle(ptr);
const uint HANDLE_FLAG_PROTECT_FROM_CLOSE = 0x00000002;
Console.WriteLine(flags & HANDLE_FLAG_PROTECT_FROM_CLOSE); 24: GetLastError
static extern bool CloseHandle(IntPtr hObject); 25: GetThreadContext
static extern bool CloseHandle(IntPtr hObject);
CloseHandle(hThread); 26: HandlerRoutine
CTRL_CLOSE_EVENT, 27: Heap32ListFirst
ToolHelp.CloseHandle(heaplist_h); 28: IsProcessInJob public static extern bool CloseHandle(IntPtr Object);
CloseHandle (Job); 29: IsWow64Process There is no need to call CloseProcess or to use a SafeHandle if you get the handle using GetCurrentProcess as it returns a pseudohandle. 30: JOBOBJECTLIMIT
KillOnJobClose = 0x00002000, 31: OpenEvent
are.Close(); 32: OpenFile
CloseHandle(hHandle); //fair to leak if can't close 33: OpenFileMapping
CloseHandle(hHandle); //fair to leak if can't close 34: OpenProcess See also CloseHandle, 35: OpenThread If you use the IntPtr version, use a try/finally block to ensure you call CloseHandle
) // using block ensures finalizer closes handle 36: set
static extern bool CloseHandle(IntPtr hObject);
CloseHandle(handle);
CTRL_CLOSE_EVENT,
CTRL_CLOSE_EVENT
DeleteOnClose = 0x04000000, 39: SetFileTime
' Close The Stream
oFile_Stream.Close()
PROTECT_FROM_CLOSE = 2 41: SetWaitableTimer
static extern bool CloseHandle(IntPtr hObject);
CloseHandle(handle); 42: SuspendThread
CloseHandle(threadHandle);
CloseHandle(threadHandle); // Don't forget close thread handle 43: WriteFileEx
static extern bool CloseHandle(IntPtr hObject);
CloseHandle(hfile); winfax44: FaxClose
static extern bool FaxClose (IntPtr FaxHandle);
Declare Function FaxClose Lib "winfax.dll" (TODO) As TODO dtl45: DTL_C_DEFINE
/// Close Dtl driver
/// <param name="driverId">specifies driver to close</param>
public static int DtlDriverClose(int driverId, int timeOut)
return (UnsafeNativeMethods.DTL_DRIVER_CLOSE(driverId, timeOut));
static extern public int DTL_DRIVER_CLOSE(int driver_id, int timeout); 46: DTL_DRIVER_CLOSE
static extern public int DTL_DRIVER_CLOSE(int driver_id, int timeout);
Declare Function DTL_DRIVER_CLOSE Lib "dtl.dll" (TODO) As TODO
/// Close Dtl driver
/// <param name="driverId">specifies driver to close</param>
public static int DtlDriverClose(int driverId, int timeOut)
return (UnsafeNativeMethods.DTL_DRIVER_CLOSE(driverId, timeOut));
static extern public int DTL_DRIVER_CLOSE(int driver_id, int timeout);
public void CloseDriver()
Dtl.DtlDriverClose(_driverId, TimeoutInMs); 47: DTL_DRIVER_OPEN
/// Close Dtl driver
/// <param name="driverId">specifies driver to close</param>
public static int DtlDriverClose(int driverId, int timeOut)
return (UnsafeNativeMethods.DTL_DRIVER_CLOSE(driverId, timeOut));
static extern public int DTL_DRIVER_CLOSE(int driver_id, int timeout); 48: DTL_ERROR_S
/// Close Dtl driver
/// <param name="driverId">specifies driver to close</param>
public static int DtlDriverClose(int driverId, int timeOut)
return (UnsafeNativeMethods.DTL_DRIVER_CLOSE(driverId, timeOut));
static extern public int DTL_DRIVER_CLOSE(int driver_id, int timeout); 49: DTL_INIT
/// Close Dtl driver
/// <param name="driverId">specifies driver to close</param>
public static int DtlDriverClose(int driverId, int timeOut)
return (UnsafeNativeMethods.DTL_DRIVER_CLOSE(driverId, timeOut));
static extern public int DTL_DRIVER_CLOSE(int driver_id, int timeout); 50: DTL_READ_W
/// Close Dtl driver
/// <param name="driverId">specifies driver to close</param>
public static int DtlDriverClose(int driverId, int timeOut)
return (UnsafeNativeMethods.DTL_DRIVER_CLOSE(driverId, timeOut));
static extern public int DTL_DRIVER_CLOSE(int driver_id, int timeout); 51: DTL_UNDEF
/// Close Dtl driver
/// <param name="driverId">specifies driver to close</param>
public static int DtlDriverClose(int driverId, int timeOut)
return (UnsafeNativeMethods.DTL_DRIVER_CLOSE(driverId, timeOut));
static extern public int DTL_DRIVER_CLOSE(int driver_id, int timeout); 52: DTL_UNINIT
/// Close Dtl driver
/// <param name="driverId">specifies driver to close</param>
public static int DtlDriverClose(int driverId, int timeOut)
return (UnsafeNativeMethods.DTL_DRIVER_CLOSE(driverId, timeOut));
static extern public int DTL_DRIVER_CLOSE(int driver_id, int timeout); 53: DTL_WRITE_W
/// Close Dtl driver
/// <param name="driverId">specifies driver to close</param>
public static int DtlDriverClose(int driverId, int timeOut)
return (UnsafeNativeMethods.DTL_DRIVER_CLOSE(driverId, timeOut));
static extern public int DTL_DRIVER_CLOSE(int driver_id, int timeout); ws2_3254: closesocket
public static extern int closesocket(IntPtr s);
Declare Function closesocket Lib "ws2_32.dll" (TODO) As TODO
static public void CloseSock(Socket sck)
// to close the receiving and sending functions of the socket
closesocket(sck.Handle);
/// linger on close if data present 57: WSASocket
// linger on close if data present rapi58: 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 59: CeFindClose
static extern bool CeFindClose(int hFindFile);
Declare Function CeFindClose Lib "rapi.dll" (hFindFile As Integer) As Boolean 60: CeFindNextFile
CeFindClose(hResult); Cut off search results after 60. Please refine your search. |