Partager via


2.2.45 TLIBATTR

The TLIBATTR structure is used to specify the attributes of an ITypeLib server, as specified in section 3.11.4.

 typedef struct tagTLIBATTR {
   GUID guid;
   LCID lcid;
   SYSKIND syskind;
   unsigned short wMajorVerNum;
   unsigned short wMinorVerNum;
   unsigned short wLibFlags;
 } TLIBATTR,
  *LPTLIBATTR;

guid: MUST be set to the GUID of the automation scope that is associated with the ITypeLib server, as specified in section 2.2.49.1.

lcid: MUST be set to the LCID of the automation scope that is associated with the ITypeLib server, as specified in section 2.2.49.1.

syskind: MUST be set to a value of the SYSKIND enumeration, as specified in section 2.2.21.

The value of syskind specifies the system pointer-size value. If syskind is SYS_WIN32, the system pointer-size value is 4. If syskind is SYS_WIN64, the system pointer-size value is 8.

The system pointer-size value MUST be the size, in bytes, of the VT_INT_PTR and VT_UINT_PTR type variables created by the server (see section 2.2.7). It is used as a multiplier in the oVft field of a FUNCDESC (see section 2.2.42) and in the cbSizeVft field of a TYPEATTR (see section 2.2.44).

wMajorVerNum: MUST be set to the major version number of the automation scope that is associated with the ITypeLib server, as specified in section 2.2.49.2.

wMinorVerNum: MUST be set to the minor version number of the automation scope that is associated with the ITypeLib server, as specified in section 2.2.49.2.

wLibFlags: MUST be either a combination of the LIBFLAGS bit flags (as specified in section 2.2.20) or 0.