This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Stop automatic power off of a Pocket-PC ?


Stop automatic power off of a Pocket-PC ?

Postby directdance » Jul 17, 2006 @ 9:48am

directdance
pm Member
 
Posts: 39
Joined: Dec 2, 2005 @ 9:04am
Location: Germany


Postby directdance » Jul 18, 2006 @ 9:44am

... I have found a WinApi function, SystemIdleTimerReset wich has to be called every minute for preventing shutting down the PPC.

Is it possible to call a WinApi function using PPL?

And if so, it would be very nice if anybody can give me an example ;-)

Many thanks,
DirectDance
directdance
pm Member
 
Posts: 39
Joined: Dec 2, 2005 @ 9:04am
Location: Germany


Postby PointOfLight » Jul 18, 2006 @ 1:31pm

You want to do the following -

#declare SystemIdleTimerReset "dllname.dll" SystemIdleTimerReset #InputParams #OutputParms

or

#declareapi {everything else the same}

I will be perfectly honest in that I don't know what the difference between #declare and #declareapi is, but one of those should work for you. I hope this makes sense.
Eric Pankoke
Programmer
Point Of Light Software
http://www.polsoftware.com/
PointOfLight
pm Member
 
Posts: 525
Joined: Nov 2, 2003 @ 8:39pm


Postby directdance » Jul 18, 2006 @ 2:35pm

Hi there,

thanks for your hint, but my problem is, that the function SystemIdleTimerReset is a content of the winapi. I do not know a dll file. Is it possible, that the winapi is always loaded like a standard api?

Sorry, I do not really have skills in this :cry:

Thanks,
DirectDance
directdance
pm Member
 
Posts: 39
Joined: Dec 2, 2005 @ 9:04am
Location: Germany


Postby PointOfLight » Jul 18, 2006 @ 3:08pm

Eric Pankoke
Programmer
Point Of Light Software
http://www.polsoftware.com/
PointOfLight
pm Member
 
Posts: 525
Joined: Nov 2, 2003 @ 8:39pm


Postby directdance » Jul 18, 2006 @ 3:30pm

directdance
pm Member
 
Posts: 39
Joined: Dec 2, 2005 @ 9:04am
Location: Germany


Postby PointOfLight » Jul 18, 2006 @ 3:45pm

Eric Pankoke
Programmer
Point Of Light Software
http://www.polsoftware.com/
PointOfLight
pm Member
 
Posts: 525
Joined: Nov 2, 2003 @ 8:39pm


Postby directdance » Jul 18, 2006 @ 3:50pm

directdance
pm Member
 
Posts: 39
Joined: Dec 2, 2005 @ 9:04am
Location: Germany


Postby PointOfLight » Jul 18, 2006 @ 4:52pm

Eric Pankoke
Programmer
Point Of Light Software
http://www.polsoftware.com/
PointOfLight
pm Member
 
Posts: 525
Joined: Nov 2, 2003 @ 8:39pm


Postby kornalius » Jul 18, 2006 @ 5:02pm

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


It is working now!

Postby directdance » Jul 18, 2006 @ 9:01pm

directdance
pm Member
 
Posts: 39
Joined: Dec 2, 2005 @ 9:04am
Location: Germany


Postby PointOfLight » Jul 18, 2006 @ 9:05pm

Eric Pankoke
Programmer
Point Of Light Software
http://www.polsoftware.com/
PointOfLight
pm Member
 
Posts: 525
Joined: Nov 2, 2003 @ 8:39pm


Postby kornalius » Jul 19, 2006 @ 5:17pm

Yep, #ifdef #endif is really your friend for multiplatform development.
Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby bmanske » Jul 19, 2006 @ 6:49pm

bmanske
pm Member
 
Posts: 117
Joined: Aug 26, 2004 @ 9:51pm


Postby PointOfLight » Jul 19, 2006 @ 6:59pm

Eric Pankoke
Programmer
Point Of Light Software
http://www.polsoftware.com/
PointOfLight
pm Member
 
Posts: 525
Joined: Nov 2, 2003 @ 8:39pm


Next

Return to Pocket Programming Language (PPL)


Sort


Forum Description

Discuss this new development tool.

Moderator:

kornalius

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum