Export (0) Print
Expand All

IMemoryCacheControl::GetMaxAllowedSize 

Call this method to retrieve the maximum size of the entries currently allowed in the cache.


STDMETHOD(GetMaxAllowedSize)(
   DWORD * pdwSize 
);

Parameters

pdwSize

[out] Address of the DWORD variable that, on success, receives the maximum size of the entries currently allowed in the cache.

Returns S_OK on success, or an error HRESULT on failure.

See SetMaxAllowedSize for details.

[ tag_name(name = "GetMaxAllowedSize") ]
HTTP_CODE OnGetMaxAllowedSize(void)
{
    DWORD dw;

    if (FAILED(m_spControl->GetMaxAllowedSize(&dw)))
    {
        return HTTP_FAIL;
    }

    if (!m_HttpResponse.Write(dw))
    {
        return HTTP_FAIL;
    }

    return HTTP_SUCCESS;
}

Community Additions

ADD
Show:
© 2015 Microsoft