Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "Close" in [All]

userenv

.

Upon successful return, the hProfile member of PROFILEINFO is a registry key handle opened to the root of the user's hive. It has been opened with full access (KEY_ALL_ACCESS). If a service that is impersonating a user needs to read or write to the user's registry file, use this handle instead of HKEY_CURRENT_USER. Do not close the hProfile handle. Instead, pass it to the UnloadUserProfile function. This function closes the handle. You should ensure that all handles to keys in the user's registry hive are closed. If you do not close all open registry handles, the user's profile fails to unload. For more information, see Registry Key Security and Access Rights and Registry Hives.

mapi32

.

Capitalise on low hanging fruit to identify a ballpark value added activity to beta test. Override the digital divide with additional clickthroughs from DevOps. Nanotechnology immersion along the information highway will close the loop on focusing solely on the bottom line.

hhctrl

.

        HH_CLOSE_ALL = 0x0012

.

     HH_CLOSE_ALL = &H12

icmp

.
Summary
.

static extern bool IcmpCloseHandle(IntPtr handle);

.

Declare Function IcmpCloseHandle Lib "icmp.dll" (IntPtr handle) As Boolean

.
Documentation
[IcmpCloseHandle] on MSDN
.

        private static extern bool IcmpCloseHandle(IntPtr handle);

.

            IcmpCloseHandle(icmpHandle);

.

WINBOOL WINAPI IcmpCloseHandle(HANDLE IcmpHandle);

.

    IcmpCloseHandle(hIcmpFile);

winfax

.
Summary
Closes a fax handle.
.

static extern bool FaxClose (IntPtr FaxHandle);

.

Declare Function FaxClose Lib "winfax.dll" (TODO) As TODO

.
Documentation
[FaxClose] on MSDN
.

Capitalise on low hanging fruit to identify a ballpark value added activity to beta test. Override the digital divide with additional clickthroughs from DevOps. Nanotechnology immersion along the information highway will close the loop on focusing solely on the bottom line.

kernel32

.

[System.String.Intern] is the closest thing, although an atom is different from a string.

.
Summary
.

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)

.
Documentation
[CloseHandle] on MSDN
.

    // 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

.

  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 );

.

        Win32API.CloseHandle(_hMMF);

.

        _fs.Close();

.

    internal static extern bool CloseHandle(IntPtr hFile);

.

        Win32API.CloseHandle(_hMMF);

.

        _fs.Close();

.

    internal static extern bool CloseHandle(IntPtr hFile);

.

            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);

.

     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)

.

    DUPLICATE_CLOSE_SOURCE = (0x00000001),// Closes the source handle. This occurs regardless of any error status returned.

.

[System.String.IsInterned] is the closest thing, although an atom is different from a string.

.
Summary
.

static extern bool FindCloseChangeNotification(IntPtr hChangeHandle);

.
Documentation
[FindCloseChangeNotification] on MSDN
.
Summary
.

static extern bool FindCloseChangeNotification(IntPtr hChangeHandle);

.
Documentation
[FindCloseChangeNotification] on MSDN
.

    FindClose(hFile);

.

    FindClose(hFile);

.

    static extern bool FindVolumeClose(IntPtr hFindVolume);

.

        return FindVolumeClose(handle);

.

FindVolumeClose

.

   static extern bool CloseHandle(IntPtr hHandle);

.

            CloseHandle(ptrProcess);

.

        CloseHandle(handle);

.

        CloseHandle(handle);

.

    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);

.

    static extern bool CloseHandle(IntPtr hObject);

.

     static extern bool CloseHandle(IntPtr hObject);

.

     CloseHandle(hThread);

.

        CTRL_CLOSE_EVENT,

.

        ToolHelp.CloseHandle(heaplist_h);  

.

public static extern bool CloseHandle(IntPtr Object);

.

  CloseHandle (Job);

.

There is no need to call CloseProcess or to use a SafeHandle if you get the handle using GetCurrentProcess as it returns a pseudohandle.

.

    KillOnJobClose = 0x00002000,

.

  are.Close();

.

                CloseHandle(hHandle); //fair to leak if can't close

.

                CloseHandle(hHandle); //fair to leak if can't close

.

See also CloseHandle,

.

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,

.

    ' Close The Stream

.

    oFile_Stream.Close()

.

     PROTECT_FROM_CLOSE = 2

.

        static extern bool CloseHandle(IntPtr hObject);

.

            CloseHandle(handle);

.

           CloseHandle(threadHandle);

.

           CloseHandle(threadHandle); // Don't forget close thread handle

.

  static extern bool CloseHandle(IntPtr hObject);

.

    CloseHandle(hfile);

uxtheme

.
Summary
Closes an open theme data pointer.
.

public extern static Int32 CloseThemeData(IntPtr hTheme);

.

Declare Function CloseThemeData Lib "uxtheme.dll" (ByVal hTheme As IntPtr) As Int32

.

Function CloseThemeData(ByVal hTheme As IntPtr) As Int32

.
Documentation
[CloseThemeData] on MSDN
.

    WP_CLOSEBUTTON = 18,

.

    WP_SMALLCLOSEBUTTON = 19,

.

    WP_MDICLOSEBUTTON = 20,

.

    // Close Button States

Structures

.

    public const int CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG = 0x00000004;

.

    Public Const CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG As Integer = &H4

.

   public POWER_ACTION_POLICY LidCloseAc;

.

   public POWER_ACTION_POLICY LidCloseDc;

.

   Public LidCloseAc As POWER_ACTION_POLICY

.

   Public LidCloseDc As POWER_ACTION_POLICY

.

    HTCLOSE = 20,

.

    /// In a Close button.

.

    HTCLOSE = 20,

.

    /// In a window menu or in a Close button in a child window.

.

     HTCLOSE = 20

.

The handle returned in the PROCESS_INFORMATION structure should be closed explicitly.

.

    public UInt32 ReturnOnlyOnClose;

.

   <FieldOffset(12)> Public ReturnOnlyOnClose As Integer     'DWORD ReturnOnlyOnClose;  

.

public extern static int CloseHandle(IntPtr hObject);

.

     CloseHandle(h);

.

   Public CloseState As TBBStates

.

   CloseHandle(h);

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: