Desktop Functions: Smart Device Functions:
|
Search Results for "Close" in [All]msvcrt1: fclose
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). 2: freopen
shlwapi
/// 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
static extern int GdipAddPathClosedCurve2I(HandleRef path, HandleRef memorypts,
Declare Function GdipAddPathClosedCurve2I Lib "gdiplus.dll" (TODO) As TODO
static extern int GdipClosePathFigures(HandleRef path);
Declare Function GdipClosePathFigures Lib "gdiplus.dll" (TODO) As TODO ntdll7: NtClose
static extern int NtClose(IntPtr hObject);
Public Shared Function NtClose(ByVal hObject As IntPtr) As Integer The same functionality as CloseHandle(). See also PROCESS_BASIC_INFORMATION, PROCESSINFOCLASS, OpenProcess, CloseHandle.
//Close handle and free allocated memory
CloseHandle(hProc);
//Close handle and free allocated memory
CloseHandle(hProc); 9: ZwClose
public static extern IntPtr ZwClose(IntPtr handle);
Declare Sub ZwClose Lib "ntdll.dll" (Handle As Intptr) 10: ZwOpenSection Dont forget to close the sectionHandle with ZwClose! userenv11: LoadUserProfile 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. rapi12: 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 13: CeFindClose
static extern bool CeFindClose(int hFindFile);
Declare Function CeFindClose Lib "rapi.dll" (hFindFile As Integer) As Boolean 14: CeFindNextFile
CeFindClose(hResult); 15: CeRegCloseKey
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); 16: CeRegCreateKeyEx
CeRegCloseKey(key2);
CeRegCloseKey(key); 17: CeRegDeleteKey
CeRegCloseKey(key);
CeRegCloseKey(key); 19: CeRegSetValueEx
CeRegCloseKey(key);
CeRegCloseKey(key) dtl20: 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); 21: 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); 22: 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); 23: 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); 24: 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); 25: 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); 26: 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); 27: 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); 28: 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); mapi3229: lorem38 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. shell3230: ITaskbarList3
/// Removes a thumbnail from an application's preview group when that tab or document is closed in the application. 31: SHAppBarMessage
'Eventhandler Form Close 32: ShellExecuteEx
SEE_MASK_NOCLOSEPROCESS = 0x00000040, avifil32winspool34: ClosePrinter
static extern int ClosePrinter(IntPtr hPrinter);
<DllImport("winspool.drv", EntryPoint:="ClosePrinter", _
Private Shared Function ClosePrinter(ByVal hPrinter As Int32) As Boolean 35: OpenPrinter
ClosePrinter(pHandle); 36: SetJob
ClosePrinter(pHandle); 37: WritePrinter
ClosePrinter(hPrinter); 38: XcvData
ClosePrinter(hXcv); msi39: MsiCloseHandle
41: MsiOpenDatabase
42: MsiOpenPackageEx
43: 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); 45: MsiViewClose
static extern int MsiViewClose(IntPtr viewhandle);
Declare Function MsiViewClose Lib "msi.dll" (TODO) As TODO urlmon46: FindMimeFromData
fs.Close();
fs.Close() 47: lorem38 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. mpr48: WNetCloseEnum
public static extern uint WNetCloseEnum(IntPtr hEnum);
Private Shared Function WNetCloseEnum(hEnum As IntPtr) As UInteger 49: WNetEnumResource
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 51: CloseClipboard
static extern TODO CloseClipboard(TODO);
Declare Function CloseClipboard Lib "coredll.dll" (TODO) As TODO <DllImport("coredll.dll")> Shared Function CloseClipboard() As Boolean 52: 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); 53: CreateEvent
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) 54: DeviceIOControl
NativeMethods.CloseHandle(file); 55: EmptyClipboard
56: EventModify
public static extern bool CloseHandle(HANDLE hObject);
CloseHandle(p);
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread); 58: ImmSetOpenStatus
// close IME(direct input for Alphabet and Number) 59: lineClose
60: lineShutDown 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. |