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 "send" in [All]

irprops

.
Summary
The BluetoothAuthenticateDeviceEx function sends an authentication request to a remote Bluetooth device. Additionally, this function allows for out-of-band data to be passed into the function call for the device being authenticated.
.
Summary
The BluetoothAuthenticateDeviceEx function sends an authentication request to a remote Bluetooth device. Additionally, this function allows for out-of-band data to be passed into the function call for the device being authenticated.

Enums

.

    /// The callback function can set the status text by sending messages to the dialog box.

.

    ''' The callback function can set the status text by sending messages to the dialog box.

.

    /// <summary>Sends a double-click message to the window procedure when the user double-clicks the mouse while the cursor is within a window belonging to the class.</summary>

.

    /// Therefore, the system does not send WM_PAINT messages to windows that were obscured if the memory used by the bitmap has not been discarded and if other screen actions have not invalidated the stored image.

.

    ''' <summary>Sends a double-click message to the window procedure when the user double-clicks the mouse while the cursor is within a window belonging to the class.</summary>

.

    ''' Therefore, the system does not send WM_PAINT messages to windows that were obscured if the memory used by the bitmap has not been discarded and if other screen actions have not invalidated the stored image.

.

    CSIDL_SENDTO            = 0x0009,

.

    CSIDL_SENDTO = &H9

.

    ///<Summary>Sends a WM_NCCALCSIZE message to the window, even if the window's size is not being changed. If this flag is not specified, WM_NCCALCSIZE is sent only when the window's size is being changed.</Summary>

.

    SWP_NOSENDCHANGING = 0x0400,

.

    '''<Summary>Sends a WM_NCCALCSIZE message to the window, even if the window's size is not being changed. If this flag is not specified, WM_NCCALCSIZE is sent only when the window's size is being changed.</Summary>

.

    SWP_NOSENDCHANGING = &H0400

.

    SWP_NOSENDCHANGING As Integer = &H0400

7: DLGC
.

    /// <summary> Windows will send an EM_SETSEL message to the control to select its contents. </summary>

.

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

.

    ///The caller is dispatching an intertask SendMessage call and cannot call out via PostMessage.

.

    [Description("The caller is dispatching an intertask SendMessage call and cannot call out via PostMessage.")]

.

    public const int RPC_E_CANTPOST_INSENDCALL = unchecked((int)0x80010003);

.

    ///The client is trying to negotiate a context and the server requires user-to-user but didn't send a TGT reply.

.

    [Description("The client is trying to negotiate a context and the server requires user-to-user but didn't send a TGT reply.")]

.

    '''The caller is dispatching an intertask SendMessage call and cannot call out via PostMessage.

.

    <Description("The caller is dispatching an intertask SendMessage call and cannot call out via PostMessage.")> _

.

    Public Const RPC_E_CANTPOST_INSENDCALL As Integer = CInt(&H80010003UI)

.

    '''The client is trying to negotiate a context and the server requires user-to-user but didn't send a TGT reply.

.

    <Description("The client is trying to negotiate a context and the server requires user-to-user but didn't send a TGT reply.")> _

.
Summary
.

[Flags] enum InSendMessageExFlags : uint

.

    ISMEX_NOSEND   = 0,

.

    ISMEX_SEND     = 1,

.
Documentation
[InSendMessageExFlags] on MSDN
11: LB_
.

    ///   lParam-A pointer to the null-terminated string that is to be added. If the list box has an owner-drawn style but not the LBS_HASSTRINGS style, this parameter is stored as item data instead of a string. You can send the LB_GETITEMDATA and LB_SETITEMDATA messages to retrieve or modify the item data.

.

    '   lParam-A pointer to the null-terminated string that is to be added. If the list box has an owner-drawn style but not the LBS_HASSTRINGS style, this parameter is stored as item data instead of a string. You can send the LB_GETITEMDATA and LB_SETITEMDATA messages to retrieve or modify the item data.

.

You can scroll a ListView using LVM_SCROLL with SendMessage. Example:

.

SendMessage(listView.Handle, (uint)ListViewMessages.LVM_SCROLL, scrollX, scrollY);

.

  PM_QS_SENDMESSAGE = QueueStatusFlags.QS_SENDMESSAGE << 16

.

    PM_QS_SENDMESSAGE = QueueStatusFlags.QS_SENDMESSAGE << 16

.

    QS_SENDMESSAGE = &H40

