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]

Structures

.

const UInt32 PCF_RTSCTS    = 0x0002; // RTS (request-to-send)/CTS (clear-to-send) supported

.
Summary
COPYDATASTRUCT messages may be used to send structured data between processes.
.

The first sends an arbitrary structure (called txStruct) to another process.

.

   public IntPtr dwData;    // Any value the sender chooses.  Perhaps its main window handle?

.

// The first field, dwData, may contain anything the sender wishes; it is the equivalent of System.Object sender in an EventHandler.

.

C# Example 1 - send data:

.

// An example of sending a message containing a txStruct.

.

public SendMessage()

.

   SendMessage(hWnd, WM_COPYDATA, IntPtr.Zero, copyDataBuff);

.

    public string SenderName;

.

    public string SenderCompany;

.

    public string SenderDept;

.

    public string SenderBillingCode;

.

This structure is allocated by a user-mode application. It is a container for a reply that the application sends in response to a message received from a kernel-mode minifilter or minifilter instance.

.
Summary
The KEYBDINPUT structure contains information about a simulated keyboard event. It's part of the INPUT structure, and is used for the SendInput function.
.

        ///see Remark in KEYBDINPUT, SendInput, WM_KEYDOWN, and WM_KEYUP

6: MAPI
.

    /// when reading messages and set it to empty or NULL when sending messages.

.

    /// sender of the message.

.

  /// A MapiRecipDesc structure contains information about a message sender or recipient.

.

    ///     0    MAPI_ORIG  Indicates the original sender of the message.

.

    /// Pointer to the display name of the message recipient or sender.

.

    /// Optional pointer to the recipient or sender's address; this address is provider-specific message

.

    /// to return valid entry identifiers for all recipients or senders listed in the address book.

.

    ''' when reading messages and set it to empty or NULL when sending messages.

.

    ''' sender of the message.

.

    ''' A MapiRecipDesc structure contains information about a message sender or recipient.

.

    '''     0    MAPI_ORIG  Indicates the original sender of the message.

.

    ''' Pointer to the display name of the message recipient or sender.

.

    ''' Optional pointer to the recipient or sender's address; this address is provider-specific message

.

    ''' to return valid entry identifiers for all recipients or senders listed in the address book.

7: NCB
.

   UCHAR   ncb_sto;        /* send timeout/sys timeout       */

.

    /// Application-defined message identifier. The system uses this identifier to send

.

    /// Shell_NotifyIcon. This member is only employed when using Shell_NotifyIcon to send an

.

        /// <summary>Handle to the device sending the data.</summary>

.

        ''' <summary>Handle to the device sending the data.</summary>

.

        /// Constructor for the command to send to the robot

.

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

.

I tried to use this to send files to the recycle bin. It failed (Marshal.GetLastWin32Error was 6, invalid handle) and sometimes threw a NullReferenceException. To make it work I did the following;

.

FileSystem.DeleteFile(path, UIOption.OnlyErrorDialogs, RecycleOption.SendToRecycleBin);

.

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

.

Have a look at SendInput for an example of where these constants are used.

.

   // For use with the INPUT struct, see SendInput for an example

.

    ' For use with the INPUT struct, see SendInput for an example

Constants

.

        SendMessage(parent, WM_SIZE, SIZE_RESTORED, 0);

16: CB_
.
Summary
Messages you can send to combo boxes, either in an enum or defined as a series of constants
.

Use this method to get the list of items out of a combo box using Windows API call (SendMessage). You need to

.

get the count of items in the combo box first (also with SendMessage api).

.

        Dim ptrLength As Integer = SendMessage(windowHandle, ComboBox_GetComboBoxTextLength, iPtr, zero)

.

        ' string builder to send

.

        SendMessage(windowHandle, ComboBox_GetComboBoxText, iPtr, winText)

18: HWND
.

Used in SendMessage API

19: MAPI
.

  /// Indicates the original sender of the message.

.

  /// Client applications set this flag when sending a message.

.

  /// A dialog box should be displayed to prompt the user for recipients and other sending options.

.

    public static PropertyKey PKEY_IsSendToTarget = new PropertyKey( 0x28636AA6, 0x953D, 0x11D2, 0xB5, 0xD6, 0x00, 0xC0, 0x4F, 0xD9, 0x18, 0xD0, 33);

.

    public static PropertyKey PKEY_Message_SenderAddress = new PropertyKey( 0x0BE1C8E7, 0x1981, 0x4676, 0xAE, 0x14, 0xFD, 0xD7, 0x8F, 0x05, 0xA6, 0xE7, 100);

