SDK Data Types

Discussion about using the VirtualBox API, Tutorials, Samples.
Post Reply
SmithersTheOracle
Posts: 60
Joined: 28. Dec 2019, 08:58
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows, Linux

SDK Data Types

Post by SmithersTheOracle »

Is there a definition of data types in the SDKRef?

Example: The SDKRef shows IMedium::createBaseStorage() wanting a long long for logicalSize. I'm not sure if this is unsigned or not. If I pass this an uint64 will it possibly fail? Should I use an uint32 instead?

I apologize if this is, in fact, defined somewhere in the SDKRef but I can't find it.
Zrax0111
Posts: 15
Joined: 17. Dec 2013, 21:23

Re: SDK Data Types

Post by Zrax0111 »

The long long specified in the manual refers to LONG64 on Windows and PRInt64 on XPCOM... If they were unsigned, I expect they would show up as `unsigned long long`, but I don't see any examples of that in the manual. However, there are many cases of `unsigned long` (32-bit) in the manual, so it makes sense that it would follow suit.
SmithersTheOracle
Posts: 60
Joined: 28. Dec 2019, 08:58
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: SDK Data Types

Post by SmithersTheOracle »

Perfect thanks. I figured as much, but some languages can even vary between their own versions. I've also noticed there's an occasional difference between what the SDKRef says and what's defined in the wsdl. I don't think any of my functions are in danger of being memory hogs yet though, so really I'm just being picky. :oops:
Post Reply