[Migrated content. Thread originally posted on 10 September 2003]
I am trying to query the windows registry to see if a certain active X control is loaded, I have used the following codeMOVE HKEY_LOCAL_MACHINE
TO OPEN-KEY-HANDLE.
MOVE "SOFTWARE/Classes/TypeLib/{912FB004-DD9A- 11D3-BD8D-DAAFCB8D9378}/1.0"
TO SUBKEY-NAME.
Call "REG_QUERY_VALUE"
USING OPEN-KEY-HANDLE,
RETURN-VALUE,
RETURN-SIZE,
SUBKEY-NAME,
GIVING STATUS-CODE.
The key does it exist and I always get a status code of 2
whether the key exists or not
Does anyone have any clue why this does not work, it should
return the name of the control in return value but it is always spaces.