.

    public static PropertyKey PKEY_Message_SenderName = new PropertyKey( 0x0DA41CFA, 0xD224, 0x4A18, 0xAE, 0x2F, 0x59, 0x61, 0x58, 0xDB, 0x4B, 0x3A, 100);

.

    public static PropertyKey WPD_EMAIL_SENDER_ADDRESS = new PropertyKey(0x41F8F65A, 0x5484, 0x4782, 0xB1, 0x3D, 0x47, 0x40, 0xDD, 0x7C, 0x37, 0xC5, 10);

.

    public static PropertyKey WPD_COMMAND_SMS_SEND = new PropertyKey(0xAFC25D66, 0xFE0D, 0x4114, 0x90, 0x97, 0x97, 0x0C, 0x93, 0xE9, 0x20, 0xD1, 2);

.

    public static PropertyKey WPD_PROPERTY_MTP_EXT_TRANSFER_NUM_BYTES_TO_WRITE = new PropertyKey(0x4d545058, 0x1a2e, 0x4106, 0xa3, 0x57, 0x77, 0x1e, 0x8, 0x19, 0xfc, 0x56, 1010); // [ VT_UI4 ] : Input specifying the number of bytes to send to device in a series of write calls

21: SW
.

const UInt32 SWP_NOSENDCHANGING  =0x0400;

.

    Const SWP_NOSENDCHANGING As Integer = &H400

22: SWP
.

const UInt32 SWP_NOSENDCHANGING  =0x0400;

.

        /// An error occurred in sending the command to the application.

.

        public const int RPC_S_SEND_INCOMPLETE = 1913;

.

        public const int ERROR_DS_LDAP_SEND_QUEUE_FULL = 8616;

.

        /// A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.

.

        /// A request to send or receive data was disallowed because the socket had already been shut down in that direction with a previous shutdown call.

.

        public const int WSA_QOS_SENDERS = 11006;

.

        /// There are no senders.

.

        public const int WSA_QOS_NO_SENDERS = 11007;

.

        /// Peer failed to send valid machine certificate

.

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

.

        public const int RPC_E_CANTPOST_INSENDCALL = (int)(0x80010003 - 0x100000000);

.

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

24: WM
.
WM_CANCELMODE 0x1F 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.
.
WM_CHANGEUISTATE 0x127 An application sends the WM_CHANGEUISTATE message to indicate that the user interface (UI) state should be changed.
.
WM_CLEAR 0x303 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.
.
WM_COMMAND 0x111 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.
.
WM_COMPAREITEM 0x39 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.
.
WM_COPY 0x301 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.
.
WM_COPYDATA 0x4A An application sends the WM_COPYDATA message to pass data to another application.
.
WM_CTLCOLOREDIT 0x133 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.
.
WM_CTLCOLORSTATIC 0x138 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.
.
WM_CUT 0x300 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.
.
WM_DELETEITEM 0x2D 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.
.
WM_FONTCHANGE 0x1D An application sends the WM_FONTCHANGE message to all top-level windows in the system after changing the pool of font resources.
.
WM_GETFONT 0x31 An application sends a WM_GETFONT message to a control to retrieve the font with which the control is currently drawing its text.
.
WM_GETHOTKEY 0x33 An application sends a WM_GETHOTKEY message to determine the hot key associated with a window.
.
WM_GETOBJECT 0x3D 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.
.
WM_GETTEXT 0xD An application sends a WM_GETTEXT message to copy the text that corresponds to a window into a buffer provided by the caller.
.
WM_GETTEXTLENGTH 0xE An application sends a WM_GETTEXTLENGTH message to determine the length, in characters, of the text associated with a window.
.
WM_IME_CONTROL 0x283 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.
.
WM_MDIACTIVATE 0x222 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.
.
WM_MDICASCADE 0x227 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.
.
WM_MDICREATE 0x220 An application sends the WM_MDICREATE message to a multiple-document interface (MDI) client window to create an MDI child window.
.
WM_MDIDESTROY 0x221 An application sends the WM_MDIDESTROY message to a multiple-document interface (MDI) client window to close an MDI child window.
.
WM_MDIGETACTIVE 0x229 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.
.
WM_MDIICONARRANGE 0x228 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.
.
WM_MDIMAXIMIZE 0x225 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.
.
WM_MDINEXT 0x224 An application sends the WM_MDINEXT message to a multiple-document interface (MDI) client window to activate the next or previous child window.
.
WM_MDIREFRESHMENU 0x234 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.
.
WM_MDIRESTORE 0x223 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.
.
WM_MDISETMENU 0x230 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.
.
WM_MDITILE 0x226 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.
.
WM_NCDESTROY 0x82 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.
.
WM_NULL 0x0 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.
.
WM_PARENTNOTIFY 0x210 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.
.
WM_PASTE 0x302 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.
.
WM_QUERYENDSESSION 0x11 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.
.
WM_SETFONT 0x30 An application sends a WM_SETFONT message to specify the font that a control is to use when drawing text.
.
WM_SETHOTKEY 0x32 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.
.
WM_SETICON 0x80 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.
.
WM_SETREDRAW 0xB 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.
.
WM_SETTEXT 0xC Text / Caption changed on the control. An application sends a WM_SETTEXT message to set the text of a window.
.
WM_SETTINGCHANGE 0x1A 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.
.
WM_UNDO 0x304 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.
.
WM_USERCHANGED 0x54 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.
.
WM_WININICHANGE 0x1A 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.

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)

