Ejemplo n.º 1
0
 internal extern static int FilterConnectCommunicationPort([MarshalAs(UnmanagedType.LPWStr)] string lpPortName,
                                                           uint dwOptions,
                                                           IntPtr lpContext,
                                                           uint dwSizeOfContext,
                                                           IntPtr lpSecurityAttributes,
                                                           out SafePortHandle hPort
                                                           );
Ejemplo n.º 2
0
 internal static extern int FilterConnectCommunicationPort([MarshalAs(UnmanagedType.LPWStr)] string lpPortName, 
     uint dwOptions,
     IntPtr lpContext,
     uint dwSizeOfContext,
     IntPtr lpSecurityAttributes,
     out SafePortHandle hPort
     );
Ejemplo n.º 3
0
 public void Disconnect()
 {
     VerifyConnected();
     port.Dispose();
     port = null;
 }
Ejemplo n.º 4
0
 public void Disconnect()
 {
     VerifyConnected();
     port.Dispose();
     port = null;
 }
Ejemplo n.º 5
0
 internal extern static int FilterSendMessage(SafePortHandle port,
                                              IntPtr lpInBuffer,
                                              int dwInBufferSize,
                                              IntPtr lpOutBuffer,
                                              int dwOutBufferSize,
                                              out IntPtr lpBytesReturned);
Ejemplo n.º 6
0
 internal static extern int FilterSendMessage(SafePortHandle port, 
     IntPtr lpInBuffer,
     int dwInBufferSize,
     IntPtr lpOutBuffer,
     int dwOutBufferSize,
     out IntPtr lpBytesReturned);