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.

42 lines
1.0 KiB

  1. /*************************************************************************
  2. Include file for helpthd.cpp
  3. defines STACAKBLE_EVENT_INFO structure and GINFO (Global Info) structure
  4. *************************************************************************/
  5. typedef struct STACKABLE_EVENT_INFO *PSTACKABLE_EVENT_INFO;
  6. typedef struct STACKABLE_EVENT_INFO {
  7. enum Action {NewEvent, EndHelper};
  8. Action m_Action;
  9. DWORD event;
  10. HWND hwndMsg;
  11. LONG idObject;
  12. LONG idChild;
  13. DWORD idThread;
  14. DWORD dwmsEventTime;
  15. } STACKABLE_EVENT_INFO;
  16. typedef struct GINFO {
  17. CRITICAL_SECTION HelperCritSect;
  18. HANDLE hHelperEvent;
  19. HANDLE hHelperThread;
  20. CList EventInfoList;
  21. } GINFO;
  22. //
  23. // Function Prototypes
  24. //
  25. void InitHelperThread();
  26. void UnInitHelperThread();
  27. void AddEventInfoToStack(DWORD event, HWND hwndMsg, LONG idObject, LONG idChild, DWORD idThread, DWORD dwmsEventTime);
  28. BOOL RemoveInfoFromStack(STACKABLE_EVENT_INFO *pEventInfo);