Jump to content

Anyone know the Winsock activeX object name?


ollie

Recommended Posts

Hi folks,

 

As the title suggests i'm looking for the vlax-create-object name for Winsock.

 

Any help will be appreciated

 

Cheers,

Ollie

Link to comment
Share on other sites

This should get a list of all ProgID's

 

(defun GetProgIDs ( / *error* regPath file id ofile lst )
 (vl-load-com)
 ;; Lee Mac  ~  17.02.10

 (defun *error* ( msg )
   (and ofile (close ofile))
   (or (wcmatch (strcase msg) "*BREAK,*CANCEL*,*EXIT*")
       (princ (strcat "\n** Error: " msg " **")))
   (princ)
 )    

 (if (setq file (getfiled "Output" "" "txt" 1))
   (progn
 
     (foreach desc (vl-registry-descendents
                     (setq regPath "HKEY_CLASSES_ROOT\\CLSID"))

       (if (setq id (vl-registry-read
                      (strcat regPath "\\" desc "\\ProgId")))
         
         (setq lst (cons (vl-princ-to-string id) lst))
       )
     )

     (setq ofile (open file "w"))
     
     (mapcar '(lambda ( x ) (write-line x ofile)) (acad_strlsort lst))
     
     (setq ofile (close ofile))
   )
 )  
 (princ)
)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...