Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking if a dll is registered
Message
From
17/05/2002 09:45:54
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00656555
Message ID:
00658153
Views:
13
Hi Frank,

Thanks for your reply.

I got exactly what I needed from Çetin Basöz. Take a look at this:

function _IsClassRegistered
lparameters tcClass
#DEFINE HKEY_CLASSES_ROOT -2147483648
#DEFINE ERROR_SUCCESS 0 && OK

DECLARE Integer RegOpenKey IN Win32API ;
Integer nHKey, String @cSubKey, Integer @nResult

DECLARE Integer RegCloseKey IN Win32API ;
Integer nHKey

local lnKey
lnKey = 0
llRetVal = ( RegOpenKey(HKEY_CLASSES_ROOT, tcClass, @lnKey) = ERROR_SUCCESS )
if llRetVal
RegCloseKey(lnKey)
endif
*vfp7
*CLEAR DLLS 'RegOpenKey', 'RegCloseKey'
return llRetVal

Nifty, no ?

Henry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform