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.

95 lines
4.6 KiB

  1. /*---------------------------------------------------------*\
  2. | |
  3. | TESTING.H |
  4. | |
  5. | Testing's very own include file! |
  6. \*---------------------------------------------------------*/
  7. /* This has all of the defines for the wParam and lParam that go along with
  8. * the WM_TESTING message
  9. */
  10. /* wParam defines - Area
  11. */
  12. #define TEST_PRINTMAN 0x0001
  13. #define TEST_GDI 0x0002
  14. /* lParam defines - Details (in LOWORD)
  15. */
  16. #define TEST_PRINTJOB_START 0x0001 /* when bits start going to the port */
  17. #define TEST_PRINTJOB_END 0x0002 /* when bits stop going to the port */
  18. #define TEST_QUEUE_READY 0x0003 /* when the queue is ready to accept a job */
  19. #define TEST_QUEUE_EMPTY 0x0004 /* when the last job is done being sent */
  20. #define TEST_START_DOC 0x0001 /* print job is started */
  21. #define TEST_END_DOC 0x0002 /* print job is ended */
  22. /* Defines for UserSeeUserDo and GDISeeGDIDo functions
  23. */
  24. LONG API UserSeeUserDo(WORD wMsg, WORD wParam, LONG lParam);
  25. LONG API GDISeeGDIDo(WORD wMsg, WORD wParam, LONG lParam);
  26. /* Defines for the various messages one can pass for the SeeDo functions.
  27. */
  28. #define SD_LOCALALLOC 0x0001 /* Alloc using flags wParam and lParam bytes.
  29. * Returns handle to data.
  30. */
  31. #define SD_LOCALFREE 0x0002 /* Free the memory allocated by handle wParam
  32. */
  33. #define SD_LOCALCOMPACT 0x0003 /* Return the number of free bytes available
  34. */
  35. #define SD_GETUSERMENUHEAP 0x0004 /* Return the handle to the far menu heap
  36. * maintained by user.
  37. */
  38. #define SD_GETCLASSHEADPTR 0x0005 /* Return the near pointer to the head of
  39. * the linked list of CLS structures.
  40. * Interface: wParam = NULL; lParam = NULL;
  41. */
  42. #define SD_GETUSERHWNDHEAP 0x0006 /* Return the handle to the far window heap
  43. * maintained by user.
  44. */
  45. #define SD_GETGDIHEAP 0x0007 /* Return the handle to the far heap
  46. * maintained by gdi.
  47. */
  48. #define SD_GETPDCEFIRST 0x0008 /* Returns USER's head of dc cache entry list */
  49. #define SD_GETHWNDDESKTOP 0x0009 /* Returns USER's head of window tree */
  50. #define SD_LOCAL32ALLOC 0x000A /* Allocs mem from 32-bit heap.
  51. * wParam = heap (0=Window/GDI, 1=Menu)
  52. * lParam = amount of memory to allocate.
  53. * returns handle of memory
  54. */
  55. #define SD_LOCAL32FREE 0x000B /* Frees mem allocated by SD_LOCAL32ALLOC.
  56. * wParam = heap (0=Window/GDI, 1=Menu)
  57. * lParam = handle
  58. * returns nothing.
  59. */
  60. #define SD_GETSAFEMODE 0x000C /* Returns GDI's safe mode setting.
  61. * 0 = full acceleration
  62. * 1 = minimal acceleration
  63. * 2 = no acceleration
  64. * If the user requests safe mode but the
  65. * display driver doesn't support it the
  66. * safe mode setting will be 0
  67. */
  68. #define SD_GETESIEDIPTRS 0x000D /* Returns a bit array indicating which
  69. * display driver DDIs have trashed esi or
  70. * edi. This only works in DEBUG. In RETAIL
  71. * this function will return 0.
  72. *
  73. * Each DDI uses two bits in the bit array
  74. * that indicate if esi, edi, resp. have been
  75. * trashed. The table is 32 bytes long.
  76. *
  77. * For the DCT tests make sure all 32 bytes
  78. * are 0.
  79. */