Private Declare Function RegQueryValueEx Lib “advapi32.dll” Alias _ “RegQueryValueExA” (ByVal hKey As Long, ByVal lpValueName As String, _ ByVal lpReserved As Long, lpType As Long, _ ByVal lpData As String, lpcbData As Long) As Long ‘Note that if you declare the lpData parameter as String, ‘you must pass it ByVal. –CODE START- Private 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 it is designed to check the registry for a quick answer versus using a ‘find’ or ‘locate’ command: This is the code i use behind a form to find where msaccess.exe is located.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |