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.

49 lines
963 B

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name :
  4. wtblobj.h
  5. Abstract:
  6. Manage a list of waitable objects and associated callbacks.
  7. Author:
  8. TadB
  9. Revision History:
  10. --*/
  11. #ifndef _WTBLOBJ_
  12. #define _WTBLOBJ_
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif // __cplusplus
  16. typedef VOID (*WTBLOBJ_ClientFunc)(HANDLE waitableObject, PVOID clientData);
  17. typedef VOID *WTBLOBJMGR;
  18. WTBLOBJMGR WTBLOBJ_CreateWaitableObjectMgr();
  19. VOID WTBLOBJ_DeleteWaitableObjectMgr(WTBLOBJMGR mgr);
  20. DWORD WTBLOBJ_AddWaitableObject(WTBLOBJMGR mgr, PVOID clientData,
  21. HANDLE waitableObject,
  22. IN WTBLOBJ_ClientFunc func);
  23. VOID WTBLOBJ_RemoveWaitableObject(WTBLOBJMGR mgr,
  24. HANDLE waitableObject);
  25. DWORD WTBLOBJ_PollWaitableObjects(WTBLOBJMGR mgr);
  26. #ifdef __cplusplus
  27. }
  28. #endif // __cplusplus
  29. #endif //#ifndef _WTBLOBJ_