Compiling a list of WinAPI types and their Purebasic equals

Everything else that doesn't fall into one of the other PB categories.
newbie
Enthusiast
Enthusiast
Posts: 296
Joined: Tue Jul 29, 2003 5:47 pm
Location: FRANCE
Contact:

Post by newbie »

I found this variable type on MSDN :

LARGE_INTEGER :
http://msdn.microsoft.com/library/defau ... er_str.asp

Is this value a QUAD ?
Or do we have to make the complex structure shown on the link above ?

EDIT : while I'm at it, in a C structure on MSDN I see :

Code: Select all

typedef struct {
    DWORD var1;
    PVOID myvar[constant_size];
} struct name
I know DWORD is a LONG in PureBasic, but I don't see what is the "PVOID myvar[constant_size]". They say it's a "pointer to an array of opaque data", and I don't understand if it's just a simple long pointer in PB "*my_pointer.l" or something more complex ?

Sometimes, I'm glad to use basic language :)

Thanks in advance for the answers ;)
- Registered PB user -

Using PB 4.00
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

PureBasic natively recognizes the LARGE_INTEGER structure, you can find it under tools-structure viewer. You can PeekQ and PokeQ values between this type and Quad, but you can't do direct assignments.
BERESHEIT
newbie
Enthusiast
Enthusiast
Posts: 296
Joined: Tue Jul 29, 2003 5:47 pm
Location: FRANCE
Contact:

Post by newbie »

Didn't see it, I thought it was another C++ extraterrestrial syntax :oops:
Thanks ;)
- Registered PB user -

Using PB 4.00
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

I know this is a kind of old thread. UINT32 is 4 bytes or 8 bytes? 4 I think from reading, what was the final decision....UNIT32 long?
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

UINT32 is a 4 Byte unsigned Long
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

Thanks ts-soft :)
Post Reply