IPresentationManager::GetPresentRetiringFence method (presentation.h)
Some information relates to a prerelease product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a fence that signals when a present is retiring.
HRESULT GetPresentRetiringFence( REFIID riid, void **fence );
A reference to the interface identifier (IID) of the interface being queried for.
The address of a pointer to an interface with the IID specified in the
If the function succeeds, it returns
S_OK; otherwise, it returns an
HRESULT value that indicates the error.
This fence will be signaled to the Present ID of each present when that present has begun retiring - that is, a subsequent present has been queued to take its place.