GitHub    Download    Forum
Overview
Tutorial
C++ API
General interfaces
Data interfaces
UDomain
GetSchemaData
GetSchemaVersion
QueryNamedObject
QueryNamedObjectId
QueryNamedObjectLink
QueryNamedObjectMultiple
QueryStorage
UStorage
UObject
UList
UBitFlagSet
UBitFlagSetSingle
WDomain
WObject
IEventClient
Schema interfaces
Configuration interfaces
Structures
Error codes
C# API
DTDL
DADL
Setup

UDomain::QueryStorage

Provides an interface to a storage instance.

Syntax

HRESULT QueryStorage(
[in, out] UStorage** p_ppStorage,
[out] UINT32* p_pulSchemaVersion,
[in] UINT32 p_ulStorageId,
[in] ISystemCallback* p_pCallback
);

Parameter

p_ppStorage [in, out]
Type: UStorage**
Pointer to a variable that receives the requested interface pointer.
This variable must be set to NULL before calling this function. Otherwise, the call will fail.
The variable contains the interface pointer on successful return. The variable is not modified on failure.
Call Release on the pointer when you no longer need it.
p_pulSchemaVersion [out]
Type: UINT32*
p_pulSchemaVersion contains the current version of the schema on successful return.
See TSchema functions for further information.
p_ulStorageId [in]
Type: UINT32
ID of the storage that the interface is requested of.
p_pCallback [in]
Type: ISystemCallback*
Pointer to a callback interface that receives notifications about the storage.

Return value

S_OK or an error from the Error Codes.

Remarks

Call Release on the UStorage interface when you no longer need it.
© 2022 Mobiland AG