Registering a dll ?

Mike99

New member
Member
VIP
Local time
1:59 PM
Messages
258
What is the difference between registering a .dll by doing this:
regsvr32 <path & filename of the dll

Versus doing this:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32]
"vidc.iv32"="ir32_32.dll"
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 Ultimate x64
CPU
AMD Athlon x4
Motherboard
HP / Foxconn
Memory
8.00 GB
Graphics Card(s)
GTX 750Ti SC
Monitor(s) Displays
ACER
Hard Drives
1TB Seagate
PSU
380W
Cooling
Stock
Internet Speed
3 Mbps

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
Thank you for the link. I read it a couple times but do not understand a lot of it. Also, as the title states, it's about how can you tell if a dll has been registered. While that may be important to know it does not tell me what the difference is between using the two methods I mentioned. I very seldom get into the register but do remember using each of these methods once. I just don't know when to use either one and/or if it makes any difference.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 Ultimate x64
CPU
AMD Athlon x4
Motherboard
HP / Foxconn
Memory
8.00 GB
Graphics Card(s)
GTX 750Ti SC
Monitor(s) Displays
ACER
Hard Drives
1TB Seagate
PSU
380W
Cooling
Stock
Internet Speed
3 Mbps
The difference between the two methods is dependent upon the DLL, I assumed you would be able to unserstand that once reading the article, that regsvr32 only runs a function within the DLL that does the actual installation/registration which could be anything. Meaning, the DLL could require more then setting a registry key to function.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
As mentioned, I don't understand a lot of the article. You're assuming I know a lot about this topic but I have no idea what "only runs a function within the DLL" means.

If there was a reference to the second method I missed it but will re-read everything again.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 Ultimate x64
CPU
AMD Athlon x4
Motherboard
HP / Foxconn
Memory
8.00 GB
Graphics Card(s)
GTX 750Ti SC
Monitor(s) Displays
ACER
Hard Drives
1TB Seagate
PSU
380W
Cooling
Stock
Internet Speed
3 Mbps
Relevant section near the top of the article.
...the DLL merely provides two functions for regsvr32 to call, one for registration (DllRegisterServer) and another for unregistration (DllUnregisterServer). All the regsvr32 function does is call those functions.

How those functions perform their registration and unregistration is not specified. Most of the time, those functions merely write some registry settings, but the DllRegisterServer is not limited to that...

If you don't understand this, then the best advice is to leave it alone.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
Back
Top