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]

wininet

.
Summary
Sends commands directly to an FTP server.
.

lpszCommand (in) A pointer to a string that contains the command to send to the FTP server.

.

Sends the specified request to the HTTP server, allowing callers to send extra data beyond what is normally passed to HttpSendRequestEx.

.

extern public static bool HttpSendRequest(

.
Documentation
[HttpSendRequest] on MSDN
.

For FTP connections, if lpszUsername is NULL, InternetConnect sends the string "anonymous" as the user name. If lpszPassword is NULL, InternetConnect attempts to use the user's e-mail name as the password.

.

    Private Sub cmdGetPolicy_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdGetPolicy.Click

.

    Private Sub cmdSetPolicy_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSetPolicy.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

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

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.

hid

.

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

winmm

.
Summary
The mciSendString function sends a command string to an MCI device. The device that the command is sent to is specified in the command string [This page was changed by iMpostoR]
.

static extern Int32 mciSendString(string command, StringBuilder buffer, int bufferSize, IntPtr hwndCallback);

.

Private Shared Function mciSendString(ByVal command As String, ByVal buffer As StringBuilder, ByVal bufferSize As Integer, ByVal hwndCallback As IntPtr) As Integer

.

Declare Ansi Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal command As String, ByRef buffer As StringBuilder, ByVal bufferSize As Integer, ByVal hWndCallback As IntPtr) As Integer

.

    mciSendString("set CDAudio door open", returnstring,127, IntPtr.Zero);

.

mciSendString(sCommand, null, 0, 0);

.

mciSendString(sCommand, null, 0, _frmObject.Handle.ToInt64());

.

static extern Int32 mciSendString(string command, string buffer, int bufferSize, IntPtr hwndCallback);

.

     mciSendString("set CDAudio door open", rt, 127, IntPtr.Zero);

.

     mciSendString("set CDAudio door closed", rt, 127, IntPtr.Zero);

.

     mciSendString("set CDAudio door open", returnstring, 127, IntPtr.Zero)

.

     mciSendString(sCommand, Nothing, 0, IntPtr.Zero)

.

     mciSendString(sCommand, Nothing, 0, Me.Handle.ToInt64())

.
Documentation
[mciSendString] on MSDN
.

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

.

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

.
Summary
The waveInAddBuffer function sends an input buffer to the given waveform-audio input device.

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

30: 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.

31: 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

advapi32

.

    void serviceInstaller1_Committed(object sender, InstallEventArgs e)

.

    void serviceInstaller1_Committed(object sender, InstallEventArgs e)

.
Summary
The ControlService function sends a control code to a service.
.

    public delegate void RegistryChangeHandler(object sender, RegistryChangeEventArgs e);

.

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

.
Summary
Used in ETW tracing to send and event to log.

oleacc

.

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

.

if ( SendMessageTimeout(hWnd, nMsg, UIntPtr.Zero, IntPtr.Zero,

.

     SendMessageTimeoutFlags.SMTO_ABORTIFHUNG, 1000, out lRes) == IntPtr.Zero )

ws2_32

.

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

.

        /// send without using routing tables

.

        /// partial send or recv for message xport

49: 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)

50: 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.

51: 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

.

        // permit sending of broadcast msgs  

.

        // send buffer size  

.

        // send low-water mark  

.

        // send timeout  

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)

winscard

.
Summary
The SCardTransmit function sends a service request to the smart card and expects to receive data back from the card.
.

     ref SCARD_IO_REQUEST pioSendRequest,

.

     ref byte SendBuff,

.

     UInt32 SendBuffLen,

.

        byte[] sendBytes = new byte[] { 0xFF, 0xCA, 0x00, 0x00, 0x00 }; //get UID command for iClass cards

.

        int status = SCardTransmit(_hCard, ref request, ref sendBytes[0], (uint)sendBytes.Length, ref request, out receivedUID[0], ref outBytes);

.

byte[] pbSendBuffer = { 0xC0, 0xA4, 0x00, 0x00, 0x02, 0x3F, 0x00 }; // Example Cla,Ins,P1,P2,P3,DataIN (Select MF)

.

int cbSendLength=pbSendBuffer.Length;

.

uint errors=SCardTransmit(nCard, SCARD_PCI_T0, pbSendBuffer, cbSendLength, ioRecv, pbRecvBuffer, ref pcbRecvLength);

comctl32

.

       private static void imageList_RecreateHandle(object sender, EventArgs e)

.

      if (imageListOverlays.TryGetValue(sender as ImageList, out vals))

.

        NativeMethods.ImageList_SetOverlayImage(((ImageList)sender).Handle, vals[i], i + 1);

.

       private static void imageList_RecreateHandle(object sender, EventArgs e)

.

      if (imageListOverlays.TryGetValue(sender as ImageList, out vals))

.

        NativeMethods.ImageList_SetOverlayImage(((ImageList)sender).Handle, vals[i], i + 1);

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


 
Access PInvoke.net directly from VS: