Some structures have fixed size strings embedded in them. The LOGFONT structure is defined as follows:
typedef struct {
LONG lfHeight;
LONG lfWidth;
/* <many other fields deleted for brevity> */
TCHAR lfFaceName[32];
} LOGFONT;
This structure can be expressed in Java using an extension syntax to specify the size:
/** @dll.struct() */
class LOGFONT {
int lfHeight;
int lfWidth;
/* <many other fields deleted for brevity> */
/** @dll.structmap([type=TCHAR[32]]) */
String lfFaceName;
}
The @dll.structmap directive indicates the size of the fixed string as measured in characters (including space for the null terminator).
For more information, see Fixed-size Scalar Arrays Embedded within Structures.