Information générale
Catégorie:
Fonctions Windows API
Thanks George!
I think my biggest problem when playing with the API calls has been deciding the data types. I had them all messed up here. I was seeing DOUBLE as a DWORD (ie Double Word) when really its a double precision float. The others were just guesses.
For some reason I researched the data types in the Hacker's guide, MSDN, here, and the Wiki, and never thought to look at the DECLARE-DLL in the VFP Help for the lengths (until now), wow I feel silly. :)
One thing though, I had to add the @ to your example to get it to work:
llsuccess = (SystemParametersInfo(SPI_GETKEYBOARDSPEED, 0, lnspeed, 0) # 0)
changed to:
llsuccess = (SystemParametersInfo(SPI_GETKEYBOARDSPEED, 0,
@lnspeed, 0)
# 0)
But otherwise it was dead on.
Thanks again.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement