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.