ReactOS 0.4.15-dev-8116-gf69e256
fdebug.c File Reference
#include <tchar.h>
#include <windef.h>
#include <winbase.h>
#include <wingdi.h>
#include <winuser.h>
#include <commdlg.h>
#include <process.h>
#include "resource.h"
#include "rs232.h"
Include dependency graph for fdebug.c:

Go to the source code of this file.

Macros

#define MAX_LOADSTRING   100
 

Functions

ATOM MyRegisterClass (HINSTANCE hInstance)
 
BOOL InitInstance (HINSTANCE, int)
 
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM)
 
INT_PTR CALLBACK About (HWND, UINT, WPARAM, LPARAM)
 
INT_PTR CALLBACK ConnectionDialogProc (HWND, UINT, WPARAM, LPARAM)
 
INT_PTR CALLBACK CaptureDialogProc (HWND, UINT, WPARAM, LPARAM)
 
VOID EnableFileMenuItemByID (UINT Id, BOOL Enable)
 
VOID CheckLocalEchoMenuItem (BOOL Checked)
 
VOID __cdecl Rs232Thread (VOID *Parameter)
 
int APIENTRY _tWinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
 

Variables

HINSTANCE hInst
 
TCHAR szTitle [MAX_LOADSTRING]
 
TCHAR szWindowClass [MAX_LOADSTRING]
 
HWND hMainWnd
 
HWND hDisplayWnd
 
HWND hEditWnd
 
TCHAR strComPort [MAX_PATH] = TEXT("COM1")
 
TCHAR strBaudRate [MAX_PATH] = TEXT("115200")
 
TCHAR strCaptureFileName [MAX_PATH] = TEXT("")
 
BOOL bConnected = FALSE
 
BOOL bCapturing = FALSE
 
BOOL bLocalEcho = FALSE
 
HANDLE hCaptureFile
 
DWORD dwThreadId = 0
 

Macro Definition Documentation

◆ MAX_LOADSTRING

#define MAX_LOADSTRING   100

Definition at line 15 of file fdebug.c.

Function Documentation

◆ _tWinMain()

int APIENTRY _tWinMain ( HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
LPTSTR  lpCmdLine,
int  nCmdShow 
)

Definition at line 44 of file fdebug.c.

48{
49 // TODO: Place code here.
50 MSG msg;
51 HACCEL hAccelTable;
52
53 UNREFERENCED_PARAMETER(lpCmdLine);
54 UNREFERENCED_PARAMETER(hPrevInstance);
55
56 // Initialize global strings
60
61 // Perform application initialization:
62 if (!InitInstance (hInstance, nCmdShow))
63 {
64 return FALSE;
65 }
66
68
69 // Main message loop:
70 while (GetMessage(&msg, NULL, 0, 0))
71 {
72 if (!TranslateAccelerator(hMainWnd, hAccelTable, &msg))
73 {
76 }
77 }
78
79 return (int)msg.wParam;
80}
#define msg(x)
Definition: auth_time.c:54
#define IDS_APP_TITLE
Definition: resource.h:10
#define IDC_FDEBUG
Definition: resource.h:12
HINSTANCE hInstance
Definition: charmap.c:19
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
TCHAR szTitle[MAX_LOADSTRING]
Definition: fdebug.c:19
#define MAX_LOADSTRING
Definition: fdebug.c:15
HWND hMainWnd
Definition: fdebug.c:21
BOOL InitInstance(HINSTANCE, int)
Definition: fdebug.c:133
ATOM MyRegisterClass(HINSTANCE hInstance)
Definition: fdebug.c:97
TCHAR szWindowClass[MAX_LOADSTRING]
Definition: fdebug.c:20
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1829
BOOL WINAPI TranslateMessage(_In_ const MSG *)
#define GetMessage
Definition: winuser.h:5790
#define LoadString
Definition: winuser.h:5819
#define DispatchMessage
Definition: winuser.h:5765
#define TranslateAccelerator
Definition: winuser.h:5860
#define LoadAccelerators
Definition: winuser.h:5810
const CHAR * LPCTSTR
Definition: xmlstorage.h:193

