Re: Regarding the Power Management API
- From: Vinoth <vinoth@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 27 Nov 2007 23:39:01 -0800
Thank you Paul.I will try your idea
--
vinoth.R
Technical Lead
e-consystems India Pvt Ltd
www.e-consystems.com
"Paul G. Tobey [eMVP]" wrote:
My first idea is that this is a really strange thing to do. Why? All that.
does is make your power manager non-standard (and potentially means that,
when Microsoft decides to use that API entry, your code breaks
spectacularly). Why not just create a DLL that implements the API that you
like and have anyone who wants to use it, include a header file and link
with an import library? At least it's portable... Or just code into your
program the right set of steps. In that case, you don't need some extra
DLL, you don't need a custom kernel, you don't need anything.
Paul T.
"Vinoth" <vinoth@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:42FF8338-170C-4704-9773-20D67A94237E@xxxxxxxxxxxxxxxx
Thank you Paul. I will try the same.Now I am trying to add my own
systemcall
to do this by registering this in the devcore.c file as well as the pmif.c
file in the device manager code. I register this function in the mpm.h
file
as 30th system call since this entry is free.I compiled the devcore,pmif
sucessfully. Normally all PM APIs are in the coredll.lib so l link this
lib
but in driver code i am getting unresolved external symbol for that API. I
have done all the procedure followed for the other PM APIs. The way i am
doing is correct or i need to do anything more than that. Please give your
ideas.
Thank you
--
vinoth.R
"Paul G. Tobey [eMVP]" wrote:
No API specifically for that, of course. They're just settings in the
registry. Read the source for the control panel applet that changes them
to
see what it does when the user interactively makes a change and do the
same
thing yourself. It may send some sort of a notification event to tell
anyone who cares that there has been a registry change and those that
care
might read the new values.
Paul T.
"Vinoth" <vinoth@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AF6876C6-F994-4A07-B7DB-31E150136FF0@xxxxxxxxxxxxxxxx
Hi all,
Is there any API to change the useridle and systemidle timeout in the
power
mangement ? Because these are registry setting and it is stored iin the
BOOT.hv file,if i enable the hive based registry. But i want to access
these
timings through application. I am unable to change the above registry
through
application. the power management driver is taking the registry entries
from
the BOOT.hv . please help me in this issue
--
vinoth.R
- References:
- Re: Regarding the Power Management API
- From: Paul G. Tobey [eMVP]
- Re: Regarding the Power Management API
- From: Paul G. Tobey [eMVP]
- Re: Regarding the Power Management API
- Prev by Date: Re: problem building with armv4i
- Next by Date: Re: Serial Port and USB on WINCE 6 R2
- Previous by thread: Re: Regarding the Power Management API
- Next by thread: NDIS for dummies: how do I convince NDIS to call MiniportReset?
- Index(es):
Relevant Pages
|