Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method assigns virtual function table (VTBL) offsets for virtual functions and instance offsets for per-instance data members.

Syntax

HRESULT LayOut(); 

Return Value

The following table shows the return values for this function.

Value Description

S_OK

Success.

STG_E_INSUFFICIENTMEMORY

Out of memory.

E_OUTOFMEMORY

Out of memory.

E_ACCESSDENIED

Cannot write to the destination.

TYPE_E_UNDEFINEDTYPE

Bound to unrecognized type.

TYPE_E_INVALIDSTATE

The state of the type library is not valid for this operation.

TYPE_E_WRONGTYPEKIND

Type mismatch.

TYPE_E_ELEMENTNOTFOUND

The element cannot be found.

TYPE_E_AMBIGUOUSNAME

More than one item exists with this name.

TYPE_E_SIZETOOBIG

The type information is too long.

TYPE_E_TYPEMISMATCH

Type mismatch.

Remarks

LayOutalso assigns member identifier numbers to the functions and variables, unless the TYPEKINDof the class is TKIND_DISPATCH. Call LayOutafter all members of the type information are defined, and before the type library is saved.

Other members of the ICreateTypeInfointerface should not be called after calling LayOut.

Different implementations of ICreateTypeInfoor other interfaces that create type information are free to assign any member identifier numbers, provided that all members (including inherited members), have unique identifiers. For examples, see the ICreateTypeInfo2interface.

Requirements

Header oaidl.h, oaidl.idl
Library oleaut32.lib, uuid.lib
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also