If you want to use the Win32 API within PowerBuilder, you have to know the prototype modul. The following list is not an exhaustive list of all C and C++ to PowerBuilder Datatype but most of the common Datatype that I've used over the years of interfacing PowerBuilder and C/C++ programs. There are two lists, the first is PowerBuilder to C++ Datatype, useful for the C Proxy Generator. Then there is a list of C/C++ to PowerBuilder Datatype useful for people writing DLL's and the like:

PowerBuilder DatatypeC/C++ Datatype
BlobPBBlob
Booleanint
Characterchar
DatePBDate
DateTimePBDateTime
DecimalPBDecimal
Doubledouble
Integerint
Realfloat
StringPBString
TimePBTime
UnSignedIntegerunsigned int

C/C++ DatatypePowerBuilder Datatype
BOOLBoolean
WORDUnSignedInteger
DWORDUnSignedLong
HANDLEUnSignedLong
HWNDUnSignedLong
LPSTRString Ref
LPBYTEString Ref
LPINTLong Ref
charBlob {1}
intInteger
unsigned intUnsignedInt
longLong
ULONG/unsigned longUnsignedLong
doubleDouble
char *String Ref