|
-
Jun 25th, 2007, 06:24 AM
#1
Thread Starter
Fanatic Member
Detecting power state of pocket pc
Hi guys,
I'm using .net cf and i was wondering whether there was a function or procedure that already exists that will detect when the user last interacted with their pda or return the time the back light was switched off.
This is because i have a program that attempts to upload or download some files and i want to set a flag so that if the user is using their pda then the upload/download function will not be called.
Thanks in advance for any help
If your problem has been solved then please mark the thread [RESOLVED].
If i have helped then please Rate my post 
-
Jun 25th, 2007, 06:42 AM
#2
Re: Detecting power state of pocket pc
back light was switched off don't think it exist.
And i don't know any rapi.dll function to do what you want.
So my suggestion is to trap the time when a user clicks on th pda and compare it. But since you can only trap the event on your application then you must use an API function that will that the events on other forms-application and bring them to you. I think callwindow...something is the solution. Maybe some of the guys here that use API will help.
But the general idea is to trap the event of a form outside your program that te user has interacted with, get them time and when you try to dowload your file, compare the 2 times.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|