Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.2 KiB

  1. #ifndef __WTERM__
  2. #define __WTERM__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif // __cplusplus
  6. // Message to print a line on the window
  7. #define WM_PRINT_LINE (WM_USER + 1)
  8. // Message to print a character on the window
  9. #define WM_PUTC (WM_USER + 2)
  10. // Message used to terminate this window
  11. #define WM_TERM_WND (WM_USER + 3)
  12. //
  13. // Typedefs for call back functions for the window
  14. //
  15. typedef long (*MFUNCP)(HWND, UINT, WPARAM, LPARAM, void *);
  16. typedef long (*CFUNCP)(HWND, UINT, WPARAM, LPARAM, void *);
  17. typedef long (*TFUNCP)(HWND, UINT, WPARAM, LPARAM, void *);
  18. // Register the terminal window class
  19. BOOL TermRegisterClass(
  20. HANDLE hInstance,
  21. LPTSTR MenuName,
  22. LPTSTR ClassName,
  23. LPTSTR ICON);
  24. // Create a window for the terminal
  25. BOOL
  26. TermCreateWindow(
  27. LPTSTR lpClassName,
  28. LPTSTR lpWindowName,
  29. HMENU hMenu,
  30. MFUNCP MenuProc,
  31. CFUNCP CharProc,
  32. TFUNCP CloseProc,
  33. int nCmdShow,
  34. HWND *phNewWindow,
  35. void *pvCallBackData);
  36. // make the window for the server
  37. void
  38. MakeTheWindow(
  39. HANDLE hInstance,
  40. TCHAR *pwszAppName);
  41. extern HWND g_hMain;
  42. #ifdef __cplusplus
  43. }
  44. #endif // __cplusplus
  45. #endif // __WTERM__