windows-nt/Source/XPSP1/NT/com/oleutest/perf/perfsrv/wterm.h

41 lines
931 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#ifndef __WTERM__
#define __WTERM__
// Message to print a line on the window
#define WM_PRINT_LINE (WM_USER + 1)
// Message to print a character on the window
#define WM_PUTC (WM_USER + 2)
// Message used to terminate this window
#define WM_TERM_WND (WM_USER + 3)
//
// Typedefs for call back functions for the window
//
typedef long (*MFUNCP)(HWND, UINT, WPARAM, LPARAM, void *);
typedef long (*CFUNCP)(HWND, UINT, WPARAM, LPARAM, void *);
typedef long (*TFUNCP)(HWND, UINT, WPARAM, LPARAM, void *);
// Register the terminal window class
BOOL TermRegisterClass(
HANDLE hInstance,
LPTSTR MenuName,
LPTSTR ClassName,
LPTSTR ICON);
// Create a window for the terminal
BOOL
TermCreateWindow(
LPTSTR lpClassName,
LPTSTR lpWindowName,
HMENU hMenu,
MFUNCP MenuProc,
CFUNCP CharProc,
TFUNCP CloseProc,
int nCmdShow,
HWND *phNewWindow,
void *pvCallBackData);
#endif // __WTERM__