Hi guys.
All functions I found about system power policy like PowerGetActiveScheme,PowerSetActiveScheme,etc are in user mode. Now I need the corresponding functions in kernel mode.Does anyone know how to do it?
Thanks.
I think there was some call to “raise the power state like User Is Present” or such in kmode.
As about the policy details - why do you need this in a driver? these details are set by Control Panel and by Group Policy, and people will be VERY much annoyed if they are overridden by some driver sometimes.
–
Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com
wrote in message news:xxxxx@ntdev…
> Hi guys.
> All functions I found about system power policy like PowerGetActiveScheme,PowerSetActiveScheme,etc are in user mode. Now I need the corresponding functions in kernel mode.Does anyone know how to do it?
> Thanks.
>
You can’t from km. What problem are you trying to solve?
d
Bent from my phone
From: msvisualcpp@163.commailto:msvisualcpp
Sent: ?11/?19/?2013 2:15 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: [ntdev] Anyone knows how to set power scheme in kernel mode?
Hi guys.
All functions I found about system power policy like PowerGetActiveScheme,PowerSetActiveScheme,etc are in user mode. Now I need the corresponding functions in kernel mode.Does anyone know how to do it?
Thanks.
—
NTDEV is sponsored by OSR
Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
OSR is HIRING!! See http://www.osr.com/careers
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:msvisualcpp>
I need to set processor power policy. My driver is composed of only one sys file whithout any exes, so I have to set it in kernel mode. I’ve found a function CallNtPowerInformation, but ProcessorPowerPolicy is not supported.
Processor power policy belongs to the user. Why do you think your driver shpidl set it?
d
Bent from my phone
From: msvisualcpp@163.commailto:msvisualcpp
Sent: ?11/?19/?2013 6:10 PM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: RE:[ntdev] Anyone knows how to set power scheme in kernel mode?
I need to set processor power policy. My driver is composed of only one sys file whithout any exes, so I have to set it in kernel mode. I’ve found a function CallNtPowerInformation, but ProcessorPowerPolicy is not supported.
—
NTDEV is sponsored by OSR
Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
OSR is HIRING!! See http://www.osr.com/careers
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:msvisualcpp>
I don’t know if you’ve noticed that unlike SystemPowerPolicy,
ProcessorPowerPolicy is not included in PowerOptions of control panel.
So if the user wanted to set this policy, I have to provide the function.
*From*: Doron Holan
Sent: Wed, 20 Nov 2013 03:32:43 +0000
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Anyone knows how to set power scheme in kernel mode?
> Processor power policy belongs to the user. Why do you think your
> driver shpidl set it?
>
> d
>
> Bent from my phone
> ------------------------------------------------------------------------
> From: msvisualcpp@163.com mailto:msvisualcpp
> Sent: ý11/ý19/ý2013 6:10 PM
> To: Windows System Software Devs Interest List
> mailto:xxxxx
> Subject: RE:[ntdev] Anyone knows how to set power scheme in kernel mode?
>
> I need to set processor power policy. My driver is composed of only
> one sys file whithout any exes, so I have to set it in kernel mode.
> I’ve found a function CallNtPowerInformation, but ProcessorPowerPolicy
> is not supported.
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
> http:
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer</http:></mailto:xxxxx></mailto:msvisualcpp>
Not in km
d
Bent from my phone
From: msvcmailto:msvisualcpp
Sent: ?11/?19/?2013 7:51 PM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: Re: [ntdev] Anyone knows how to set power scheme in kernel mode?
I don’t know if you’ve noticed that unlike SystemPowerPolicy, ProcessorPowerPolicy is not included in PowerOptions of control panel. So if the user wanted to set this policy, I have to provide the function.
From: Doron Holan mailto:xxxxx
Sent: Wed, 20 Nov 2013 03:32:43 +0000
To: Windows System Software Devs Interest List mailto:xxxxx
Subject: RE: [ntdev] Anyone knows how to set power scheme in kernel mode?
Processor power policy belongs to the user. Why do you think your driver shpidl set it?
d
Bent from my phone
From: msvisualcpp@163.commailto:msvisualcpp
Sent: ?11/?19/?2013 6:10 PM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: RE:[ntdev] Anyone knows how to set power scheme in kernel mode?
I need to set processor power policy. My driver is composed of only one sys file whithout any exes, so I have to set it in kernel mode. I’ve found a function CallNtPowerInformation, but ProcessorPowerPolicy is not supported.
—
NTDEV is sponsored by OSR
Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
OSR is HIRING!! See http://www.osr.com/careers
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
—
NTDEV is sponsored by OSR
Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
OSR is HIRING!! See http://www.osr.com/careers
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
—
NTDEV is sponsored by OSR
Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
OSR is HIRING!! See http://www.osr.com/careers
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:msvisualcpp></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:msvisualcpp>