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.

72 lines
1.2 KiB

  1. #if !defined(INC__DUserHandleTable_h__INCLUDED)
  2. #define INC__DUserHandleTable_h__INCLUDED
  3. #pragma once
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. DECLARE_HANDLE(HHANDLETABLE);
  8. typedef void (CALLBACK * DESTROYHANDLEPROC)(void * pvData, void * pvObject);
  9. DUSER_API HRESULT WINAPI
  10. DUserHandleTableCreate(
  11. int cItemsPerGroupBits,
  12. int cGroupBits,
  13. HHANDLETABLE * phtbl);
  14. DUSER_API HRESULT WINAPI
  15. DUserHandleTableDestroy(
  16. HHANDLETABLE htbl);
  17. DUSER_API HRESULT WINAPI
  18. DUserHandleTableAddItem(
  19. HHANDLETABLE htbl,
  20. DWORD dwItemID,
  21. void * pvAdd);
  22. DUSER_API HRESULT WINAPI
  23. DUserHandleTableDeleteItem(
  24. HHANDLETABLE htbl,
  25. DWORD dwItemID);
  26. DUSER_API HRESULT WINAPI
  27. DUserHandleTableRemoveItem(
  28. HHANDLETABLE htbl,
  29. DWORD dwItemID);
  30. DUSER_API HRESULT WINAPI
  31. DUserHandleTableFindItem(
  32. HHANDLETABLE htbl,
  33. DWORD dwItemID,
  34. void ** ppvFound);
  35. DUSER_API HRESULT WINAPI
  36. DUserHandleTableAddGroup(
  37. HHANDLETABLE htbl,
  38. int idxGroup,
  39. DESTROYHANDLEPROC pfnDestroy,
  40. void * pvData);
  41. DUSER_API HRESULT WINAPI
  42. DUserHandleTableDeleteGroup(
  43. HHANDLETABLE htbl,
  44. int idxGroup);
  45. #ifdef __cplusplus
  46. }; // extern "C"
  47. #endif
  48. #endif // INC__DUserHandleTable_h__INCLUDED