Desktop Functions: Smart Device Functions:
|
Search Results for "_pipe" in [All]Enums1: DEVICE_TYPE
FILE_DEVICE_NAMED_PIPE = 0x11,
FILE_DEVICE_NAMED_PIPE = &H11 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
IntPtr ptr_pipeinfo;
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
IntPtr ptr_pipeinfo = new IntPtr((byte*)ptr_connection.ToPointer()
+ j * Marshal.SizeOf(typeof(USB_PIPE_INFO)));
pipe_info[j] = (USB_PIPE_INFO)Marshal.PtrToStructure(ptr_pipeinfo, typeof(USB_PIPE_INFO)); Constants3: O_
4: WINBASE
private const uint FILE_FLAG_FIRST_PIPE_INSTANCE = 0x00080000; 5: WINERROR
public const int ERROR_BROKEN_PIPE = 109;
public const int ERROR_BAD_PIPE = 230;
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; kernel32
FILE_FLAG_FIRST_PIPE_INSTANCE = 0x00080000,
private const ulong ERROR_PIPE_CONNECTED = 535;
if (lastErr == ERROR_PIPE_CONNECTED)
if ((uint)Marshal.GetLastWin32Error() == ERROR_PIPE_CONNECTED) 7: WriteFileEx
public const int FILE_CREATE_PIPE_INSTANCE = 0x0004; // named pipe msvcrt8: _pipe
|