DllUnregisterServer

This is a discussion on DllUnregisterServer within the Windows Programming forums, part of the Platform Specific Boards category; Hello everyone, I asked a related question about when DllRegisterServer is called and my question is answered. Now I am ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,673
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,059
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21