Microsoft SDK for Java

Marshaling Basic Scalar Types

The basic scalar types are mapped straightforwardly.

Basic Scalar Types

Java type DLL
int Signed 32-bit integer.
byte Signed 8-bit integer.
short Signed 16-bit integer.
long Signed 64-bit integer.
float 32-bit float.
double 64-bit double.
DWORD Unsigned 32-bit integer.
LPDWORD Maps to a Java type integer array (int[]).

Java represents unsigned integer types by using the signed types as a two's complement. For example, the integer type can be used without loss of representation for the common DWORD (unsigned 32-bit) type.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.