.

    QS_ALLINPUT = (QS_SENDMESSAGE Or QS_PAINT Or QS_TIMER Or QS_POSTMESSAGE Or QS_MOUSEBUTTON Or QS_MOUSEMOVE Or QS_HOTKEY Or QS_KEY)

.

  QS_SENDMESSAGE = 0x0040,

.

  QS_ALLINPUT = QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY | QS_SENDMESSAGE

.

   QS_SENDMESSAGE = &H40

.

   QS_ALLINPUT = (QS_SENDMESSAGE Or QS_PAINT Or QS_TIMER Or QS_POSTMESSAGE Or QS_MOUSEBUTTON Or QS_MOUSEMOVE Or QS_HOTKEY Or QS_KEY)

.
Summary
.

enum SendMessageTimeoutFlags : uint

.

Public Enum SendMessageTimeoutFlags

.
Documentation
[SendMessageTimeout] on MSDN
.

    /// <summary>Applies new frame styles set using the SetWindowLong function. Sends a WM_NCCALCSIZE message to

.

    /// <remarks>SWP_NOSENDCHANGING</remarks>

.

    DoNotSendChangingEvent = 0x0400,

.

    ''' <summary>Applies new frame styles set using the SetWindowLong function. Sends a WM_NCCALCSIZE message to

.

    ''' <remarks>SWP_NOSENDCHANGING</remarks>

.

    DoNotSendChangingEvent = &H400

17: SPI
.

      SPIF_SENDCHANGE = 0x02,

.

      /// <summary>Same as SPIF_SENDCHANGE.</summary>

.

      SPIF_SENDWININICHANGE = 0x02

.

   SPIF_SENDCHANGE =       &H2  ' Broadcasts the WM_SETTINGCHANGE message after updating the user profile.

.

   SPIF_SENDWININICHANGE = &H2  ' Same as SPIF_SENDCHANGE.

18: SPIF
.

    SPIF_SENDCHANGE = 0x02,

.

    /// <summary>Same as SPIF_SENDCHANGE.</summary>

.

    SPIF_SENDWININICHANGE = 0x02

.

   SPIF_SENDCHANGE =       &H2  ' Broadcasts the WM_SETTINGCHANGE message after updating the user profile.

.

   SPIF_SENDWININICHANGE = &H2  ' Same as SPIF_SENDCHANGE.

19: SWP
.

      /// <summary>Sends a WM_NCCALCSIZE message to the window, even if the window's size is not being changed.

.

      NOSENDCHANGING = 0x0400,

20: VK
.

        ///Windows 2000/XP: Used to pass Unicode characters as if they were keystrokes. The VK_PACKET key is the low word of a 32-bit Virtual Key value used for non-keyboard input methods. For more information, see Remark in KEYBDINPUT, SendInput, WM_KEYDOWN, and WM_KEYUP

.

    /// The WM_NULL message performs no operation. An application sends the WM_NULL message if it wants to post a message that the recipient window will ignore.

.

    /// An application sends the WM_SETREDRAW message to a window to allow changes in that window to be redrawn or to prevent changes in that window from being redrawn.

.

    /// An application sends a WM_SETTEXT message to set the text of a window.

.

    /// An application sends a WM_GETTEXT message to copy the text that corresponds to a window into a buffer provided by the caller.

.

    /// An application sends a WM_GETTEXTLENGTH message to determine the length, in characters, of the text associated with a window.

.

    /// The WM_QUERYENDSESSION message is sent when the user chooses to end the session or when an application calls one of the system shutdown functions. If any application returns zero, the session is not ended. The system stops sending WM_QUERYENDSESSION messages as soon as one application returns zero.

.

    /// After processing this message, the system sends the WM_ENDSESSION message with the wParam parameter set to the results of the WM_QUERYENDSESSION message.

.

    /// An application sends the WM_WININICHANGE message to all top-level windows after making a change to the WIN.INI file. The SystemParametersInfo function sends this message after an application uses the function to change a setting in WIN.INI.

.

    /// An application sends the WM_WININICHANGE message to all top-level windows after making a change to the WIN.INI file. The SystemParametersInfo function sends this message after an application uses the function to change a setting in WIN.INI.

.

    /// An application sends the WM_FONTCHANGE message to all top-level windows in the system after changing the pool of font resources.

