ICreateTypeInfo::SetAlignment

cbAlignment)
unsigned short cbAlignment

Parameters

cbAlignment

Alignment method for the type. A value of 0 indicates alignment on the 64K boundary; 1 indicates no special alignment. For other values, n indicates alignment on byte n.

Return Value

The SCODE value of the returned HRESULT is one of the following:

SCODE
Meaning
S_OK
Success.
STG_E_INSUFFICIENTMEMORY
Out of memory.
E_OUTOFMEMORY
Out of memory.
E_ACCESSDENIED
Can't write to destination.
TYPE_E_INVALIDSTATE
The type library's state is not valid for this operation.

Comments

Specifies the data alignment for an item of TYPEKIND=TKIND_RECORD. The alignment is the minimum of the natural alignment (for example, byte data on byte boundaries, word data on word boundaries, and so on) and the alignment denoted by cbAlignment.

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database