mirror of https://github.com/tongzx/nt5src
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
42 lines
989 B
#ifndef __HANDLE_H__
|
|
#define __HANDLE_H__
|
|
|
|
/*****************************************************************************
|
|
/* External macro definitions
|
|
/*****************************************************************************/
|
|
|
|
#define IS_VALID_DEVICE_HANDLE(handle) ((INVALID_HANDLE_VALUE != (handle)) && \
|
|
(NULL != (handle)))
|
|
|
|
#define MAX_NUM_HANDLES 16
|
|
|
|
|
|
/*****************************************************************************
|
|
/* External function declarations
|
|
/*****************************************************************************/
|
|
|
|
VOID
|
|
HIDTest_InitDeviceHandles(
|
|
IN DEVICE_STRING DeviceName,
|
|
IN ULONG nAddlHandles,
|
|
IN ULONG nCallerHandles,
|
|
IN HANDLE *HandleList
|
|
);
|
|
|
|
VOID
|
|
HIDTest_ResetDeviceHandles(
|
|
VOID
|
|
);
|
|
|
|
BOOL
|
|
HIDTest_GetDeviceHandle(
|
|
HANDLE *Handle,
|
|
BOOL *IsLegal
|
|
);
|
|
|
|
VOID
|
|
HIDTest_CloseDeviceHandles(
|
|
VOID
|
|
);
|
|
|
|
#endif
|