This is not distibuted with MASM32? Where can i find the includes and libs for IPortableDevices::etc? Thanks
Don't think there would be an import library for this, its COM only as far as I know though there might be a couple of helper functions. There is no include file I know of for MASM but you can translate the C/C++ header files PortableDeviceApi.h and PortableDevice.h to get the interface definitions, the Property Keys and enumerations you need.
I found it in the sdk. But no include file as you say. This is not so easy to translate donkey. At least for me. It has macros. I'm trying to use ToutEnMasm's ready to use sdk but it's either way kinda hard. There's always errors. Thanks donks.
Hi xandaz,
Having translated hundreds of header files from C++ to asm format I know how you feel, good luck with it.
I solved using just what i needed. But now i don't know the include file that has CLSID_PortableDeviceManager. What is it? do you know?
Quote from: xandaz on March 18, 2012, 06:30:20 PM
I solved using just what i needed. But now i don't know the include file that has CLSID_PortableDeviceManager. What is it? do you know?
Its in PortableDeviceApi.h, defined as follows:
EXTERN_C const CLSID CLSID_PortableDeviceManager;
#ifdef __cplusplus
class DECLSPEC_UUID("0af10cec-2ecd-4b92-9581-34f6ae0637f3")
PortableDeviceManager;
#endif
To use it you can do the following
CLSID_PortableDeviceManager GUID <0af10cech,02ecdh,04b92h,<095h,081h,034h,0f6h,0aeh,006h,037h,0f3h>>
or whatever MASM syntax is for it.
Thanks donkey.