U Ulrich Kotzolt Apr 26, 2005 #1 someone know how to get a named pipe in the framework, i think i will again go through p-invoke, right ?
someone know how to get a named pipe in the framework, i think i will again go through p-invoke, right ?
L LOZANO-MORÁN, Gabriel Apr 26, 2005 #2 Unmanaged calls Should be something like this: [DllImport("kernel32", EntryPoint="CallNamedPipe", CharSet=CharSet.Auto)] private static extern bool CallNamedPipe(string lpNamedPipeName, [MarshalAs(UnmanagedType.AsAny)] object lpInBuffer, int nInBufferSize, [MarshalAs(UnmanagedType.AsAny)] object lpOutBuffer, int nOutBufferSize, [In, Out] int[] lpBytesRead, int nTimeOut); Gabriel Lozano-Morán
Unmanaged calls Should be something like this: [DllImport("kernel32", EntryPoint="CallNamedPipe", CharSet=CharSet.Auto)] private static extern bool CallNamedPipe(string lpNamedPipeName, [MarshalAs(UnmanagedType.AsAny)] object lpInBuffer, int nInBufferSize, [MarshalAs(UnmanagedType.AsAny)] object lpOutBuffer, int nOutBufferSize, [In, Out] int[] lpBytesRead, int nTimeOut); Gabriel Lozano-Morán