API Calls in Windows NT as well as Windows 95/98 
Author Message
 API Calls in Windows NT as well as Windows 95/98

Will the following API calls work in Windows NT as well as
Windows95/98 to open, read, and close the registry, or do I need to
use something different (and if so, what)?

Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA"
(ByVal hKey As Long, ByVal lpSubKey As String,  ByVal ulOptions As
Long, ByVal samDesired As Long, phkResult As Long) As Long

Declare Function RegQueryValueEx Lib "advapi32.dll" Alias
"RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String,
ByVal lpReserved As Long, lpType As Long, lpData As Any, lpcbData As
Long) As Long

Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long)
As Long



Fri, 15 Feb 2002 03:00:00 GMT  
 API Calls in Windows NT as well as Windows 95/98

Quote:

>Will the following API calls work in Windows NT as well as
>Windows95/98 to open, read, and close the registry, or do I need to
>use something different (and if so, what)?

Yes. One think to watch out for: Win95 ignores security
descriptors. NT does not, and access to certain registry
keys will be denied if you use all access.

If you don't use more access than you need, and
restrict most of your accesses to the current user
hive, everything else should be fine.



Fri, 15 Feb 2002 03:00:00 GMT  
 API Calls in Windows NT as well as Windows 95/98
They will work with NT version 3.1 and later...


Sat, 16 Feb 2002 03:00:00 GMT  
 API Calls in Windows NT as well as Windows 95/98
The Registry/Ini example on www.TheScarms.com illustrates how to use these
functions on Win9x or NT.
Quote:

>They will work with NT version 3.1 and later...



Sat, 16 Feb 2002 03:00:00 GMT  
 API Calls in Windows NT as well as Windows 95/98
Thank you both for responding.  I have just downloaded the
Registry/Ini example and will check it out.  It looks like a very good
site!

On Tue, 31 Aug 1999 15:15:21 -0400, "www.TheScarms.com"

Quote:

>The Registry/Ini example on www.TheScarms.com illustrates how to use these
>functions on Win9x or NT.


>>They will work with NT version 3.1 and later...



Sun, 17 Feb 2002 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Application runs with Windows 95/NT, but doesn't work with Windows 98

2. shutdown windows nt worstation or windows 95/98

3. Windows NT Users form a Windows 95 / 98 Client

4. LogonUser API call in Windows 95/98 / How do you use Secur32.dll/Security.dll

5. LogonUser API call in Windows 95/98 / How do you use Secur32.dll/Security.dll

6. Deploy dotnet windows application in windows 95/98

7. Vb5 in Windows 95 or Windows 98

8. Troublesoft - deutsche Software für Windows 95, 98 und NT

9. windows 95/98 ok but NT file error

10. Windows 95/98/NT registry editor

11. VB5 apps windows 95/98/NT compatible?

12. Windows 95/98 and NT Stock Fonts?

 

 
Powered by phpBB® Forum Software