RE: Help with Device Driver - Power Up Handling
From: Andrew Pearson [MSFT] (apearson_at_online.microsoft.com)
Date: 09/29/04
- Next message: Paul G. Tobey [eMVP]: "Re: Minimum Processor Speed"
- Previous message: Andrew Pearson [MSFT]: "RE: Problem using RegisterDevice"
- Messages sorted by: [ date ] [ thread ]
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.
|
|
- Next message: Paul G. Tobey [eMVP]: "Re: Minimum Processor Speed"
- Previous message: Andrew Pearson [MSFT]: "RE: Problem using RegisterDevice"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|