◆ About()

INT_PTR CALLBACK About ( HWND  hDlg,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 308 of file fdebug.c.

309{
310 HWND hLicenseEditWnd;
311 TCHAR strLicense[0x1000];
312
314
315 switch (message)
316 {
317 case WM_INITDIALOG:
318
319 hLicenseEditWnd = GetDlgItem(hDlg, IDC_LICENSE_EDIT);
320
321 LoadString(hInst, IDS_LICENSE, strLicense, 0x1000);
322
323 SetWindowText(hLicenseEditWnd, strLicense);
324
325 return TRUE;
326
327 case WM_COMMAND:
328 if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
329 {
330 EndDialog(hDlg, LOWORD(wParam));
331 return TRUE;
332 }
333 break;
334 }
335 return FALSE;
336}
#define IDC_LICENSE_EDIT
Definition: resource.h:20
#define IDS_LICENSE
Definition: resource.h:28
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define TRUE
Definition: types.h:120
HINSTANCE hInst
Definition: fdebug.c:18
#define LOWORD(l)
Definition: pedump.c:82
Definition: tftpd.h:60
#define IDCANCEL
Definition: winuser.h:831
#define WM_COMMAND
Definition: winuser.h:1740
#define WM_INITDIALOG
Definition: winuser.h:1739
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define IDOK
Definition: winuser.h:830
#define SetWindowText
Definition: winuser.h:5857
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
char TCHAR
Definition: xmlstorage.h:189

Referenced by WndProc().

◆ CaptureDialogProc()

INT_PTR CALLBACK CaptureDialogProc ( HWND  hDlg,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 368 of file fdebug.c.

369{
371
373
374 switch (message)
375 {
376 case WM_INITDIALOG:
377
379
380 return TRUE;
381
382 case WM_COMMAND:
383 if (LOWORD(wParam) == IDC_BROWSE)
384 {
385 ZeroMemory(&ofn, sizeof(ofn));
386 ofn.lStructSize = sizeof(ofn);
387 ofn.hwndOwner = hDlg;
392 ofn.nFilterIndex = 0;
396 ofn.nMaxFileTitle = 0;
400
401 if (GetOpenFileName(&ofn))
402 {
404 }
405 }
406
407 if (LOWORD(wParam) == IDOK)
408 {
410 }
411
412 if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
413 {
414 EndDialog(hDlg, LOWORD(wParam));
415 return TRUE;
416 }
417 break;
418 }
419 return FALSE;
420}
#define IDC_CAPTUREFILENAME
Definition: resource.h:20
#define IDC_BROWSE
Definition: resource.h:21
#define OFN_HIDEREADONLY
Definition: commdlg.h:107
#define OFN_NOREADONLYRETURN
Definition: commdlg.h:113
#define GetOpenFileName
Definition: commdlg.h:665
#define MAX_PATH
Definition: compat.h:34
TCHAR strCaptureFileName[MAX_PATH]
Definition: fdebug.c:26
OPENFILENAME ofn
Definition: sndrec32.cpp:56
DWORD nMaxCustFilter
Definition: commdlg.h:334
LPSTR lpstrFileTitle
Definition: commdlg.h:338
LPSTR lpstrCustomFilter
Definition: commdlg.h:333
DWORD nFilterIndex
Definition: commdlg.h:335
HWND hwndOwner
Definition: commdlg.h:330
LPCSTR lpstrTitle
Definition: commdlg.h:341
HINSTANCE hInstance
Definition: commdlg.h:331
LPSTR lpstrFile
Definition: commdlg.h:336
DWORD nMaxFileTitle
Definition: commdlg.h:339
DWORD Flags
Definition: commdlg.h:342
LPCSTR lpstrInitialDir
Definition: commdlg.h:340
DWORD lStructSize
Definition: commdlg.h:329
LPCSTR lpstrFilter
Definition: commdlg.h:332
DWORD nMaxFile
Definition: commdlg.h:337
#define ZeroMemory
Definition: winbase.h:1712
#define GetWindowText
Definition: winuser.h:5798

Referenced by WndProc().

◆ CheckLocalEchoMenuItem()

VOID CheckLocalEchoMenuItem ( BOOL  Checked)

Definition at line 432 of file fdebug.c.

433{
434 HMENU hMenuBar;
435 HMENU hFileMenu;
436
437 hMenuBar = GetMenu(hMainWnd);
438 hFileMenu = GetSubMenu(hMenuBar, 0);
440}
#define IDM_FILE_LOCALECHO
Definition: resource.h:29
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:63
#define MF_BYCOMMAND
Definition: winuser.h:202
#define MF_CHECKED
Definition: winuser.h:132
#define MF_UNCHECKED
Definition: winuser.h:204
DWORD WINAPI CheckMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
HMENU WINAPI GetMenu(_In_ HWND)

Referenced by WndProc().

◆ ConnectionDialogProc()

INT_PTR CALLBACK ConnectionDialogProc ( HWND  hDlg,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 338 of file fdebug.c.

339{
341
342 switch (message)
343 {
344 case WM_INITDIALOG:
345
348
349 return TRUE;
350
351 case WM_COMMAND:
352 if (LOWORD(wParam) == IDOK)
353 {
356 }
357
358 if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
359 {
360 EndDialog(hDlg, LOWORD(wParam));
361 return TRUE;
362 }
363 break;
364 }
365 return FALSE;
366}
#define IDC_COMPORT
Definition: resource.h:18
#define IDC_BAUTRATE
Definition: resource.h:19
TCHAR strBaudRate[MAX_PATH]
Definition: fdebug.c:25
TCHAR strComPort[MAX_PATH]
Definition: fdebug.c:24

Referenced by WndProc().

◆ EnableFileMenuItemByID()

VOID EnableFileMenuItemByID ( UINT  Id,
BOOL  Enable 
)

Definition at line 422 of file fdebug.c.

423{
424 HMENU hMenuBar;
425 HMENU hFileMenu;
426
427 hMenuBar = GetMenu(hMainWnd);
428 hFileMenu = GetSubMenu(hMenuBar, 0);
430}
DWORD Id
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Definition: ntddpcm.h:142
#define MF_ENABLED
Definition: winuser.h:128
BOOL WINAPI EnableMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
#define MF_GRAYED
Definition: winuser.h:129

Referenced by WndProc().

◆ InitInstance()

BOOL InitInstance ( HINSTANCE  hInstance,
int  nCmdShow 
)

Definition at line 133 of file fdebug.c.

134{
135 HWND hWnd;
136
137 hInst = hInstance; // Store instance handle in our global variable
138
141
142 if (!hWnd)
143 {
144 return FALSE;
145 }
146
147 hMainWnd = hWnd;
148
149 ShowWindow(hWnd, nCmdShow);
151
152 return TRUE;
153}
HWND hWnd
Definition: settings.c:17
#define WS_OVERLAPPEDWINDOW
Definition: pedump.c:637
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
#define CreateWindow
Definition: winuser.h:5754
BOOL WINAPI UpdateWindow(_In_ HWND)
#define CW_USEDEFAULT
Definition: winuser.h:225

Referenced by _tWinMain().

◆ MyRegisterClass()

ATOM MyRegisterClass ( HINSTANCE  hInstance)

Definition at line 97 of file fdebug.c.

98{
99 WNDCLASSEX wcex;
100
101 wcex.cbSize = sizeof(wcex);
102
103 wcex.style = CS_HREDRAW | CS_VREDRAW;
104 wcex.lpfnWndProc = WndProc;
105 wcex.cbClsExtra = 0;
106 wcex.cbWndExtra = 0;
107 wcex.hInstance = hInstance;
110 wcex.hbrBackground = NULL;//(HBRUSH)(COLOR_WINDOW+1);
116 16,
117 16,
118 LR_SHARED);
119
120 return RegisterClassEx(&wcex);
121}
#define IDI_FDEBUG
Definition: resource.h:11
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM)
Definition: fdebug.c:155
static HICON
Definition: imagelist.c:84
int cbClsExtra
Definition: winuser.h:3204
HINSTANCE hInstance
Definition: winuser.h:3206
HCURSOR hCursor
Definition: winuser.h:3208
LPCSTR lpszMenuName
Definition: winuser.h:3210
HICON hIconSm
Definition: winuser.h:3212
UINT style
Definition: winuser.h:3202
int cbWndExtra
Definition: winuser.h:3205
UINT cbSize
Definition: winuser.h:3201
WNDPROC lpfnWndProc
Definition: winuser.h:3203
LPCSTR lpszClassName
Definition: winuser.h:3211
HICON hIcon
Definition: winuser.h:3207
HBRUSH hbrBackground
Definition: winuser.h:3209
#define CS_VREDRAW
Definition: winuser.h:658
#define IMAGE_ICON
Definition: winuser.h:212
#define CS_HREDRAW
Definition: winuser.h:653
#define IDC_ARROW
Definition: winuser.h:687
#define RegisterClassEx
Definition: winuser.h:5837
#define LoadIcon
Definition: winuser.h:5813
#define LoadCursor
Definition: winuser.h:5812
#define LR_SHARED
Definition: winuser.h:1100
#define LoadImage
Definition: winuser.h:5815
#define MAKEINTRESOURCE
Definition: winuser.h:591

Referenced by _tWinMain().

◆ Rs232Thread()

VOID __cdecl Rs232Thread ( VOID Parameter)

Definition at line 442 of file fdebug.c.

443{
444 BYTE Byte;
446 MSG msg;
447 DWORD dwNumberOfBytesWritten;
448
450
452
454 {
455 MessageBox(hMainWnd, TEXT("Error opening port!"), TEXT("Error"), MB_OK|MB_ICONSTOP);
457 return;
458 }
459
460 _stprintf(String, TEXT("%s,n,8,1"), strBaudRate);
462 {
463 MessageBox(hMainWnd, TEXT("Error configuring port!"), TEXT("Error"), MB_OK|MB_ICONSTOP);
465 return;
466 }
467
468 while (bConnected)
469 {
470 if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
471 {
472 if (msg.message == WM_CHAR)
473 {
475
476 if (bLocalEcho && msg.wParam != (WPARAM)TEXT('\r'))
477 {
479
480 if (hCaptureFile)
481 {
482 WriteFile(hCaptureFile, &msg.wParam, sizeof(TCHAR), &dwNumberOfBytesWritten, NULL);
483 }
484 }
485 }
486 }
487
489 {
490 _stprintf(String, TEXT("%c"), Byte);
491
493
494 if (hCaptureFile)
495 {
496 WriteFile(hCaptureFile, &String[0], sizeof(TCHAR), &dwNumberOfBytesWritten, NULL);
497 }
498 }
499 }
500
501 dwThreadId = 0;
503}
unsigned char Byte
Definition: zlib.h:37
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
Definition: rw.c:24
BOOL Rs232OpenPortWin32(TCHAR *CommPort)
Definition: rs232.c:32
BOOL Rs232ClosePortWin32(VOID)
Definition: rs232.c:68
BOOL Rs232ReadByteWin32(BYTE *DataByte)
Definition: rs232.c:215
BOOL Rs232ConfigurePortWin32(TCHAR *DeviceControlString)
Definition: rs232.c:96
BOOL Rs232WriteByteWin32(BYTE DataByte)
Definition: rs232.c:240
HANDLE hCaptureFile
Definition: fdebug.c:30
DWORD dwThreadId
Definition: fdebug.c:31
HWND hDisplayWnd
Definition: fdebug.c:22
BOOL bConnected
Definition: fdebug.c:27
BOOL bLocalEcho
Definition: fdebug.c:29
unsigned long DWORD
Definition: ntddk_ex.h:95
#define TEXT(s)
Definition: k32.h:26
#define _stprintf
Definition: utility.h:124
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Definition: wdfdevice.h:2433
DWORD WINAPI GetCurrentThreadId(void)
Definition: thread.c:459
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
#define PM_REMOVE
Definition: winuser.h:1196
#define PeekMessage
Definition: winuser.h:5830
#define MB_OK
Definition: winuser.h:790
#define WM_CHAR
Definition: winuser.h:1717
#define PostMessage
Definition: winuser.h:5832
#define MessageBox
Definition: winuser.h:5822
#define MB_ICONSTOP
Definition: winuser.h:803
_Inout_opt_ PVOID Parameter
Definition: rtltypes.h:323
unsigned char BYTE
Definition: xxhash.c:193

Referenced by WndProc().

◆ WndProc()

LRESULT CALLBACK WndProc ( HWND  hWnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 155 of file fdebug.c.

156{
157 int wmId, wmEvent;
158 PAINTSTRUCT ps;
159 HDC hdc;
160 RECT rc;
161 TCHAR WndText[MAX_PATH];
162 DWORD Index;
163 NONCLIENTMETRICS ncm;
164 HFONT hFont;
165
166 switch (message)
167 {
168 case WM_CREATE:
169
172
173 ZeroMemory(&ncm, sizeof(ncm));
174 ncm.cbSize = sizeof(ncm);
175 SystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(ncm), &ncm, 0);
176
177 hFont = CreateFontIndirect(&ncm.lfMessageFont);
178
181
182 break;
183 case WM_COMMAND:
184 wmId = LOWORD(wParam);
185 wmEvent = HIWORD(wParam);
186
187 if (lParam == (LPARAM)hEditWnd && wmEvent == EN_CHANGE)
188 {
190
191 if (_tcslen(WndText) > 0)
192 {
194
195 if (!bConnected)
196 {
197 MessageBox(hWnd, TEXT("You are not currently connected!"), TEXT("Error"), MB_OK|MB_ICONSTOP);
198 break;
199 }
200
201 for (Index=0; Index<_tcslen(WndText); Index++)
202 {
203 if (dwThreadId != 0)
204 {
206 }
207 }
208 }
209 }
210
211 // Parse the menu selections:
212 switch (wmId)
213 {
214 case IDM_ABOUT:
216 break;
217 case IDM_EXIT:
219 break;
222 break;
223 case IDM_FILE_CONNECT:
224 if (bConnected)
225 {
226 MessageBox(hWnd, TEXT("You are already connected!"), TEXT("Error"), MB_OK|MB_ICONSTOP);
227 }
228 else
229 {
231 {
236 }
237 }
238 break;
240 if (bConnected)
241 {
245 }
246 else
247 {
248 MessageBox(hWnd, TEXT("You are not currently connected!"), TEXT("Error"), MB_OK|MB_ICONSTOP);
249 }
250 break;
253 {
258 }
259 break;
261 if (bCapturing)
262 {
268 }
269 break;
271 if (bLocalEcho)
272 {
275 }
276 else
277 {
280 }
281 break;
282 default:
284 }
285 break;
286 case WM_PAINT:
287 hdc = BeginPaint(hWnd, &ps);
288 (void)hdc; // FIXME
289 EndPaint(hWnd, &ps);
290 break;
291 case WM_SIZE:
292
293 GetClientRect(hWnd, &rc);
294
295 MoveWindow(hDisplayWnd, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top - 20, TRUE);
296 MoveWindow(hEditWnd, rc.left, rc.bottom - 20, rc.right - rc.left, 20, TRUE);
297
298 break;
299 case WM_DESTROY:
301 break;
302 default:
304 }
305 return 0;
306}
#define IDD_ABOUTBOX
Definition: resource.h:8
#define IDM_ABOUT
Definition: resource.h:29
#define IDM_EXIT
Definition: resource.h:27
HFONT hFont
Definition: main.c:53
#define IDD_CONNECTION
Definition: resource.h:15
#define IDM_FILE_STOPCAPTURE
Definition: resource.h:28
#define IDM_FILE_STARTCAPTURE
Definition: resource.h:27
#define IDM_FILE_CONNECT
Definition: resource.h:25
#define IDD_CAPTURE
Definition: resource.h:16
#define IDM_FILE_CLEARDISPLAY
Definition: resource.h:24
#define IDM_FILE_DISCONNECT
Definition: resource.h:26
#define CloseHandle
Definition: compat.h:739
#define FILE_ATTRIBUTE_NORMAL
Definition: compat.h:137
#define FILE_SHARE_READ
Definition: compat.h:136
VOID __cdecl Rs232Thread(VOID *Parameter)
Definition: fdebug.c:442
INT_PTR CALLBACK CaptureDialogProc(HWND, UINT, WPARAM, LPARAM)
Definition: fdebug.c:368
VOID CheckLocalEchoMenuItem(BOOL Checked)
Definition: fdebug.c:432
VOID EnableFileMenuItemByID(UINT Id, BOOL Enable)
Definition: fdebug.c:422
INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM)
Definition: fdebug.c:308
BOOL bCapturing
Definition: fdebug.c:28
INT_PTR CALLBACK ConnectionDialogProc(HWND, UINT, WPARAM, LPARAM)
Definition: fdebug.c:338
HWND hEditWnd
Definition: fdebug.c:23
#define OPEN_ALWAYS
Definition: disk.h:70
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:92
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
#define FILE_SHARE_WRITE
Definition: nt_native.h:681
#define FILE_APPEND_DATA
Definition: nt_native.h:634
#define WS_CHILD
Definition: pedump.c:617
#define WS_VSCROLL
Definition: pedump.c:627
#define ES_AUTOHSCROLL
Definition: pedump.c:672
#define WS_VISIBLE
Definition: pedump.c:620
#define ES_LEFT
Definition: pedump.c:664
#define WS_HSCROLL
Definition: pedump.c:628
#define ES_MULTILINE
Definition: pedump.c:667
#define DefWindowProc
Definition: ros2win.h:31
_CRTIMP uintptr_t __cdecl _beginthread(_In_ void(__cdecl *_StartAddress)(void *), _In_ unsigned _StackSize, _In_opt_ void *_ArgList)
LONG right
Definition: windef.h:308
LONG bottom
Definition: windef.h:309
LONG top
Definition: windef.h:307
LONG left
Definition: windef.h:306
#define HIWORD(l)
Definition: typedefs.h:247
_In_ WDFCOLLECTION _In_ ULONG Index
#define CreateFile
Definition: winbase.h:3749
#define CreateFontIndirect
Definition: wingdi.h:4444
#define WM_PAINT
Definition: winuser.h:1620
#define CreateWindowEx
Definition: winuser.h:5755
#define WM_CREATE
Definition: winuser.h:1608
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
#define WM_SIZE
Definition: winuser.h:1611
#define PostThreadMessage
Definition: winuser.h:5833
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
#define WM_SETFONT
Definition: winuser.h:1650
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
#define SendMessage
Definition: winuser.h:5843
#define WM_DESTROY
Definition: winuser.h:1609
#define WS_EX_CLIENTEDGE
Definition: winuser.h:384
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
#define SystemParametersInfo
Definition: winuser.h:5858
BOOL WINAPI DestroyWindow(_In_ HWND)
BOOL WINAPI MoveWindow(_In_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ BOOL)
#define DialogBox
Definition: winuser.h:5761
#define EN_CHANGE
Definition: winuser.h:2022
#define _tcslen
Definition: xmlstorage.h:198

