Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Widnows 8 and API problem
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Widnows 8 and API problem
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 8
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01598579
Message ID:
01598579
Vues:
58
Hi Gang!

We “seem” to be having another problem with running Windows API’s under Windows 8.

Here is the code….
*Tommy – here is the code in question….

DECLARE INTEGER GetLastInputInfo IN User32 STRING @
DECLARE LONG GetTickCount IN kernel32

LOCAL lnInputBuffer,lnLastUserInput, lnTickNow

* GetLastInputInfo returns a 'struct'
* so set up lnInputBuffer with the proper structure
lnInputBuffer=BINTOC(8,'4rs')+BINTOC(0,'4rs')

* find last user imput time
GetLastInputInfo(@lnInputBuffer)

The line above (last line) seems to be where the application fails. Meaning the application immediately shuts down.

Thanks,

Cart
According to Cart, the above code immediately shuts down the program ( which it is designed to do, but only where the user has NOT done any keyboard or mouse entry during the past set time interval ( 1 minute to 15 minutes ). This code is in the Timer event, and immediately shuts the program down under Windows 8, where under Windows 7 or XP, waits until the set time ‘interval’ is exceeded, then shuts down. If the user does a keyboard entry or moves the mouse, then the time ‘interval’ is reset again and the process starts over.

So any ideas why this may be failing under Windows 8 ?
Tommy Tillman A+ NetWork+ MCP
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform