阅读:2756回复:0
HidD_GetManufacturerString的返回字符串最大是多少啊?
BOOLEAN
HidD_GetManufacturerString( IN HANDLE HidDeviceObject, OUT PVOID Buffer, IN ULONG BufferLength ); Parameters HidDeviceObject Specifies an open handle to a top-level collection. Buffer Pointer to a caller-allocated buffer that the routine uses to return the collection's manufacturer string. The routine returns a NULL-terminated wide character string in a human-readable format. BufferLength Specifies the length, in bytes, of a caller-allocated buffer provided at Buffer. If the buffer is not large enough to return the entire NULL-terminated embedded string, the routine returns nothing in the buffer. Return Value HidD_HidD_GetManufacturerString returns TRUE if it returns the entire NULL-terminated embedded string. Otherwise, the routine returns FALSE. Headers Declared in hidsdi.h. Include hidsdi.h. 我想用到512个字节不知道可以达到否,请指点下? |
|
|