Thread: DllUnregisterServer

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    DllUnregisterServer

    Hello everyone,


    I asked a related question about when DllRegisterServer is called and my question is answered. Now I am thinking that when DllUnregisterServer will be called?

    It is reasonable to understand that during installation process or when we set Register Output to Yes in Visual Studio 2005, during build process of Visual Studio 2005 regsvr32.exe will invoke DllRegisterServer to put the related registration entries to Windows Registry.

    But when (what operation) will trigger DllUnregisterServer be invoked in Visual Studio 2005?


    thanks in advance,
    George

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    It's still windows specific though - moved.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,058
    How RegSvr32 registers/unregisters DLL's explains how the DllUnregisterServer is invoked. There is also source code at the link that you can use to write your own RegSvr32. Also, here is the complete surce code to RegSvr32 for your review.

    Bottomline, DllUnregisterServer is called via RegSvr32.

Popular pages Recent additions subscribe to a feed