DLL unloading itself

As I understand it, it CAN be done and is MEANT to be done sometimes (for example in case of dll injection by CreateRemoteThread and other methods). So, FreeLibraryAndExitThread(hModule, 0) will do precisely that. On the other hand, calling FreeLibrary(hModule) will not do here – from MSDN: “If they were to call FreeLibrary and ExitThread … Read more

DIRCA_CHECKFX Return Value 3 – VS 2013 Deployment Project

Must be installed VS 2010 from which you can get the valid file “dpca.dll”. Close Visual Studio 2013 Copy file with replace dpca.dll from C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\Deployment to C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\VSI\bin. Open Project Rebuild

How to programmatically get DLL dependencies

You can use EnumProcessModules function. Managed API like kaanbardak suggested won’t give you a list of native modules. For example see this page on MSDN If you need to statically analyze your dll you have to dig into PE format and learn about import tables. See this excellent tutorial for details.

Old DLL file keeps being used

It hides it in the GAC. There it may reside indefinitely. Using a more recent version may indeed solve the problem, but there is an outstanding bug in Visual Studio that has to do with choosing the correct version of DLL files. (If DLL Hell wasn’t bad enough, the Visual Studio team is making it … Read more

Is there any native DLL export functions viewer? [duplicate]

dumpbin from the Visual Studio command prompt: dumpbin /exports csp.dll Example of output: Microsoft (R) COFF/PE Dumper Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. Dump of file csp.dll File Type: DLL Section contains the following exports for CSP.dll 00000000 characteristics 3B1D0B77 time date stamp Tue Jun 05 12:40:23 2001 0.00 version 1 ordinal … Read more