.

    /// The WM_CANCELMODE message is sent to cancel certain modes, such as mouse capture. For example, the system sends this message to the active window when a dialog box or message box is displayed. Certain functions also send this message explicitly to the specified window regardless of whether it is the active window. For example, the EnableWindow function sends this message when disabling the specified window.

.

    /// Sent to the owner of a list box or combo box when the list box or combo box is destroyed or when items are removed by the LB_DELETESTRING, LB_RESETCONTENT, CB_DELETESTRING, or CB_RESETCONTENT message. The system sends a WM_DELETEITEM message for each deleted item. The system sends the WM_DELETEITEM message for any deleted list box or combo box item with nonzero item data.

.

    /// An application sends a WM_SETFONT message to specify the font that a control is to use when drawing text.

.

    /// An application sends a WM_GETFONT message to a control to retrieve the font with which the control is currently drawing its text.

.

    /// An application sends a WM_SETHOTKEY message to a window to associate a hot key with the window. When the user presses the hot key, the system activates the window.

.

    /// An application sends a WM_GETHOTKEY message to determine the hot key associated with a window.

.

    /// The system sends the WM_COMPAREITEM message to determine the relative position of a new item in the sorted list of an owner-drawn combo box or list box. Whenever the application adds a new item, the system sends this message to the owner of a combo box or list box created with the CBS_SORT or LBS_SORT style.

.

    /// Active Accessibility sends the WM_GETOBJECT message to obtain information about an accessible object contained in a server application.

.

    /// Applications never send this message directly. It is sent only by Active Accessibility in response to calls to AccessibleObjectFromPoint, AccessibleObjectFromEvent, or AccessibleObjectFromWindow. However, server applications handle this message.

.

    /// An application sends the WM_COPYDATA message to pass data to another application.

.

    /// The WM_USERCHANGED message is sent to all windows after the user has logged on or off. When the user logs on or off, the system updates the user-specific settings. The system sends this message immediately after updating the settings.

.

    /// An application sends the WM_SETICON message to associate a new large or small icon with a window. The system displays the large icon in the ALT+TAB dialog box, and the small icon in the window caption.

.

    /// The WM_NCDESTROY message informs a window that its nonclient area is being destroyed. The DestroyWindow function sends the WM_NCDESTROY message to the window following the WM_DESTROY message. WM_DESTROY is used to free the allocated memory object associated with the window.

.

    /// The WM_UNICHAR message is equivalent to WM_CHAR, but it uses Unicode Transformation Format (UTF)-32, whereas WM_CHAR uses UTF-16. It is designed to send or post Unicode characters to ANSI windows and it can can handle Unicode Supplementary Plane characters.

.

    /// The WM_COMMAND message is sent when the user selects a command item from a menu, when a control sends a notification message to its parent window, or when an accelerator keystroke is translated.

.

    /// An application sends the WM_CHANGEUISTATE message to indicate that the user interface (UI) state should be changed.

.

    /// An application sends the WM_UPDATEUISTATE message to change the user interface (UI) state for the specified window and all its child windows.

.

    /// An application sends the WM_QUERYUISTATE message to retrieve the user interface (UI) state for a window.

.

    /// An edit control that is not read-only or disabled sends the WM_CTLCOLOREDIT message to its parent window when the control is about to be drawn. By responding to this message, the parent window can use the specified device context handle to set the text and background colors of the edit control.

.

    /// A static control, or an edit control that is read-only or disabled, sends the WM_CTLCOLORSTATIC message to its parent window when the control is about to be drawn. By responding to this message, the parent window can use the specified device context handle to set the text and background colors of the static control.

.

    /// The WM_PARENTNOTIFY message is sent to the parent of a child window when the child window is created or destroyed, or when the user clicks a mouse button while the cursor is over the child window. When the child window is being created, the system sends WM_PARENTNOTIFY just before the CreateWindow or CreateWindowEx function that creates the window returns. When the child window is being destroyed, the system sends the message before any processing to destroy the window takes place.

.

    /// An application sends the WM_MDICREATE message to a multiple-document interface (MDI) client window to create an MDI child window.

.

    /// An application sends the WM_MDIDESTROY message to a multiple-document interface (MDI) client window to close an MDI child window.

.

    /// An application sends the WM_MDIACTIVATE message to a multiple-document interface (MDI) client window to instruct the client window to activate a different MDI child window.

.

    /// An application sends the WM_MDIRESTORE message to a multiple-document interface (MDI) client window to restore an MDI child window from maximized or minimized size.

