Page 1 of 1

SP_DEVICE_INTERFACE_DATA ... structure in PB ?

Posted: Fri Sep 30, 2005 7:23 pm
by bingo
a way to convert in pb ? :shock:

Code: Select all

typedef struct _SP_DEVICE_INTERFACE_DATA {

  DWORD cbSize;

  GUID InterfaceClassGuid;

  DWORD Flags;

  ULONG_PTR Reserved;
} SP_DEVICE_INTERFACE_DATA, 

*PSP_DEVICE_INTERFACE_DATA;
http://msdn.microsoft.com/library/defau ... ta_str.asp

Posted: Fri Sep 30, 2005 7:45 pm
by Trond

Code: Select all

Structure SP_DEVICE_INTERFACE_DATA
  cbSize.l
  InterfaceClassGuid.l
  Flags.l
  Reserved.l
EndStructure
EDIT: Better use netmaestro's code or you'll get a lot of problems and peeking and poking and allocatememory and I don't know what...

Posted: Fri Sep 30, 2005 7:53 pm
by netmaestro
I'm far from an authority on this kind of thing, so I really shouldn't be posting, but wouldn't it need to be like this:

Code: Select all

Structure SP_DEVICE_INTERFACE_DATA 
  cbSize.l 
  InterfaceClassGuid.GUID
  Flags.l 
  Reserved.l 
EndStructure

Posted: Fri Sep 30, 2005 10:08 pm
by fweil
You are right netmaestro, as the WIN32 API documentation says that GUID is a structure :

typedef struct _GUID {
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
} GUID;

typedef GUID UUID;