Added a Named Pipe to MS/TP Capture utility so that Wireshark can capture MS/TP packets in realtime using the named pipe as the interface name. Thank you Lori!

This commit is contained in:
skarg
2009-10-14 21:15:10 +00:00
parent 8130a50817
commit deba2aab3e
3 changed files with 71 additions and 19 deletions
+3 -2
View File
@@ -113,12 +113,13 @@ const char *RS485_Interface(
return RS485_Port_Name;
}
static void RS485_Print_Error(
void RS485_Print_Error(
void)
{
LPVOID lpMsgBuf;
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), /* Default language */
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPTSTR) & lpMsgBuf, 0, NULL);
MessageBox(NULL, lpMsgBuf, "GetLastError", MB_OK | MB_ICONINFORMATION);
LocalFree(lpMsgBuf);
+2
View File
@@ -64,6 +64,8 @@ extern "C" {
void);
bool RS485_Set_Baud_Rate(
uint32_t baud);
void RS485_Print_Error(void);
#ifdef __cplusplus
}