If the API function asks for a parameter of a particular type, then you simply provide an object of that type (or an implicitely convertable equivalent type)
- because the WINAPI has a definition for that type - all you need
to do is include the appropriate API header file to get the type declaration/ structure members
(maybe I'm not explaining it well).
Most of the typenames used in windows are typedefs for variaous API structures, or other types.
If you want to find the original type/structure members/ and you use Visual Studio, just use intellisense or check the appropriate header file.
An experienced user of windows could actually guess what the original type is:
UINT is Unsigned INTeger.
LP is Long Pointer
LPUINT32 is a Long Pointer to 32 bit Unsigned INTeger.
Here are a few lines from the
winsnmp.h header file:
1 2 3 4 5
|
/* SNMP-related types */
#if ULONG_MAX == 4294967295U
typedef signed long smiINT, FAR *smiLPINT;
typedef smiINT smiINT32, FAR *smiLPINT32;
typedef unsigned long smiUINT32, FAR *smiLPUINT32;
|