hid

.

The HidD_SetOutputReport routine sends an output report to a top-level collection.

setupapi

.

Text1.Text = SendToUsbPrinter(”Hello world.”)

.

Function SendToUsbPrinter(PrintOut As String) As Boolean

.

SendToUsbPrinter = False

.

SendToUsbPrinter = True

imm32

.

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

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.

cards

.

        private static void CurrentDomain_ProcessExit(object sender, EventArgs e)

.

    Private Shared Sub CurrentDomain_ProcessExit(ByVal sender As Object, ByVal e As EventArgs)

.

        private static void CurrentDomain_ProcessExit(object sender, EventArgs e)

.

    Private Shared Sub CurrentDomain_ProcessExit(ByVal sender As Object, ByVal e As EventArgs)

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

Interfaces

.

    ,BINDSTATUS_SENDINGREQUEST

.

    Private Sub button1_Click(sender As Object, e As System.EventArgs) Handles button1.Click

.

    Private Sub button1_Click(sender As Object, e As System.EventArgs) Handles button1.Click

.

        /// The system does not send a message to the application when the user clicks the Cancel button.

.
Summary
IShellBrowser is an interface exposed by Explorer, and lets an extension manipulate the Explorer window. IShellBrowser has methods to change the menu, toolbar, and status bar, as well as send generic messages to the controls in Explorer.
.

    void SendControlMsg(UInt32 id, UInt32 uMsg, UInt32 wParam, UInt32 lParam, IntPtr pret);

ws2_32

.

    // to close the receiving and sending functions of the socket

.

        /// send without using routing tables

.

        /// partial send or recv for message xport

55: recv
.

    public static extern int recvfrom(IntPtr Socket, IntPtr buf, int len, SendDataFlags flags, ref SockAddr from, IntPtr fromlen);

.

    public static int recvfrom(IntPtr Socket, IntPtr buf, int len, SendDataFlags flags, ref SockAddr from)

56: send
.

public static extern int SendTo (IntPtr Socket, IntPtr buff, int len, SendDataFlags flags, ref SockAddr To, int tomlen);

.

    public enum SendDataFlags

.

    /// <summary>Sends OOB data (stream-style socket such as SOCK_STREAM only)</summary>

.

System.Net.Sockets.Socket (class) Socket.SendTo () - better to use It))

.

If no error occurs, sendto returns the total number of bytes sent, which can be less than the number indicated by len. Otherwise, a value of SOCKET_ERROR is returned, and a specific error code can be retrieved by calling WSAGetLastError.

57: SendTo
.

[DllImport("ws2_32.dll", EntryPoint="sendto")]

.

public static extern int SendTo (IntPtr Socket, IntPtr buff, int len, SendDataFlags flags, ref SockAddr To, int tomlen);

.

    public enum SendDataFlags

.

    /// <summary>Sends OOB data (stream-style socket such as SOCK_STREAM only)</summary>

.

System.Net.Sockets.Socket (class) Socket.SendTo () - better to use It))

.

If no error occurs, sendto returns the total number of bytes sent, which can be less than the number indicated by len. Otherwise, a value of SOCKET_ERROR is returned, and a specific error code can be retrieved by calling WSAGetLastError.

.

        SD_SEND = 1,

.

        SendBuffer = 0x1001,

.

        SendLowWater = 0x1003,

.

        SendTimeout = 0x1005,

.

        /// Offset to checksum for raw IP socket send.

.

        /// permit sending of broadcast msgs

.

        /// send buffer size

.

        /// send low-water mark

.

        /// send timeout

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


 
Access PInvoke.net directly from VS: