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