How do I find out the C# dlls that support regasm.exe for dotnet 2.0

This topic contains 2 replies, has 2 voices, and was last updated by  Thom Schumacher 2 years, 5 months ago.

  • Author
  • #33664

    Thom Schumacher

    I have need to register dll's for an old set of code on my servers. Out of curiosity and need would like to know if there is a means to call the same C# dll's as regasm.exe does. what is the best means to find out what it calls so that I can begin some powershell for it?

  • #33666

    Matt Bloomfield

    Have a look at Listdlls by Mark Russinovich. It's available on SysInternals.

    You will need to know the process name or pid of regasm.exe. Here's an example for notepad which runs as notepad.exe

    D:\Apps\SysInternals\SysInternals>Listdlls.exe notepad.exe
    ListDLLs v3.1 - List loaded DLLs
    Copyright (C) 1997-2011 Mark Russinovich
    Sysinternals -
    notepad.exe pid: 8840
    Command line: notepad.exe
    Base                Size      Path
    0x00000000fbcd0000  0x3b000   C:\WINDOWS\system32\notepad.exe
    0x00000000c57c0000  0x1ac000  C:\WINDOWS\SYSTEM32\ntdll.dll
    0x00000000c3640000  0x13e000  C:\WINDOWS\system32\KERNEL32.DLL
    0x00000000c2cd0000  0x115000  C:\WINDOWS\system32\KERNELBASE.dll
    0x00000000c3140000  0xaa000   C:\WINDOWS\system32\ADVAPI32.dll
    0x00000000c3780000  0x14f000  C:\WINDOWS\system32\GDI32.dll
    0x00000000c2f60000  0x177000  C:\WINDOWS\system32\USER32.dll
    0x00000000c5070000  0xaa000   C:\WINDOWS\system32\msvcrt.dll

    Note, that's not the full list of dlls, I just posted a few to give you an idea of the output.

  • #33669

    Thom Schumacher

    wow great idea thanx a bunch

You must be logged in to reply to this topic.