.

    /// An application sends the WM_MDINEXT message to a multiple-document interface (MDI) client window to activate the next or previous child window.

.

    /// An application sends the WM_MDIMAXIMIZE message to a multiple-document interface (MDI) client window to maximize an MDI child window. The system resizes the child window to make its client area fill the client window. The system places the child window's window menu icon in the rightmost position of the frame window's menu bar, and places the child window's restore icon in the leftmost position. The system also appends the title bar text of the child window to that of the frame window.

.

    /// An application sends the WM_MDITILE message to a multiple-document interface (MDI) client window to arrange all of its MDI child windows in a tile format.

.

    /// An application sends the WM_MDICASCADE message to a multiple-document interface (MDI) client window to arrange all its child windows in a cascade format.

.

    /// An application sends the WM_MDIICONARRANGE message to a multiple-document interface (MDI) client window to arrange all minimized MDI child windows. It does not affect child windows that are not minimized.

.

    /// An application sends the WM_MDIGETACTIVE message to a multiple-document interface (MDI) client window to retrieve the handle to the active MDI child window.

.

    /// An application sends the WM_MDISETMENU message to a multiple-document interface (MDI) client window to replace the entire menu of an MDI frame window, to replace the window menu of the frame window, or both.

.

    /// The system sends the WM_ENTERSIZEMOVE message regardless of whether the dragging of full windows is enabled.

.

    /// An application sends the WM_MDIREFRESHMENU message to a multiple-document interface (MDI) client window to refresh the window menu of the MDI frame window.

.

    /// Sent by an application to direct the IME window to carry out the requested command. The application uses this message to control the IME window that it has created. To send this message, the application calls the SendMessage function with the following parameters.

.

    /// An application sends a WM_CUT message to an edit control or combo box to delete (cut) the current selection, if any, in the edit control and copy the deleted text to the clipboard in CF_TEXT format.

.

    /// An application sends the WM_COPY message to an edit control or combo box to copy the current selection to the clipboard in CF_TEXT format.

.

    /// An application sends a WM_PASTE message to an edit control or combo box to copy the current content of the clipboard to the edit control at the current caret position. Data is inserted only if the clipboard contains data in CF_TEXT format.

.

    /// An application sends a WM_CLEAR message to an edit control or combo box to delete (clear) the current selection, if any, from the edit control.

.

    /// An application sends a WM_UNDO message to an edit control to undo the last operation. When this message is sent to an edit control, the previously deleted text is restored or the previously added text is deleted.

.

    /// The system will send a window the WM_DWMCOMPOSITIONCHANGED message to indicate that the availability of desktop composition has changed.

.

    /// An application sends the WM_CPL_LAUNCH message to Windows Control Panel to request that a Control Panel application be started.

.

    '''The WM_CANCELMODE message is sent to cancel certain modes such as mouse capture. For example the system sends this message to the active window when a dialog box or message box is displayed. Certain functions also send this message explicitly to the specified window regardless of whether it is the active window. For example the EnableWindow function sends this message when disabling the specified window.

.

    '''An application sends the WM_CHANGEUISTATE message to indicate that the user interface (UI) state should be changed.

.

    '''An application sends a WM_CLEAR message to an edit control or combo box to delete (clear) the current selection if any from the edit control.

.

    '''The WM_COMMAND message is sent when the user selects a command item from a menu when a control sends a notification message to its parent window or when an accelerator keystroke is translated.

.

    '''The system sends the WM_COMPAREITEM message to determine the relative position of a new item in the sorted list of an owner-drawn combo box or list box. Whenever the application adds a new item the system sends this message to the owner of a combo box or list box created with the CBS_SORT or LBS_SORT style.

.

    '''An application sends the WM_COPY message to an edit control or combo box to copy the current selection to the clipboard in CF_TEXT format.

.

    '''An application sends the WM_COPYDATA message to pass data to another application.

.

    '''An edit control that is not read-only or disabled sends the WM_CTLCOLOREDIT message to its parent window when the control is about to be drawn. By responding to this message the parent window can use the specified device context handle to set the text and background colors of the edit control.

.

    '''A static control or an edit control that is read-only or disabled sends the WM_CTLCOLORSTATIC message to its parent window when the control is about to be drawn. By responding to this message the parent window can use the specified device context handle to set the text and background colors of the static control.

.

    '''An application sends a WM_CUT message to an edit control or combo box to delete (cut) the current selection if any in the edit control and copy the deleted text to the clipboard in CF_TEXT format.