Referenced by MyRegisterClass().

Variable Documentation

◆ bCapturing

BOOL bCapturing = FALSE

Definition at line 28 of file fdebug.c.

Referenced by WndProc().

◆ bConnected

◆ bLocalEcho

BOOL bLocalEcho = FALSE

Definition at line 29 of file fdebug.c.

Referenced by Rs232Thread(), and WndProc().

◆ dwThreadId

DWORD dwThreadId = 0

Definition at line 31 of file fdebug.c.

Referenced by CTipbarWnd::_CreateThread(), CTipbarWnd::_FindThread(), CTipbarWnd::AttachFocusThread(), CLBarInatItem::CLBarInatItem(), ContinueDebugEvent(), CreateServers(), CtfImmGetGuidAtom(), CtfImmIsGuidMapEnable(), DPLAYX_SetLobbyMsgThreadId(), CTipbarWnd::EnsureFocusThread(), EnumThreadWindows(), GDIOBJ_LockObject(), GDIOBJ_TryLockObject(), CTipbarWnd::GetFocusKeyboardLayout(), CTipbarWnd::GetItemFloatingRect(), GetThreadDesktop(), Imm32BuildHimcList(), Imm32InternalLockIMC(), Imm32MakeIMENotify(), ImmCallImeConsoleIME(), ImmDisableIME(), ImmDisableTextFrameService(), ImmEnumInputContext(), ImmGetImeMenuItemsAW(), ImmSetCompositionStringAW(), ImmSimulateHotKey(), ImmTranslateMessage(), CTipbarThread::Init(), InitDialog(), InitUniqueString(), InstallDrvDlgProc(), IntRegisterConsoleIME(), IntSetWindowsHook(), IntUnregisterConsoleIME(), JustDoIt(), main(), MarkThreadHandle(), MD_OnActivateApp(), MsiCloseAllHandles(), NtUserBuildHimcList(), NtUserBuildHwndList(), NtUserGetThreadDesktop(), CTipbarWnd::OnThreadItemChange(), CTipbarWnd::OnThreadTerminate(), CTipbarWnd::OnThreadTerminateInternal(), OpenThread(), PullPin_InitProcessing(), RemoveHandles(), Rs232Thread(), SaveThreadHandle(), SearchDrvDlgProc(), ServiceInit(), ServiceMain(), CTipbarWnd::SetFocusThread(), SetWindowsHookExA(), SetWindowsHookExW(), START_TEST(), CTipbarWnd::StartModalInput(), CUTBLangBarDlg::StartThread(), CTipbarWnd::StopModalInput(), test_ImmThreads(), test_pack_DEBUG_EVENT(), test_pack_PROCESS_INFORMATION(), TestMultipleUserAPCs(), User32EnumWindows(), UserGetKeyboardLayout(), wmain(), and WndProc().

