memory - Finding base address of DLL in VB.net -


so asked similar question 2 weeks how find base address of application im wondering on how find dll ? (not dll of application im building of application running on system)

sub main()     each _process process in process.getprocesses         if (canaccessprocess(_process))             each _module processmodule in _process.modules                 console.writeline(_module.baseaddress)             next         end if     next     console.readline() end sub  function canaccessprocess(_process process)     try         dim temp processmodule = _process.mainmodule         temp = nothing     catch ex system.componentmodel.win32exception         ' 64 bit process         return false     end try     return true end function 

this show baseaddresses of modules of processes can access. tries access process main module first see if exception raises. if raises know don't have access process.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -