Author Posts

January 8, 2016 at 9:49 am

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?

January 8, 2016 at 10:52 am

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 - www.sysinternals.com

------------------------------------------------------------------------------
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.

January 8, 2016 at 3:00 pm

wow great idea thanx a bunch