◆ hCaptureFile

HANDLE hCaptureFile

Definition at line 30 of file fdebug.c.

Referenced by Rs232Thread(), and WndProc().

◆ hDisplayWnd

HWND hDisplayWnd

Definition at line 22 of file fdebug.c.

Referenced by Rs232Thread(), and WndProc().

◆ hEditWnd

HWND hEditWnd

Definition at line 23 of file fdebug.c.

Referenced by WndProc().

◆ hInst

HINSTANCE hInst

Definition at line 18 of file fdebug.c.

Referenced by About(), CaptureDialogProc(), InitInstance(), and WndProc().

◆ hMainWnd

HWND hMainWnd

◆ strBaudRate

TCHAR strBaudRate[MAX_PATH] = TEXT("115200")

Definition at line 25 of file fdebug.c.

Referenced by ConnectionDialogProc(), and Rs232Thread().

◆ strCaptureFileName

TCHAR strCaptureFileName[MAX_PATH] = TEXT("")

Definition at line 26 of file fdebug.c.

Referenced by CaptureDialogProc(), and WndProc().

◆ strComPort

TCHAR strComPort[MAX_PATH] = TEXT("COM1")

Definition at line 24 of file fdebug.c.

Referenced by ConnectionDialogProc(), and Rs232Thread().

◆ szTitle

Definition at line 19 of file fdebug.c.

Referenced by _tWinMain(), and InitInstance().

◆ szWindowClass

TCHAR szWindowClass[MAX_LOADSTRING]

Definition at line 20 of file fdebug.c.

Referenced by _tWinMain(), InitInstance(), and MyRegisterClass().