Share via

DCompositionWaitForCompositorClock

Gavin Williams 781 Reputation points
2023-08-02T14:02:55.6+00:00
uint waitResult;
do
{
    waitResult = DCompositionWaitForCompositorClock(1, null, 1000);
} while (waitResult == (uint)(0 + 1));

How can I get this code to sleep until the compositor frame (and what is that?) and also how can I get it to ignore the compositor signal and just sleep for 1 seconds (see the 1000 in timeOutInMS).

And how do I use HANDLE in C# to create events?

Windows for business | Windows Client for IT Pros | User experience | Other

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.