Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

GetCustomStruct method

  • Last UpdatedJul 23, 2024
  • 1 minute read

Returns the qualified struct stored in the MxValue.

Class

IMxValue

Syntax

[C#]

void GetCustomStruct(

out int pGuid,

out int pStructSize,

System.IntPtr pStruct

);

[Visual C++]

HRESULT GetCustomStruct(

[out] long *pGuid,

[out] long *pStructSize,

[out, size_is(,*pStructSize)] unsigned char **pStruct

);

Parameters

pGuid,

Receives the quasi-GUID that uniquely identifies this struct. The BRO does not validate the GUID.

pStructSize,

Receives the size of the struct held by the MxValue.

pStruct

Address of the pointer which will receive the struct. The caller must call CoTaskMemFree on pStruct when it is finished using it.

Returns

S_OK - Success.

MX_E_ConversionNotSupported - The stored value is not a qualified struct.

E_POINTER - An invalid pointer was passed in.

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in