Is there a way to declare api functions in a vbs file. I have been declaring api function such as:
Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hkey As Long, ByVal sSubkey As String, ByVal lOptions As Long, ByVal lSAMDesired As Long, hResult As Long)
in MS Access modules and using them. But in vbs files I get an error message when using the same declaration statement.
What is it that I am missing?
Thanks in advance.
Shar
Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hkey As Long, ByVal sSubkey As String, ByVal lOptions As Long, ByVal lSAMDesired As Long, hResult As Long)
in MS Access modules and using them. But in vbs files I get an error message when using the same declaration statement.
What is it that I am missing?
Thanks in advance.
Shar