Desktop Functions: Smart Device Functions:
|
Search Results for "Close" in [All]icmp
static extern bool IcmpCloseHandle(IntPtr handle);
Declare Function IcmpCloseHandle Lib "icmp.dll" (IntPtr handle) As Boolean 2: IcmpSendEcho
private static extern bool IcmpCloseHandle(IntPtr handle);
IcmpCloseHandle(icmpHandle);
WINBOOL WINAPI IcmpCloseHandle(HANDLE IcmpHandle);
IcmpCloseHandle(hIcmpFile); gdi323: AbortPath
static extern IntPtr CloseEnhMetaFile(IntPtr hdc);
Declare Function CloseEnhMetaFile Lib "gdi32.dll" _ 5: CloseFigure 7: GetFontData
br.Close(); kernel328: AddAtom [System.String.Intern] is the closest thing, although an atom is different from a string. 9: 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) 10: ConsoleFunctions
// 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 12: 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 ); 13: 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); 15: CreateMutex
mutex.Close(); 16: CreateNamedPipe
/// 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); 18: 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) 19: DuplicateHandle
DUPLICATE_CLOSE_SOURCE = (0x00000001),// Closes the source handle. This occurs regardless of any error status returned. 20: FindAtom [System.String.IsInterned] is the closest thing, although an atom is different from a string. 21: FindClose 23: FindFirstFile
FindClose(hFile); 24: FindFirstFileEx
FindClose(hFile); 25: FindFirstVolume
static extern bool FindVolumeClose(IntPtr hFindVolume);
return FindVolumeClose(handle);
static extern bool CloseHandle(IntPtr hHandle);
CloseHandle(ptrProcess);
CloseHandle(handle);
CloseHandle(handle); 29: 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); 31: GetLastError
static extern bool CloseHandle(IntPtr hObject); 32: GetThreadContext
static extern bool CloseHandle(IntPtr hObject);
CloseHandle(hThread); 33: HandlerRoutine
CTRL_CLOSE_EVENT, 34: Heap32ListFirst
ToolHelp.CloseHandle(heaplist_h); 35: IsProcessInJob public static extern bool CloseHandle(IntPtr Object);
CloseHandle (Job); 36: 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. 37: JOBOBJECTLIMIT
KillOnJobClose = 0x00002000, 38: OpenEvent
are.Close(); 39: OpenFile
CloseHandle(hHandle); //fair to leak if can't close 40: OpenFileMapping
CloseHandle(hHandle); //fair to leak if can't close 41: OpenProcess See also CloseHandle, 42: OpenThread If you use the IntPtr version, use a try/finally block to ensure you call CloseHandle
) // using block ensures finalizer closes handle 43: set
static extern bool CloseHandle(IntPtr hObject);
CloseHandle(handle);
CTRL_CLOSE_EVENT,
CTRL_CLOSE_EVENT
DeleteOnClose = 0x04000000, 46: SetFileTime
' Close The Stream
oFile_Stream.Close()
PROTECT_FROM_CLOSE = 2 48: SetWaitableTimer
static extern bool CloseHandle(IntPtr hObject);
CloseHandle(handle); 49: SuspendThread
CloseHandle(threadHandle);
CloseHandle(threadHandle); // Don't forget close thread handle 50: WriteFileEx
static extern bool CloseHandle(IntPtr hObject);
CloseHandle(hfile); winhttp
static extern bool WinHttpCloseHandle(IntPtr hInternet);
Declare Function WinHttpCloseHandle Lib "winhttp.dll" (ByVal hInternet As IntPtr) As Boolean ERROR_WINHTTP_LOGIN_FAILURE - The login attempt failed. When this error is encountered, close the request handle with WinHttpCloseHandle. A new request handle must be created before retrying the function that originally produced this error. ERROR_WINHTTP_OPERATION_CANCELLED - The operation was canceled, usually because the handle on which the request was operating was closed before the operation completed. msi53: MsiCloseHandle 55: MsiOpenDatabase 56: MsiOpenPackageEx 57: 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);
static extern int MsiViewClose(IntPtr viewhandle);
// Close the view.
returnValue = (WINDOWS_MESSAGE_CODES)MsiViewClose(msiView);
// Failed to close the view.
throw new MsiInstallationSupportException(string.Format(CultureInfo.InvariantCulture, "MsiViewClose returned error code {0}.", returnValue.ToString()));
// Close handles or you could get a corrupted database and un-closed handles.
MsiCloseHandle(msiRecord);
MsiCloseHandle(msiView);
MsiCloseHandle(msiHandle); 59: MsiViewClose
static extern int MsiViewClose(IntPtr viewhandle);
Declare Function MsiViewClose Lib "msi.dll" (TODO) As TODO shlwapi60: PathQuoteSpaces
/// Searches a path for spaces. If spaces are found, the entire path is enclosed in quotation marks.
''' Searches a path for spaces. If spaces are found, the entire path is enclosed in quotation marks. Cut off search results after 60. Please refine your search. |