Desktop Functions: Smart Device Functions:
|
Search Results for "Close" in [All]odbc321: SQLBindCol
SQLFreeStmt(stmtHandle, SQL_CLOSE); 3: SQLFreeStmt 4: SQLTables
const int SQL_CLOSE = 0; wintrust
Close = 0x00000002, wininet
InternetCloseHandle(hFind) ' close the handle. 7: FtpGetFile
[DllImport("wininet.dll", EntryPoint = "InternetCloseHandle")]
public static extern long InternetCloseHandle(IntPtr hInet);
InternetCloseHandle(ftpHandle);
InternetCloseHandle(internetHandle);
public void CloseFTP()
CloseFTP();
static extern bool InternetCloseHandle(IntPtr hInternet);
Public Declare Function InternetCloseHandle Lib "wininet.dll" ( _ To close the handle returned from InternetConnect, the application should call InternetCloseHandle. This function disconnects the client from the server and frees all resources associated with the connection. irprops
static extern bool BluetoothFindDeviceClose(IntPtr hFind);
Private Shared Function BluetoothFindDeviceClose( _
CloseHandle(firstRadio);
CloseHandle(nextRadio);
/// Closes an open object handle.
static extern bool CloseHandle(IntPtr handle);
/// <param name="phRadio">Pointer to where the first enumerated radio handle will be returned. When no longer needed, this handle must be closed via CloseHandle.</param>
/// When this handle is no longer needed, it must be closed via the BluetoothFindRadioClose.
private static extern bool BluetoothFindRadioClose(ref IntPtr hFind);
Private Shared Function BluetoothFindRadioClose(ByVal hFind As IntPtr) As Integer user3213: CloseClipboard 14: CloseDesktop
static extern bool CloseDesktop(IntPtr hDesktop);
Shared Function CloseDesktop(ByVal hDesktop As IntPtr) As Boolean 15: CloseHandle
static extern bool CloseHandle(IntPtr hHandle);
Private Shared Function CloseHandle(ByVal hHandle As IntPtr) As Boolean 16: CloseWindow
static extern int CloseWindow (IntPtr hWnd);
Declare Function CloseWindow Lib "user32.dll" (TODO) As TODO 17: CloseWindow 19: CreateDesktop
// ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.WIN32COM.v10.en/dllproc/base/closedesktop.htm
[DllImport("user32.dll", EntryPoint="CloseDesktop", CharSet = CharSet.Unicode, SetLastError = true)]
public static extern bool CloseDesktop(IntPtr handle);
' ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.WIN32COM.v10.en/dllproc/base/closedesktop.htm
<DllImport("user32.dll", EntryPoint:="CloseDesktop", CharSet:=CharSet.Unicode, SetLastError:=True)> _
Public Shared Function CloseDesktop(ByVal handle As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean
protected override bool CloseNativeHandle(IntPtr handle)
return WindowStationAndDesktop.CloseDesktop(handle); 20: CreatePopupMenu
rk.Close();
rk.Close();
rk.Close(); 21: CreateWindow
/// Close the native handle. The real call is dependent on whether it is
/// <param name="handle">Handle to be closed.</param>
protected abstract bool CloseNativeHandle(IntPtr handle);
bool closed = CloseNativeHandle(this.handle);
if (closed)
return closed;
protected override bool CloseNativeHandle(IntPtr handle)
return WindowStationAndDesktop.CloseWindowStation(handle); 22: DeleteMenu
internal const UInt32 SC_CLOSE =0xF060;
SC_CLOSE = &HF060 23: DestroyWindow hWnd is the pointer to the window you want to close/destroy. Create a new IntPtr object with the window's handle as a parameter to it's constructor. Make sure the pointers are in decimal, not in hex as spy++ gives them to you.
//Closes the form
btnCloseWindow_Click(object sender, EventArgs e) [System.Windows.Forms.Form.Close]
/// Close button
DFCS_CAPTIONCLOSE = 0, The buttons are drawn by vectors so to draw a "menu" close icon simply draw a DFCS_CAPTIONCLOSE button with the size of SM_CXMENUCHECK/SM_CYMENUCHECK. 25: DrawMenuBar
public static void RemoveCloseButton(Form frm) 26: EmptyClipboard
CloseClipboard(); 27: EnableMenuItem
Private Const SC_CLOSE As Integer = &HF060
EnableMenuItem(GetSystemMenu(Me.Handle, False), SC_CLOSE, MF_GRAYED) 28: EndTask
static extern bool CloseClipboard();
CloseClipboard();
private const UInt32 WM_CLOSE = 0x0010;
// Try closing application by sending WM_CLOSE to all child windows in all threads.
// Try to close main window.
if(proc.CloseMainWindow())
proc.Close();
// Close the enumerated window.
PostMessage(hWnd, WM_CLOSE, IntPtr.Zero, IntPtr.Zero);
Private Const WM_CLOSE As UInt32 = &H10
' Try closing application by sending WM_CLOSE to all child windows in all threads.
' Try to close main window.
If proc.CloseMainWindow() Then
proc.Close()
' Close the enumerated window.
PostMessage(hWnd, WM_CLOSE, IntPtr.Zero, IntPtr.Zero) 31: FindWindowEx Here is an alternative Managed API to FindWindow, The article also describes a way to CloseWindow of another process like notepad, not sure if there is such thing in Win32 API, but at least you can do it in .NET! Here is the article: 32: GetClipboardData
CloseClipboard();
static extern bool CloseClipboard();
CloseClipboard(); 34: GetMenuItemCount
public static void RemoveCloseButton(Form frm)
return SafeNativeMethods.CloseWindowStation(handle); Quote from MSDN: "The CloseWindowStation function closes an open window station handle. Do not specify the handle returned by the GetProcessWindowStation function." 36: GetSystemMenu
public static void RemoveCloseButton(Form frm)
private const Int32 SC_CLOSE = 0xF060;
public static void RemoveConsoleCloseButton()
DeleteMenu(hMenu, SC_CLOSE, MF_GRAYED); 37: LoadCursor
Private Sub Form_Closed(ByVal sender As System.Object, ByVal e As FormClosedEventArgs) Handles MyBase.FormClosed
Private Sub Form_Closed(ByVal sender As System.Object, ByVal e As FormClosedEventArgs) Handles MyBase.FormClosed 39: ModifyMenu
uint close= GetMenuItemID(hmenusys , 6);
ModifyMenu(hmenusys, close, 0X0, (IntPtr) min, "Close");
ModifyMenu(hmenusys, max, 0X0, (IntPtr)close, "Maximize"); 40: NaF Function You can close this page. this is not function. 41: OpenClipboard
CloseClipboard();
return SafeNativeMethods.CloseWindowStation(handle); See [Enums.ACCESS_MASK] and [CloseWindowStation]. 43: RemoveMenu
public static void RemoveCloseButton(Form frm)
//Removes the actual Close button
//Removes the seperator between the Close button and the Maximize button 44: SB_GETTEXT
private static extern int CloseHandle(
// Close the process handle
StatusBar.CloseHandle(hProcess);
'In this example, we've opened a Notepad instance, entered some text, and clicked the 'X' to close Notepad. Here is an alternative Managed API to FindWindow, The article also describes a way to CloseWindow of another process like notepad, not sure if there is such thing in Win32 API, but at least you can do it in .NET! Here is the article: 47: UnregisterHotKey
Me.Close() ntdll48: 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); 50: ZwClose
public static extern IntPtr ZwClose(IntPtr handle);
Declare Sub ZwClose Lib "ntdll.dll" (Handle As Intptr) 51: ZwOpenSection Dont forget to close the sectionHandle with ZwClose! powrprof52: DevicePowerClose
static extern bool DevicePowerClose();
Declare Function DevicePowerClose Lib "powrprof.dll" (TODO) As TODO
DevicePowerClose(); advapi32
NativeMethods.CloseHandle(tokenHandle);
internal static extern Boolean CloseHandle(IntPtr hObject);
Private Function CloseHandle(ByVal hHandle As IntPtr) As Boolean
CloseHandle(hToken) 55: BackupEventLog
static extern bool CloseEventLog(IntPtr hEventLog);
CloseEventLog(logHandle);
// Make sure to close open handles
CloseServiceHandle(svcHandle);
CloseServiceHandle(scHandle);
// Make sure to close open handles
CloseServiceHandle(svcHandle);
CloseServiceHandle(scHandle); 58: ClearEventLog
// Ensure any open handle is closed.
NativeMethods.CloseEventLog(hEventLog); 59: CloseEventLog
static extern bool CloseEventLog(IntPtr hEventLog);
Declare Function CloseEventLog Lib "advapi32.dll" (TODO) As TODO
public static extern bool CloseServiceHandle( IntPtr hSCObject );
Private Shared Function CloseServiceHandle(ByVal serviceHandle As IntPtr) As Boolean
Declare Function CloseServiceHandle Lib "advapi32.dll" (ByVal hSCObject As IntPtr) As Boolean Handles returned from CreateService must be closed using this function, rather than the standard CloseHandle Cut off search results after 60. Please refine your search. |