added the IHeapConfiguration interface to be able to tweak the active-dirty

ratio parameter
This commit is contained in:
Eric J. Bowersox
2013-06-09 22:10:45 -06:00
parent 682aa60c01
commit 4e8ee9ab65
3 changed files with 129 additions and 0 deletions

View File

@@ -86,3 +86,16 @@ interface IChunkAllocator: IUnknown
HRESULT FreeChunk([in] PVOID pvChunk, [in] UINT32 cbChunk);
HRESULT PurgeUnusedRegion([in] PVOID pvRegion, [in] UINT32 cbRegion);
}
/*------------------------------
* IHeapConfiguration interface
*------------------------------
*/
[object, uuid(c867272d-6a5d-4e43-9377-ddc65f82c0e1), pointer_default(unique)]
interface IHeapConfiguration: IUnknown
{
[unique] typedef IHeapConfiguration *PHEAPCONFIGURATION;
HRESULT GetActiveDirtyRatio([out] SSIZE_T *pcbRatio);
HRESULT SetActiveDirtyRatio([in] SSIZE_T cbRatio);
}