description | title | ms.date | ms.topic | f1_keywords | helpviewer_keywords | author | ms.author | manager | ms.subservice | dev_langs | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gets a list of custom viewers associated with this property. |
IDebugProperty3::GetCustomViewerList |
11/04/2016 |
reference |
|
|
maiak |
maiak |
mijacobs |
debug-diagnostics |
|
Gets a list of custom viewers associated with this property.
int GetCustomViewerList(
uint celtSkip,
uint celtRequested,
DEBUG_CUSTOM_VIEWER[] rgViewers,
out uint pceltFetched
);
HRESULT GetCustomViewerList(
ULONG celtSkip,
ULONG celtRequested,
DEBUG_CUSTOM_VIEWER* rgViewers,
ULONG* pceltFetched
);
celtSkip
[in] The number of viewers to skip over.
celtRequested
[in] The number of viewers to retrieve (also specifies the size of the rgViewers
array).
rgViewers
[in, out] Array of DEBUG_CUSTOM_VIEWER structures to be filled in.
pceltFetched
[out] The actual number of viewers returned.
If successful, returns S_OK
; otherwise, returns an error code.
To support type visualizers, this method forwards the call to the GetCustomViewerList method. If the expression evaluator also supports custom viewers for this property's type, this method can append the appropriate custom viewers to the list.
See Type Visualizer and Custom Viewer for details on the differences between type visualizers and custom viewers.
The following example shows how to implement this method for a CProperty object that exposes the IDebugProperty3 interface.
STDMETHODIMP CProperty::GetCustomViewerList(ULONG celtSkip, ULONG celtRequested, DEBUG_CUSTOM_VIEWER* prgViewers, ULONG* pceltFetched)
{
if (NULL == prgViewers)
{
return E_POINTER;
}
if (GetVisualizerService())
{
return m_pIEEVisualizerService->GetCustomViewerList(celtSkip, celtRequested, prgViewers, pceltFetched);
}
else
{
return E_NOTIMPL;
}
}