.

    '''Sent to the owner of a list box or combo box when the list box or combo box is destroyed or when items are removed by the LB_DELETESTRING LB_RESETCONTENT CB_DELETESTRING or CB_RESETCONTENT message. The system sends a WM_DELETEITEM message for each deleted item. The system sends the WM_DELETEITEM message for any deleted list box or combo box item with nonzero item data.

.

    '''An application sends the WM_FONTCHANGE message to all top-level windows in the system after changing the pool of font resources.

.

    '''An application sends a WM_GETFONT message to a control to retrieve the font with which the control is currently drawing its text.

.

    '''An application sends a WM_GETHOTKEY message to determine the hot key associated with a window.

.

    '''Active Accessibility sends the WM_GETOBJECT message to obtain information about an accessible object contained in a server application. Applications never send this message directly. It is sent only by Active Accessibility in response to calls to AccessibleObjectFromPoint AccessibleObjectFromEvent or AccessibleObjectFromWindow. However server applications handle this message.

.

    '''An application sends a WM_GETTEXT message to copy the text that corresponds to a window into a buffer provided by the caller.

.

    '''An application sends a WM_GETTEXTLENGTH message to determine the length in characters of the text associated with a window.

.

    '''Sent by an application to direct the IME window to carry out the requested command. The application uses this message to control the IME window that it has created. To send this message the application calls the SendMessage function with the following parameters.

.

    '''An application sends the WM_MDIACTIVATE message to a multiple-document interface (MDI) client window to instruct the client window to activate a different MDI child window.

.

    '''An application sends the WM_MDICASCADE message to a multiple-document interface (MDI) client window to arrange all its child windows in a cascade format.

.

    '''An application sends the WM_MDICREATE message to a multiple-document interface (MDI) client window to create an MDI child window.

.

    '''An application sends the WM_MDIDESTROY message to a multiple-document interface (MDI) client window to close an MDI child window.

.

    '''An application sends the WM_MDIGETACTIVE message to a multiple-document interface (MDI) client window to retrieve the handle to the active MDI child window.

.

    '''An application sends the WM_MDIICONARRANGE message to a multiple-document interface (MDI) client window to arrange all minimized MDI child windows. It does not affect child windows that are not minimized.

.

    '''An application sends the WM_MDIMAXIMIZE message to a multiple-document interface (MDI) client window to maximize an MDI child window. The system resizes the child window to make its client area fill the client window. The system places the child window's window menu icon in the rightmost position of the frame window's menu bar and places the child window's restore icon in the leftmost position. The system also appends the title bar text of the child window to that of the frame window.

.

    '''An application sends the WM_MDINEXT message to a multiple-document interface (MDI) client window to activate the next or previous child window.

.

    '''An application sends the WM_MDIREFRESHMENU message to a multiple-document interface (MDI) client window to refresh the window menu of the MDI frame window.

.

    '''An application sends the WM_MDIRESTORE message to a multiple-document interface (MDI) client window to restore an MDI child window from maximized or minimized size.

.

    '''An application sends the WM_MDISETMENU message to a multiple-document interface (MDI) client window to replace the entire menu of an MDI frame window to replace the window menu of the frame window or both.

.

    '''An application sends the WM_MDITILE message to a multiple-document interface (MDI) client window to arrange all of its MDI child windows in a tile format.

.

    '''The WM_NCDESTROY message informs a window that its nonclient area is being destroyed. The DestroyWindow function sends the WM_NCDESTROY message to the window following the WM_DESTROY message. WM_DESTROY is used to free the allocated memory object associated with the window.

.

    '''The WM_NULL message performs no operation. An application sends the WM_NULL message if it wants to post a message that the recipient window will ignore.

.

    '''The WM_PARENTNOTIFY message is sent to the parent of a child window when the child window is created or destroyed or when the user clicks a mouse button while the cursor is over the child window. When the child window is being created the system sends WM_PARENTNOTIFY just before the CreateWindow or CreateWindowEx function that creates the window returns. When the child window is being destroyed the system sends the message before any processing to destroy the window takes place.

.

    '''An application sends a WM_PASTE message to an edit control or combo box to copy the current content of the clipboard to the edit control at the current caret position. Data is inserted only if the clipboard contains data in CF_TEXT format.

