| title | IGlobalRSCAQueryProvider::SetResult Method |
|---|---|
| description | Learn how the IGlobalRSCAQueryProvider::SetResult method finalizes the internal buffer, as well as details about its parameters and requirements. |
| ms.date | 10/07/2016 |
| ms.assetid | 03b046ec-abf6-1e86-0a8e-7a08bfecf54e |
Finalizes the internal buffer.
virtual VOID SetResult(
DWORD cbData,
HRESULT hr
) = 0; cbData
A DWORD that contains the data size, in bytes, of the internal buffer.
hr
An HRESULT that indicates whether the internal buffer is valid.
CGlobalModule derived classes that register for GL_RSCA_QUERY events receive an IGlobalRscaQueryProvider pointer as a parameter on the CGlobalModule::OnGlobalRSCAQueryvirtual method. You can then validate or invalidate the internal buffer by calling the SetResult method on the IGlobalRSCAQueryProvider pointer.
SetResult behavior depends on implementation. You should use the following information as a guideline, but it may not be correct in all scenarios:
-
The
IGlobalRSCAQueryProviderimplementer declaresprivatemember variables for the size of an internal buffer, anHRESULTthat indicates whether the buffer is valid, and a Boolean flag that indicates whetherSetResulthas been called. The default values at construction of the implementer are 0, E_NOTIMPL, andfalse, respectively. -
After you call the GetOutputBuffer or ResizeOutputBuffer method, call
SetResultto validate or invalidate the internal buffer by passing the size of the buffer, in bytes, and anHRESULTvalue that indicates whether the buffer is valid.Important This method is part of the [!INCLUDEiisver] infrastructure and is not intended to be used directly from your code.
| Type | Description |
|---|---|
| Client | - IIS 7.0 on [!INCLUDEwinvista] - IIS 7.5 on Windows 7 - IIS 8.0 on Windows 8 - IIS 10.0 on Windows 10 |
| Server | - IIS 7.0 on [!INCLUDEwinsrv2008] - IIS 7.5 on Windows Server 2008 R2 - IIS 8.0 on Windows Server 2012 - IIS 8.5 on Windows Server 2012 R2 - IIS 10.0 on Windows Server 2016 |
| Product | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 - [!INCLUDEiisexp75], [!INCLUDEiisexp80], [!INCLUDEiisexp100] |
| Header | Httpserv.h |