RE: Help with Device Driver - Power Up Handling

From: Andrew Pearson [MSFT] (apearson_at_online.microsoft.com)
Date: 09/29/04


Date: Wed, 29 Sep 2004 16:00:12 GMT

What is the link error? The prototype for the function is:
    BOOL CeSetPowerOnEvent (HANDLE hEvt);
Remember to use 'extern "C"' if your driver is implemented in C++. Perhaps
you are having problems with name mangling.

You should be able to determine if the CeSetPowerOnEvent() is in the system
by executing "dumpbin/exports coredll.dll". If other drivers are using it,
I would expect it to be available to you as well.

Hope this helps,

Andrew Pearson

To reply directly, remove "online." from my email address.
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| From: "Cary Lewis" <cary.lewis@gmail.com>
| Newsgroups: microsoft.public.windowsce.platbuilder
| Subject: Help with Device Driver - Power Up Handling
| Date: 13 Aug 2004 06:05:51 -0700
| Organization: http://groups.google.com
| Lines: 19
| Message-ID: <cfiebf$4rp@odak26.prod.google.com>
| NNTP-Posting-Host: odak26.prod.google.com
| Mime-Version: 1.0
| Content-Type: text/plain; charset="iso-8859-1"
| X-Trace: posting.google.com 1092402351 937 127.0.0.1 (13 Aug 2004
13:05:51 GMT)
| X-Complaints-To: groups-abuse@google.com
| NNTP-Posting-Date: Fri, 13 Aug 2004 13:05:51 +0000 (UTC)
| User-Agent: G2/0.1
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!news-out.cwi
x.com!newsfeed.cwix.com!easynet-monga!easynet.net!news-spur1.maxwell.syr.edu
!news.maxwell.syr.edu!postnews2.google.com!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.windowsce.platbuilder:53493
| X-Tomcat-NG: microsoft.public.windowsce.platbuilder
|
| I have created a device driver that implements a xxx_PowerUp function.
| Under CE 2.12, 3.0, this function would pulse or set an event that
| other processes or threads would use to handle the power up situation
| according to their needs. This has worked fine for years.
|
| I am now trying to get a PocketPC 2003 device to work, and the use of
| PulseEvent or SetEvent causes the machines to hang on resume.
|
| I need to be able to advertise the power up condition to other
| processes on the machine. There appears to be a CeSetPowerOnEvent
| function but I can not seem to link my device driver .dll when I try
| to use this function. It appears it is not an exported function in the
| SDK.
|
| How can I use this function. Can I manually import it? Is there a
| better way to advertise the power up event?
|
| Thanks for any help.
|
|



Relevant Pages

  • Re: Nvidia MCP55 Machine reboots on ixgb driver load
    ... There are some serious hardware compatibility issues with the ixgb mixing it with other cards on the same PCI-X bus, ... loading the driver with debug does not appear to produce ... 02:00.0 PCI bridge: NEC Corporation uPD720400 PCI Express - PCI/PCI-X Bridge ... ACPI: Power Button ...
    (Linux-Kernel)
  • Re: i386: pata_cs5520 does not work
    ... Device driver platform lacks bus and class support for being resumed. ... Device driver pci0000:00 lacks bus and class support for being resumed. ...
    (Linux-Kernel)
  • Re: KB835732 breaks S3 standby timer
    ... APM is a BIOS ... for power control. ... most late SCSI and NDIS drivers hook WDM ACPI messages. ... Windows driver interaction issues, you should disable ACPI for these ...
    (microsoft.public.win2000.windows_update)
  • Re: [linux-pm] Power Management framework proposal
    ... if they are why should this new API need to worry about that? ... clocks seems like it fits well into the model) becouse some power modes ... the onenand driver needs to adjust its timing parameters ... the software needs to know what the interconnects and dependancies ...
    (Linux-Kernel)
  • Re: Power Management framework proposal
    ... A power policy management framework doesn't need a unified framework (I ... I can see that if things really are different then it's worth doing different things to control them. ... to have any ability to control the mode of anything at runtime requires that the code doing so must have specific knowledge of the driver in question. ... 50 35 quarter power to the backlight ...
    (Linux-Kernel)