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

Constants

.

const int PIPE_ACCESS_INBOUND = 0x00000001

.

const int PIPE_ACCESS_OUTBOUND = 0x00000002

.

const int PIPE_ACCESS_DUPLEX = 0x00000003

.

const int PIPE_CLIENT_END = 0x00000000

.

const int PIPE_SERVER_END = 0x00000001

.

const int PIPE_WAIT = 0x00000000

.

const int PIPE_NOWAIT = 0x00000001

.

const int PIPE_READMODE_BYTE = 0x00000000

.

const int PIPE_READMODE_MESSAGE= 0x00000002

.

const int PIPE_TYPE_BYTE = 0x00000000

.

const int PIPE_TYPE_MESSAGE = 0x00000004

.

const int PIPE_UNLIMITED_INSTANCES = 255

.

const int PIPE_ACCESS_INBOUND = 0x00000001

.

const int PIPE_ACCESS_OUTBOUND = 0x00000002

.

const int PIPE_ACCESS_DUPLEX = 0x00000003

.

const int PIPE_CLIENT_END = 0x00000000

.

const int PIPE_SERVER_END = 0x00000001

.

const int PIPE_WAIT = 0x00000000

.

const int PIPE_NOWAIT = 0x00000001

.

const int PIPE_READMODE_BYTE = 0x00000000

.

const int PIPE_READMODE_MESSAGE= 0x00000002

.

const int PIPE_TYPE_BYTE = 0x00000000

.

const int PIPE_TYPE_MESSAGE = 0x00000004

.

const int PIPE_UNLIMITED_INSTANCES = 255

.

private const uint FILE_FLAG_FIRST_PIPE_INSTANCE = 0x00080000;

.

        public const int ERROR_PIPE_BUSY = 231;

.

        public const int ERROR_PIPE_NOT_CONNECTED = 233;

.

        public const int ERROR_PIPE_CONNECTED = 535;

.

        public const int ERROR_PIPE_LISTENING = 536;

.

        public const int RPC_X_INVALID_PIPE_OBJECT = 1830;

.

        public const int RPC_X_WRONG_PIPE_ORDER = 1831;

.

        public const int RPC_X_WRONG_PIPE_VERSION = 1832;

.

        public const int RPC_X_PIPE_CLOSED = 1916;

.

        public const int RPC_X_PIPE_DISCIPLINE_ERROR = 1917;

.

        public const int RPC_X_PIPE_EMPTY = 1918;

Structures

.

   USB_PIPE_INFO  PipeList[0];

.

// To get the USB_PIPE_INFO data

.

   size = Marshal.SizeOf(typeof(USB_NODE_CONNECTION_INFORMATION_EX)) + 32 * Marshal.SizeOf(typeof(USB_PIPE_INFO)); // Assuming 32 should be enough, you can make this larger

.

       int num = (bytes_returned - Marshal.SizeOf(typeof(USB_NODE_CONNECTION_INFORMATION_EX))) / Marshal.SizeOf(typeof(USB_PIPE_INFO));

.

       USB_PIPE_INFO[] pipe_info = new USB_PIPE_INFO[num];

.

     // Set ptr to an USB_PIPE_INFO element and marshal it back

.

                       + j * Marshal.SizeOf(typeof(USB_PIPE_INFO)));

.

     pipe_info[j] = (USB_PIPE_INFO)Marshal.PtrToStructure(ptr_pipeinfo, typeof(USB_PIPE_INFO));

kernel32

.

        PIPE_ACCESS_DUPLEX = 0x00000003,

.

        PIPE_ACCESS_INBOUND = 0x00000001,

.

        PIPE_ACCESS_OUTBOUND = 0x00000002,

.

        FILE_FLAG_FIRST_PIPE_INSTANCE = 0x00080000,

.

        PIPE_TYPE_BYTE = 0x00000000,

.

        PIPE_TYPE_MESSAGE = 0x00000004,

.

        PIPE_READMODE_BYTE = 0x00000000,

.

        PIPE_READMODE_MESSAGE = 0x00000002,

.

        PIPE_WAIT = 0x00000000,

.

        PIPE_NOWAIT = 0x00000001,

.

        PIPE_ACCEPT_REMOTE_CLIENTS = 0x00000000,

.

        PIPE_REJECT_REMOTE_CLIENTS = 0x00000008

.

    private const uint PIPE_ACCESS_OUTBOUND = 0x00000002;

.

    private const uint PIPE_ACCESS_DUPLEX = 0x00000003;

.

    private const uint PIPE_ACCESS_INBOUND = 0x00000001;

.

    private const uint PIPE_WAIT = 0x00000000;

.

    private const uint PIPE_NOWAIT = 0x00000001;

.

    private const uint PIPE_READMODE_BYTE = 0x00000000;

.

    private const uint PIPE_READMODE_MESSAGE = 0x00000002;

.

    private const uint PIPE_TYPE_BYTE = 0x00000000;

.

    private const uint PIPE_TYPE_MESSAGE = 0x00000004;

.

    private const uint PIPE_CLIENT_END = 0x00000000;

.

    private const uint PIPE_SERVER_END = 0x00000001;

.

    private const uint PIPE_UNLIMITED_INSTANCES = 255;

.

    private const ulong ERROR_PIPE_CONNECTED = 535;

.

        InboundOnly = (int)PIPE_ACCESS_INBOUND,

.

        OutboundOnly = (int)PIPE_ACCESS_OUTBOUND,

.

        Bidirectional = (int)(PIPE_ACCESS_INBOUND+PIPE_ACCESS_OUTBOUND)

.

            PIPE_TYPE_BYTE | PIPE_WAIT,

.

            PIPE_UNLIMITED_INSTANCES,

.

        if (lastErr == ERROR_PIPE_CONNECTED)

.

            if ((uint)Marshal.GetLastWin32Error() == ERROR_PIPE_CONNECTED)

.

  public const int FILE_CREATE_PIPE_INSTANCE  = 0x0004;     // named pipe


 
Access PInvoke.net directly from VS: