Source code of Windows XP (NT5)
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.

67 lines
1.9 KiB

  1. #define SHOW_FUNC_ENTRY 0x00000001
  2. #define SHOW_PARAMETERS 0x00000002
  3. #define SHOW_FUNC_EXIT 0x00000004
  4. #define SHOW_EVENT_NOTIFICATIONS 0x00000008
  5. #define SHOW_COMPLETION_NOTIFICATIONS 0x00000010
  6. #define MANUAL_RESULTS 0x00000020
  7. #define DEF_DEBUG_OPTIONS SHOW_FUNC_ENTRY
  8. #define COMPLETE_ASYNC_EVENTS_SYNCHRONOUSLY 0L
  9. #define COMPLETE_ASYNC_EVENTS_ASYNCHRONOUSLY 1L
  10. #define COMPLETE_ASYNC_EVENTS_SYNC_AND_ASYNC 2L
  11. #define COMPLETE_ASYNC_EVENTS_MANUALLY 3L
  12. #define DEF_COMPLETION_MODE 2L
  13. #define DEF_NUM_LINES 3
  14. #define DEF_NUM_ADDRS_PER_LINE 2
  15. #define DEF_NUM_CALLS_PER_ADDR 1
  16. #define DEF_NUM_PHONES 2
  17. #define DEF_SPI_VERSION 0x20000
  18. #define WIDGETTYPE_LINE 0L
  19. #define WIDGETTYPE_CALL 1L
  20. #define WIDGETTYPE_PHONE 2L
  21. #define WIDGETTYPE_ASYNCREQUEST 3L
  22. #define WIDGETTYPE_STARTUP 4L
  23. typedef struct _WIDGETEVENT
  24. {
  25. ULONG_PTR dwWidgetID;
  26. ULONG_PTR dwWidgetType; // WIDGETYPE_*
  27. union
  28. {
  29. ULONG_PTR hdXxx; // hdXxx (NULL for AsyncReq)
  30. ULONG_PTR dwNumLines;
  31. ULONG_PTR pAsyncReqInfo;
  32. };
  33. union
  34. {
  35. ULONG_PTR htXxx; // htXxx (NULL for AsyncReq)
  36. ULONG_PTR dwNumPhones;
  37. };
  38. union
  39. {
  40. ULONG_PTR dwCallState;
  41. ULONG_PTR dwRequestType; // func ord for lookup
  42. ULONG_PTR dwLineDeviceIDBase;
  43. };
  44. union
  45. {
  46. ULONG_PTR dwCallAddressID;
  47. ULONG_PTR dwPhoneDeviceIDBase;
  48. };
  49. } WIDGETEVENT, *PWIDGETEVENT;