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.

42 lines
989 B

  1. #ifndef __HANDLE_H__
  2. #define __HANDLE_H__
  3. /*****************************************************************************
  4. /* External macro definitions
  5. /*****************************************************************************/
  6. #define IS_VALID_DEVICE_HANDLE(handle) ((INVALID_HANDLE_VALUE != (handle)) && \
  7. (NULL != (handle)))
  8. #define MAX_NUM_HANDLES 16
  9. /*****************************************************************************
  10. /* External function declarations
  11. /*****************************************************************************/
  12. VOID
  13. HIDTest_InitDeviceHandles(
  14. IN DEVICE_STRING DeviceName,
  15. IN ULONG nAddlHandles,
  16. IN ULONG nCallerHandles,
  17. IN HANDLE *HandleList
  18. );
  19. VOID
  20. HIDTest_ResetDeviceHandles(
  21. VOID
  22. );
  23. BOOL
  24. HIDTest_GetDeviceHandle(
  25. HANDLE *Handle,
  26. BOOL *IsLegal
  27. );
  28. VOID
  29. HIDTest_CloseDeviceHandles(
  30. VOID
  31. );
  32. #endif