.

    '''The WM_QUERYENDSESSION message is sent when the user chooses to end the session or when an application calls one of the system shutdown functions. If any application returns zero the session is not ended. The system stops sending WM_QUERYENDSESSION messages as soon as one application returns zero. After processing this message the system sends the WM_ENDSESSION message with the wParam parameter set to the results of the WM_QUERYENDSESSION message.

.

    '''An application sends a WM_SETFONT message to specify the font that a control is to use when drawing text.

.

    '''An application sends a WM_SETHOTKEY message to a window to associate a hot key with the window. When the user presses the hot key the system activates the window.

.

    '''An application sends the WM_SETICON message to associate a new large or small icon with a window. The system displays the large icon in the ALT+TAB dialog box and the small icon in the window caption.

.

    '''An application sends the WM_SETREDRAW message to a window to allow changes in that window to be redrawn or to prevent changes in that window from being redrawn.

.

    '''Text / Caption changed on the control. An application sends a WM_SETTEXT message to set the text of a window.

.

    '''An application sends the WM_SETTINGCHANGE message to all top-level windows after making a change to the WIN.INI file. The SystemParametersInfo function sends this message after an application uses the function to change a setting in WIN.INI.

.

    '''An application sends a WM_UNDO message to an edit control to undo the last operation. When this message is sent to an edit control the previously deleted text is restored or the previously added text is deleted.

.

    '''The WM_USERCHANGED message is sent to all windows after the user has logged on or off. When the user logs on or off the system updates the user-specific settings. The system sends this message immediately after updating the settings.

.

    '''An application sends the WM_WININICHANGE message to all top-level windows after making a change to the WIN.INI file. The SystemParametersInfo function sends this message after an application uses the function to change a setting in WIN.INI. Note The WM_WININICHANGE message is provided only for compatibility with earlier versions of the system. Applications should use the WM_SETTINGCHANGE message.

.

    ''' The system sends or posts a system-defined message when it communicates with an application.

.

    ''' An application can also send or post system-defined messages.

.

    ''' An application sends the <see cref="Null"/> message if it wants to

.

    ''' MCI devices send this message only when the <c>MCI_NOTIFY</c> flag is used.

.

    ''' Applications should send <see cref="WindowsMessages.WmSettingchange"/> to all top-level windows when

.

    ''' To send the <see cref="WindowsMessages.WmSettingchange"/> message to all top-level windows,

.

    ''' use the <see cref="NativeMethods.SendMessageTimeout"/> function with the <paramref name="hwnd"/> parameter set to

.

    ''' when a control sends a notification message to its parent window,

.

    ''' An application sends this message to a window to allow changes in that window to be redrawn

.

    ''' The system sends the <see cref="WmEnterSizeMove"/> message regardless of

.

    ''' An application sends the message to indicate that the user interface (UI) state should be changed.

.

    ''' An application sends the message to all top-level windows in the system after changing the

.

    ''' An application sends this message to determine the hot key associated with a window.

.

    ''' An application sends this message to a multiple-document interface (MDI) client window to

.

    ''' An application sends this message to a multiple-document interface (MDI) client window to

.

    ''' An application sends this message to a multiple-document interface (MDI) client window to

.

    ''' The <c>DestroyWindow</c> function sends the <see cref="WmNcDestroy"/> message to the

.

    ''' The system stops sending <see cref="WmQueryEndSession"/> messages as soon as one application returns zero.

.

    ''' After processing this message the system sends the <see cref="WmEndSession"/> message with the

.

    ''' An application sends this message to a window to associate a hot key with the window.

.

    ''' An application sends this message to an edit control to undo the last operation.

.

    ''' The system sends this message immediately after updating the settings.

.

    ''' An application sends this message to an edit control or combo box to copy the current

.

    ''' An application sends this message to an edit control or combo box to delete (cut) the

.

    ''' An application sends this message to an edit control or combo box to copy the current content of the

.

    ''' An application sends the message to an edit control or combo box to delete (clear) the

.

        private void Form1_Load(object sender, System.EventArgs e)

.

    /// Specifies that a child window created with this style does not send the WM_PARENTNOTIFY message to its parent window when it is created or destroyed.

.

    ''' Specifies that a child window created with this style does not send the WM_PARENTNOTIFY message to its parent window when it is created or destroyed.

.

    /// Specifies that a child window created with this style does not send the WM_PARENTNOTIFY message to its parent window when it is created or destroyed.

.

    ''' Specifies that a child window created with this style does not send the WM_PARENTNOTIFY message to its parent window when it is created or destroyed.

