GitHub    Download    Forum
Overview
Tutorial
C++ API
General interfaces
Data interfaces
Schema interfaces
TSchema
Schema_Create
Schema_Destroy
AddDelta
FindClassInfo
GetSchemaVersion
LoadFromFile
LoadFromMemory
StoreToFile
StoreToMemory
USchemaEdit
Configuration interfaces
Structures
Error codes
C# API
DTDL
DADL
Setup

TSchema::FindClassInfo

Function to find the local classid from a global classid.

Syntax

HRESULT FindClassInfo(
[out] UINT32* p_pulClassId,
[out] UINT16* p_pusAttributesCount,
[in] const GUID* p_pguidGlobalId
) const;

Parameter

p_pulClassId [out]
Type: UINT32*
Pointer to a variable that receives the local classid of the class.
p_pusAttributesCount [out]
Type: UINT16*
Pointer to a variable that receives the count of attributes of the class.
p_pguidGlobalId [in]
Type: const GUID*
Pointer to the global classid.

Return value

S_OK or an error from the Error Codes.

Remarks

Classes and attributes are identified by their local classid and full attributeid.
A full attributeid is a UINT64 with the high 32 bits set to the local classid and the low 32 bits set to the attributeid (the index of the attribute in the class).
A full attributeid can be built using the FULLATTRIBUTEID macro.
© 2022 Mobiland AG