Solved

regsrv32 and dll/ocx self registering

Posted on 2000-03-16
5
451 Views
Last Modified: 2013-12-28
I am dealing with SMS scripting and have captured scripts which include self registering information and regsrv32. Please can someone provide as comprehensive answer as possible to explain how regsrv32 works and what it really does. I need the help to clear my ignorance of this subject. Thanks.
0
Comment
Question by:ianbeckwith
5 Comments
 
LVL 6

Expert Comment

by:Lermitte
ID: 2623136
See this KB Q249873

Sorrie I have no URL..

Mario
0
 
LVL 7

Expert Comment

by:cmcgee
ID: 2623203
The link for that KB article is here and is pretty descriptive about the functions of Regsvr32.

http://support.microsoft.com/support/kb/articles/Q249/8/73.ASP

Craig
0
 

Author Comment

by:ianbeckwith
ID: 2623927
I have previously read this article, but what I don't understand is why the files need to be registered (what functionality will be provided etc) and what the registering actually does (changes to registry entries etc). Please can anyone offer further assistance.
0
 
LVL 4

Accepted Solution

by:
mandhjo earned 150 total points
ID: 2624572
Regsvr32 opens a DLL and calls the DLL Entry Point  DLLRegisterServer.

Registering a COM object (the next generation of OLE) involves adding a key under the HKLM\CLSID regsitry key.  The key that is added is the CLSID (or GUID) of the COM object. Further keys and values are added under the newly created CLSID.  One of the main values is an entry that specifies the location of the DLL file.  Another one that's relevant is the ProgID entry.  This provides a "unique" and more readable value that programmers can use to access the COM object.

This is used during automation.  If some developer writes a program to use the COM object, they can very easily create and use the COM object that resides within that DLL.  All they have to do is refer to the CLSID or the PROGID and they are in business.  The WindowsNT architecture turns the CLSID or PROGID into a usable object with data members and member functions.
0
 

Author Comment

by:ianbeckwith
ID: 2627349
There is a little bi that is over my head, not being a programmer, but I get the idea and it is clearer now.
Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now