Say, if I created a waitable timer using CreateWaitableTimer API and then set it using SetWaitableTimer. Can I find out when that timer will fire only by the HANDLE returned by the first API?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No you can’t.
But there is nothing preventing you from creating a wrapper object that will publish a similar API, record the target time (by adding the due time to the current time when
SetWaitableTimeris called), and provide the outstanding time to you as a difference between the current time when the query method is called, and the target time.