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.

40 lines
971 B

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