Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Difference between kernel32 and Win32Api?
Message
 
 
À
28/10/2003 17:26:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00843842
Message ID:
00843846
Vues:
20
From DECLARE - DLL Command help:
"IN LibraryName
Specifies the name of the external shared library containing the function specified with FunctionName.
If you specify WIN32API for the LibraryName, Visual FoxPro searches for the 32-bit Windows .dll function in Kernel32.dll, Gdi32.dll, User32.dll, Mpr.dll, and Advapi32.dll".


>I have seen example code to declare the same API functions in different ways. Sometimes it uses kernel32 and sometimes it uses Win32Api. Both ways work for me.
>
>For example,
>
>DECLARE Sleep IN Win32API INTEGER nMilliseconds
>
>
>and
>
>
>DECLARE Sleep IN kernel32 INTEGER nMilliseconds
>
>
>both seem to work. Whats the difference between the two ways of declaring? If my app is going to be on a Win2K server which one should I be using?
>
>Thanks,
>Chris
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform