SetupDiGetDeviceInterfaceDetail

2006-02-16 Thread cafs
Hello all; I have a very rough beginnings of a script that I was creating to access HID devices through API. The following script was working on windows 98 but on XP, it fails when SetupDiGetDeviceInterfaceDetail is called. I am not sure if I am packing the required pointers correctly or if I am h

Packing variable or unknown structure

2005-06-02 Thread cafs
hello I am starting to learn how to import functions using Win32::API the following function outputs a pointer to a structure and I understand how to use perls pack to "build" the required structure. WINSETUPAPI BOOL WINAPI SetupDiEnumDeviceInfo( IN HDEVINFO DeviceInfoSet, IN DWORD Me

Win32::API LPTSTR

2005-05-20 Thread cafs
Not sure if this is a resend, I needed to subscribe to this list: I am trying to use Win32::API to import by prototype only; of the functions I have tried the ones with type LPTSTR fail; I would like to just use the prototypes because if its packing functions Win32::API::Struct and Win32::API::Type