dbghelp

.

  /// <param name="sender"></param>

.

static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)

powrprof

.

        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

.

force: true to force the suspended mode immediately; false to cause Windows to send a suspend request to every application.

Delegates

.

If you’re going to use the lParam to return a by-value result (such as the hwnd of a window you are looking for), you’ll want to send lParam by reference:

iphlpapi

.

    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click

.

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

.
Summary
Send ARP message to a Network Card in the LAN
.

  public static extern int SendARP(

.

  Declare Function SendARP Lib "iphlpapi.dll" (

.

SendARP returns 0 on success. The parameter SrcIP can be 0.

.

    SendARP(CType(addr.Address, UInt32), 0, mac, len)

.

int retValue = SendARP(uintAddress, 0, macAddr, ref macAddrLen);

.

    throw new Win32Exception(retValue, "SendARP failed.");

.
Documentation
[SendARP] on MSDN
.

    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click

gdi32

.

    private void timer1_Tick(object sender, EventArgs e)

.

    private void Form_Paint( object p_SenderObject, System.Windows.Forms.PaintEventArgs p_Arguments )

.

private void button1_Click(object sender, EventArgs e)

.

  static private void myControl_MouseMove(object sender,System.Windows.Forms.MouseEventArgs e)

.

    private static extern int SendMessage(IntPtr hWnd, WindowsMessages wMsg, IntPtr wParam, IntPtr lParam);

.

        //This version of SendMessage is a blocking call until all windows respond.

.

        long result = SendMessage(HWND_BROADCAST, WindowsMessages.WM_FONTCHANGE, IntPtr.Zero, IntPtr.Zero);

.

private void button1_Click(object sender, EventArgs e)

.

private void tabControl1_DrawItem(object sender, DrawItemEventArgs e)

.

        private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)

.

        private void Form1_Resize(object sender, System.EventArgs e)

.

        private void menuItem2_Click(object sender, System.EventArgs e)

.

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

aygshell

.
Summary
Send XML to Windows Mobile to provision a device for all kinds of different aspects of configuration.
.

private void frm_Activated(object sender, EventArgs e)

.

private void frm_Deactivate(object sender, EventArgs e)

kernel32

.

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

.

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

.

private void shutdownToolStripMenuItem_Click(object sender, EventArgs e)

.

     DiskSmartSendDriveCommand = (EFileDevice.Disk << 16) | (0x0021 << 2) | EMethod.Buffered | (FileAccess.ReadWrite << 14),

.

   Private Const DFP_SEND_DRIVE_COMMAND As Integer = &H7C084

.

   Private Declare Function DeviceIoControl Lib "kernel32" (ByVal hDevice As Integer, ByVal dwIoControlCode As Integer, ByRef lpInBuffer As SENDCMDINPARAMS, ByVal nInBufferSize As Integer, ByRef lpOutBuffer As IntPtr, ByVal nOutBufferSize As Integer, ByRef lpBytesReturned As Integer, ByVal lpOverlapped As IntPtr) As Integer

.

   Structure SENDCMDINPARAMS

.

       Dim bDriveNumber As Byte    ' Physical drive number to send command to (0,1,2,3).

.

   Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

.

       Dim SCIP As SENDCMDINPARAMS

.

    CLRRTS = 4, //Clears the RTS (request-to-send) signal.

.

    SETDTR = 5, //Sends the DTR (data-terminal-ready) signal.

.

    SETRTS = 3, //Sends the RTS (request-to-send) signal.

.

    // watching for CTS (Clear To Send)

.

    void watchdog_Tick(object sender, EventArgs e)

.

    private void cmdTest_Click(object sender, EventArgs e)

.

    protected void Page_Load(pbject sender, EventArgs e)

.

    public byte   ncb_sto;        /* send timeout/sys timeout       */

.

Sends a string to the debugger for display.

.

If you need a more accurate break time, you could lower the baud rate, send

.

There is a message (WM_SETTINGCHANGE) you can send in order to notify the active windows that there has been a configuration change using the SendMessageTimeout function.

.

Sending NULL to lpData and 0 to cbData will delete the file indicated by hUpdate.

.

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click

icmp

.

B¼Ö^¤mÄÉñây°¼¬¬ÆðÇ풄ßM/ԅyrÑñGƒ;;8ó0œŠfMûޏ¯EÍ|#Í ×'êLkßH·ÖåГî_senD,ás ‘R¤7B¡‡Xü[B]8©:1”O?¹ÏɱÐFxVBiËü’ð¯¥ìIÜË8@쮉ås،<‘£a]uê«#ë¦Oî`&V±ˆ±«&±ÈYAø€9qµ:›<Ñ ]CŽÙ¨ü#;‡›ñ)Þ¦äõŜ;{ÕshʼnÚc‰Ö »ƒüÇîËá•Vsõ#ÊlÁé=¬{¸–z>{¨ê0NOCÑ6 ñ›ýf0¿¾7&þ&}=)R%í¤xÿvûÔíØ HhÈó½6 ÕUúø3ÀÖ( ùÈޙTæóMÈÝ5èlü0¿£Ä>¬2JÁíïÚ±ïl¨˜ÝøäjäÃ@Ñh.Ó_é&ýøJgOE)ú‘éZÍШ¬‹)«¦½•¨<ó;(4Aò-rWQ F1ñÓ™ÛÆïúÎá|8žkê•SW5U+#¸ÿE­'¬´‘j]X…s®Êœd2'¶Lg^M+(>%ÞÛícLÁ=4­J`ØAÀ`­GJ

.
Summary
Sends an ICMP Echo Request and returns any replies. The call returns when the time-out has expired or the reply buffer is filled.
.

static extern Int32 IcmpSendEcho(IntPtr icmpHandle, Int32 destinationAddress, IntPtr requestData, Int16 requestSize, IntPtr requestOptions, IntPtr replyBuffer, Int32 replySize, Int32 timeout);

.

Declare Function IcmpSendEcho Lib "icmp.dll" (icmpHandle as IntPtr, destinationAddress as Int32, requestData as IntPtr, requestSize as Int16, requestOptions as IntPtr, replyBuffer as IntPtr, replySize as Int32, timeout as Int32) As Int32

.

        private static extern int IcmpSendEcho(IntPtr icmpHandle, int destinationAddress, string requestData, short requestSize, ref ICMP_OPTIONS requestOptions, ref ICMP_ECHO_REPLY replyBuffer, int replySize, int timeout);

.

            int iReplies = IcmpSendEcho(icmpHandle, BitConverter.ToInt32(ip.GetAddressBytes(), 0), sData, (short)sData.Length, ref icmpOptions, ref icmpReply, Marshal.SizeOf(icmpReply), 30);

.

DWORD WINAPI IcmpSendEcho(HANDLE IcmpHandle, IPAddr DestinationAddress,

.

    char SendData[32] = "Data Buffer";

.

    ReplySize = sizeof(ICMP_ECHO_REPLY) + sizeof(SendData);

.

    dwRetVal = IcmpSendEcho(hIcmpFile, ipaddr, SendData, sizeof(SendData),

.
Documentation
[IcmpSendEcho] on MSDN

netapi32

.
Summary
This function sends a buffer of information to a registered message alias.
.

static extern int NetMessageBufferSend(

.

    ''' The NetMessageBufferSend function sends a buffer of information to a registered message alias.

.

    ''' Windows NT:  No special group membership is required to execute the NetMessageBufferSend function on a LAN Manager or a Windows NT system.

.

    ''' Admin, Accounts, Print, or Server Operator group membership is required to successfully execute NetMessageBufferSend on a remote server.

.

    Public Declare Function NetMessageBufferSend Lib "netapi32.dll" _

.

The Alerter service must be running for NetMessageBufferSend to function.

.

This is a simple console program which lets you send messages (quite similar to the NET SEND command...).

.
Usage
sendnetmsg.exe srcName dstName message
.

public class SendNetMsg

.

    public static extern int NetMessageBufferSend(

.

        Console.WriteLine ("sendnetmsg.exe srcName dstName msg");

.

        int retVal = NetMessageBufferSend (null, argv[1], argv[0], argv[2], argv[2].Length * 2);    

.
Documentation
[NetMessageBufferSend] on MSDN
.

        private static extern int NetMessageBufferSend(

.

        public static int NetMessageSend(string serverName,string messageName,string fromName,string strMsgBuffer, int iMsgBufferLen)

.

            return NetMessageBufferSend(serverName,messageName,fromName,strMsgBuffer,iMsgBufferLen*2);

.

private void button1_Click(object sender, System.EventArgs e)

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


 
Access PInvoke.net directly from VS: