Static extern IntPtr PowerCreateRequest(ref POWER_REQUEST_CONTEXT Context) POWER_REQUEST_CONTEXT _PowerRequestContext #region prevent screensaver, display dimming and automatically sleeping With the linked AvailabilityRequests.docx on msdn which is exhausting to get into it (too much to read), I have searched the web for a concrete example in c# that is based on the PowerCreateRequest and found Ĭopied and adapted it to my needs (PInvoke of CloseHandle copied from msdn): using "Using PowerCreateRequest, PowerSetRequest, and PowerClearRequest
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |