@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: The SetCommBreak API !!!!C# Signature: [DllImport("kernel32.dll", SetLastError = true)] [return: MarshalAsAttribute(UnmanagedType.Bool)] static extern bool SetCommBreak([InAttribute] SafeFileHandle fileHandle); !!!!User-Defined Types: None. !!!!Notes: You would think the sample code below would generate a 5ms break, but no. It gives about 2ms longer than the explicit delay. I suppose that's intentional, per CCITT recommendations for minimum break time, but I don't see that behavior in the documentation. !!!!Tips & Tricks: If you need a more accurate break time, you could lower the baud rate, send a NULL, then restore the baud rate. !!!!Sample Code: SetCommBreak(hCOM); Sleep(5); ClearCommBreak(hCOM); !!!!Alternative Managed API: Do you know one? Please contribute it! Documentation: SetCommBreak@msdn on MSDN
Edit kernel32.setcommb...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.