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]

msvcrt

.
Summary
Closes a stream.
.

public static extern Int32 fclose(IntPtr stream);

.

Public Shared Function fclose(ByVal stream As IntPtr) As Int32

.

Do not attempt to close streams not opened by fopen (includes _wfopen) or [fopen_s] (includes wfopen_s).

.
Documentation
[fclose] on MSDN
.
Summary
freopen tries to close any file already associated with the stream given as third parameter and disassociates it. Then, whether that stream was successfuly closed or not, freopen opens the file whose name is passed in the first parameter, filename, and associates it with the specified stream just as fopen would do using the mode value specified as the second parameter.

shlwapi

.
Summary
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.

.

''' Searches a path for spaces. If spaces are found, the entire path is enclosed in quotation marks.

gdiplus

.

static extern int GdipAddPathClosedCurveI(HandleRef path, HandleRef memorypts,

.

Declare Function GdipAddPathClosedCurveI Lib "gdiplus.dll" (TODO) As TODO

.
Documentation
[GdipAddPathClosedCurveI] on MSDN
.

static extern int GdipAddPathClosedCurve2I(HandleRef path, HandleRef memorypts,

.

Declare Function GdipAddPathClosedCurve2I Lib "gdiplus.dll" (TODO) As TODO

.
Documentation
[GdipAddPathClosedCurve2I] on MSDN
.

static extern int GdipClosePathFigures(HandleRef path);

.

Declare Function GdipClosePathFigures Lib "gdiplus.dll" (TODO) As TODO

.
Documentation
[GdipClosePathFigures] on MSDN

ntdll

.
Summary
Closes a previously opened handle.
.

static extern int NtClose(IntPtr hObject);

.

  Public Shared Function NtClose(ByVal hObject As IntPtr) As Integer

.

The same functionality as CloseHandle().

.
Documentation
[NtClose] on MSDN
.

See also PROCESS_BASIC_INFORMATION, PROCESSINFOCLASS, OpenProcess, CloseHandle.

.

        //Close handle and free allocated memory

.

        CloseHandle(hProc);

.

            //Close handle and free allocated memory

.

            CloseHandle(hProc);

.

public static extern IntPtr ZwClose(IntPtr handle);

.

Declare Sub ZwClose Lib "ntdll.dll" (Handle As Intptr)

.
Documentation
[ZwClose] on MSDN
.

Dont forget to close the sectionHandle with ZwClose!

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.

rapi

. .
Summary
This function closes an open object handle.
.

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

.
Documentation
[CeCloseHandle] on MSDN
.

static extern bool CeFindClose(int hFindFile);

.

Declare Function CeFindClose Lib "rapi.dll" (hFindFile As Integer) As Boolean

.
Documentation
[CeFindClose] on MSDN
.

    CeFindClose(hResult);

. .

public static extern int CeRegCloseKey(uint hkey);

.

function info on msdn at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceactsy/html/cerefCeRegCloseKeyRAPI.asp

.

    // if CeRegQueryValueEx fails then close already opened reg

.

    CeRegCloseKey(key);

.

CeRegCloseKey(key);

.
Documentation
[CeRegCloseKey] on MSDN
.

    CeRegCloseKey(key2);

.

CeRegCloseKey(key);

.

CeRegCloseKey(key);

.

CeRegCloseKey(key);

.

CeRegCloseKey(key);

.

    CeRegCloseKey(key)

dtl

.

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

.

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

.
Documentation
[DTL_DRIVER_CLOSE] on MSDN
.

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

.

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

.

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

.

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

.

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

.

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

.

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

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.

shell32

.

    /// Removes a thumbnail from an application's preview group when that tab or document is closed in the application.

.

    'Eventhandler Form Close

.

        SEE_MASK_NOCLOSEPROCESS = 0x00000040,

avifil32

winspool

.
Summary
Closes a printer connection given a handle
.

static extern int ClosePrinter(IntPtr hPrinter);        

.

<DllImport("winspool.drv", EntryPoint:="ClosePrinter", _

.

Private Shared Function ClosePrinter(ByVal hPrinter As Int32) As Boolean

.
Documentation
[ClosePrinter] on MSDN
.

ClosePrinter

.

ClosePrinter(pHandle);

36: SetJob
.

ClosePrinter(pHandle);

.

        ClosePrinter(hPrinter);

.

     ClosePrinter(hXcv);

msi

.
Summary
Closes an open installation handle.
.

static extern uint MsiCloseHandle(IntPtr hAny);

.
Documentation
[MsiCloseHandle] on MSDN
.
Summary
The MsiCloseHandle function closes an open installation handle.
.
Summary
The MsiOpenDatabase function opens a database file for data access. This function returns a handle that should be closed using MsiCloseHandle.
.
Summary
The MsiOpenPackageEx function opens a package to use with functions that access the product database. The MsiCloseHandle function must be called with the handle when the handle is no longer needed.
.
Summary
The MsiOpenProduct function opens a product for use with the functions that access the product database. The MsiCloseHandle function must be called with the handle when the handle is no longer needed.
.

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

.

static extern int MsiViewClose(IntPtr viewhandle);

.

Declare Function MsiViewClose Lib "msi.dll" (TODO) As TODO

.
Documentation
[MsiViewClose] on MSDN

urlmon

.

        fs.Close();

.

    fs.Close()

.

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.

mpr

.

WNetCloseEnum

.

public static extern uint WNetCloseEnum(IntPtr hEnum);

.

Private Shared Function WNetCloseEnum(hEnum As IntPtr) As UInteger

.
Documentation
[WNetCloseEnum] on MSDN
.

  public static extern int WNetCloseEnum( IntPtr hEnum );

.

       iRet =WNetCloseEnum( ptrHandle );

.

    Public Function WNetCloseEnum(ByVal hEnum As IntPtr) As Integer

.

        iRet = WNetCloseEnum(ptrHandle)

.

        iRet = WNetCloseEnum(ptrHandle)

.

        iRet = WNetCloseEnum(ptrHandle)

coredll

.

static extern TODO CeFindCloseRegChange(TODO);

.

Private Shared Function CeFindCloseRegChange(ByVal hChangeHandle As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean

.
Documentation
[CeFindCloseRegChange] on MSDN
.

static extern TODO CloseClipboard(TODO);

.

Declare Function CloseClipboard Lib "coredll.dll" (TODO) As TODO

.

<DllImport("coredll.dll")> Shared Function CloseClipboard() As Boolean

.
Documentation
[CloseClipboard] on MSDN
.
Summary
This function closes an open object handle
.

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

.
Documentation
[CloseHandle] on MSDN
.

        public static extern bool CloseHandle(HANDLE hObject);

.

            CloseHandle(p);

.

    Public Shared Function CloseHandle(ByVal handle As IntPtr) As Boolean

.

        Throw New ObjectDisposedException("WaitHandle", "WaitEvent has already been closed or never initialized")

.

    Public Function Close() As Boolean

.

        Throw New ObjectDisposedException("WaitHandle", "WaitEvent has already been closed or never initialized")

.

        WaitHandles.CloseHandle(_handle)

.

            WaitHandles.CloseHandle(Me._handle)

.

        NativeMethods.CloseHandle(file);

.
Relation
OpenClipboard(), CloseClipboard(), SetClipboardData(), EmptyClipboard()
.

        public static extern bool CloseHandle(HANDLE hObject);

.

                CloseHandle(p);

.

    CloseHandle(pi.hProcess);

.

    CloseHandle(pi.hThread);

.

            // close IME(direct input for Alphabet and Number)

.
Summary
.

static extern uint lineClose(IntPtr line);

.
Documentation
[lineClose] on MSDN
.
Summary
Shuts down the applications use of the line TAPI. Automatically closes all open lines and cancels all active requests.
.

Even though this method attempts to close all open lines prior to shutting down, it is recommended that you call lineClose yourself on any open lines prior to calling this.

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


 
Access PInvoke.net directly from VS: