Created
August 29, 2013 17:01
-
-
Save fushnisoft/6380701 to your computer and use it in GitHub Desktop.
OcxIsRegistered concept... NOTE: code not compiled or tested. I am mostly not sure if the second call to OleDirectory appends or replaces the contents of the QUEUE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| OcxIsRegistered PROCEDURE(STRING pName) ! ,BYTE | |
| resultQ QUEUE(oleQ) | |
| END | |
| CODE | |
| OleDirectory(resultQ, 0, 3) ! <-- OLE Servers | |
| OleDirectory(resultQ, 1, 3) ! <-- OLE Controls | |
| Get(pResultQ, 0) | |
| LOOP | |
| Get(pResultQ, Pointer(pResultQ)+1) | |
| IF ErrorCode() | |
| BREAK | |
| END | |
| IF Upper(pResultQ.progid) = pName | |
| RETURN TRUE | |
| END | |
| END | |
| RETURN FALSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment