SP_DEVICE_INTERFACE_DATA ... structure in PB ?

Windows specific forum
User avatar
bingo
Enthusiast
Enthusiast
Posts: 210
Joined: Fri Apr 02, 2004 12:21 pm
Location: germany/thueringen
Contact:

SP_DEVICE_INTERFACE_DATA ... structure in PB ?

Post 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
["1:0>1"]
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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...
Last edited by Trond on Fri Sep 30, 2005 8:35 pm, edited 1 time in total.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8452
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post 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
BERESHEIT
fweil
Enthusiast
Enthusiast
Posts: 725
Joined: Thu Apr 22, 2004 5:56 pm
Location: France
Contact:

Post 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;
My avatar is a small copy of the 4x1.8m image I created and exposed at 'Le salon international du meuble à Paris' january 2004 in Matt Sindall's 'Shades' designers exhibition. The original laminated print was designed using a 150 dpi printout.
Post Reply