Pieter
Thu Jun 09 16:56:00 CDT 2005
I am not looking for utilities, I am looking for C++ code.
""Darrell Gorter[MSFT]"" <Darrellg@online.microsoft.com> wrote in message
news:%23S$nnyTbFHA.2184@TK2MSFTNGXA01.phx.gbl...
> Hello Pieter,
> If just want the dlls names then tasklist /m shows that.
> But I am not sure that's everything. It only shows the dlls, not where
> they are located.
> Thanks,
> Darrell Gorter[MSFT]
>
> This posting is provided "AS IS" with no warranties, and confers no rights
> --------------------
> <From: "Pieter" <msnews@insanegenius.com>
> <References: <e8BECYvaFHA.2356@TK2MSFTNGP10.phx.gbl>
> <OS4FjJAbFHA.2440@TK2MSFTNGP10.phx.gbl>
> <OPvFKhFbFHA.2420@TK2MSFTNGP12.phx.gbl>
> <YRHZRWHbFHA.2476@TK2MSFTNGXA01.phx.gbl>
> <bX59bZHbFHA.3928@TK2MSFTNGXA01.phx.gbl>
> <Subject: Re: How to determine DLLs loaded in 64bit process from a 32bit
> process?
> <Date: Thu, 9 Jun 2005 12:44:08 -0700
> <Lines: 114
> <X-Priority: 3
> <X-MSMail-Priority: Normal
> <X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
> <X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
> <X-RFC2646: Format=Flowed; Original
> <Message-ID: <O7iybuSbFHA.612@TK2MSFTNGP12.phx.gbl>
> <Newsgroups: microsoft.public.windows.64bit.general
> <NNTP-Posting-Host: 65.88.178.10
> <Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
> <Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.windows.64bit.general:6666
> <X-Tomcat-NG: microsoft.public.windows.64bit.general
> <
> <Depends shows static dependency information, this does not meet my
> <requirements.
> <
> <I am interested in which processes are running now, and which DLLs are
> <loaded in those processes.
> <
> <Any other ideas?
> <
> <""Darrell Gorter[MSFT]"" <Darrellg@online.microsoft.com> wrote in message
> <news:bX59bZHbFHA.3928@TK2MSFTNGXA01.phx.gbl...
> <> Hello Pieter,
> <> Posted too quickly, after it's open, choose the view menu and select
> full
> <> paths option to get the pathing to the files.
> <> Thanks,
> <> Darrell Gorter[MSFT]
> <>
> <> This posting is provided "AS IS" with no warranties, and confers no
> rights
> <> --------------------
> <> <X-Tomcat-ID: 542463493
> <> <References: <e8BECYvaFHA.2356@TK2MSFTNGP10.phx.gbl>
> <> <OS4FjJAbFHA.2440@TK2MSFTNGP10.phx.gbl>
> <> <OPvFKhFbFHA.2420@TK2MSFTNGP12.phx.gbl>
> <> <MIME-Version: 1.0
> <> <Content-Type: text/plain
> <> <Content-Transfer-Encoding: 7bit
> <> <From: Darrellg@online.microsoft.com ("Darrell Gorter[MSFT]")
> <> <Organization: Microsoft
> <> <Date: Wed, 08 Jun 2005 22:01:06 GMT
> <> <Subject: Re: How to determine DLLs loaded in 64bit process from a
> 32bit
> <> process?
> <> <X-Tomcat-NG: microsoft.public.windows.64bit.general
> <> <Message-ID: <YRHZRWHbFHA.2476@TK2MSFTNGXA01.phx.gbl>
> <> <Newsgroups: microsoft.public.windows.64bit.general
> <> <Lines: 57
> <> <Path: TK2MSFTNGXA01.phx.gbl
> <> <Xref: TK2MSFTNGXA01.phx.gbl
> microsoft.public.windows.64bit.general:6538
> <> <NNTP-Posting-Host: tomcatimport2.phx.gbl 10.201.218.182
> <> <
> <> <Hello Pieter,
> <> <You may want to try depends.exe from the support.cab on the cd.
> <> <Thanks,
> <> <Darrell Gorter[MSFT]
> <> <
> <> <This posting is provided "AS IS" with no warranties, and confers no
> <> rights
> <> <--------------------
> <> <<From: "Pieter" <msnews@insanegenius.com>
> <> <<References: <e8BECYvaFHA.2356@TK2MSFTNGP10.phx.gbl>
> <> <<OS4FjJAbFHA.2440@TK2MSFTNGP10.phx.gbl>
> <> <<Subject: Re: How to determine DLLs loaded in 64bit process from a
> 32bit
> <> <process?
> <> <<Date: Wed, 8 Jun 2005 11:38:24 -0700
> <> <<Lines: 33
> <> <<X-Priority: 3
> <> <<X-MSMail-Priority: Normal
> <> <<X-Newsreader: Microsoft Outlook Express 6.00.3790.1830
> <> <<X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
> <> <<X-RFC2646: Format=Flowed; Response
> <> <<Message-ID: <OPvFKhFbFHA.2420@TK2MSFTNGP12.phx.gbl>
> <> <<Newsgroups:
> <>
> <microsoft.public.win32.programmer.kernel,microsoft.public.windows.64bit.gen
> <> e
> <> <ral
> <> <<NNTP-Posting-Host: 65.88.178.10
> <> <<Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
> <> <<Xref: TK2MSFTNGXA01.phx.gbl
> microsoft.public.windows.64bit.general:6502
> <> <microsoft.public.win32.programmer.kernel:12451
> <> <<X-Tomcat-NG: microsoft.public.windows.64bit.general
> <> <<
> <> <<Maybe I wasn't specific enough, I want the process- and the DLL path
> <> names.
> <> <<
> <> <<I.e. From my WoW64 WIN32 process, I want to iterate all processes
> (WoW64
> <> <<WIN32 and native WIN64) and determine the path to each EXE and each
> DLL
> <> in
> <> <<that EXE.
> <> <<
> <> <<Any more ideas?
> <> <<
> <> << are different
> <> <<"Pavel Lebedinsky [MSFT]" <pavel@online.microsoft.com> wrote in
> message
> <> <<news:OS4FjJAbFHA.2440@TK2MSFTNGP10.phx.gbl...
> <> <<> sizeof(HMODULE) is different on 64 bit so these functions can't
> <> <<> work across 32->64 boundary.
> <> <<>
> <> <<> --
> <> <<> This posting is provided "AS IS" with no warranties, and confers no
> <> <<> rights.
> <> <<>
> <> <<> "Pieter" wrote:
> <> <<>
> <> <<>> How do I determine information on the DLLs that are loaded in a
> 64bit
> <> <<>> process from a 32bit process on WIN64?
> <> <<>>
> <> <<>> If I use PSAPI, I get errors indicating that the virtual memory
> (of
> <> the
> <> <<>> 64bit process) was only partially read.
> <> <<>> The ToolHelp API fails even sooner than the PSAPI API.
> <> <<>>
> <> <<>> My code is similar to the PSAPI example:
> <> <<>>
> <>
> <
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/ba
> <> s
> <> <e/enumerating_all_modules_for_a_process.asp
> <> <<>
> <> <<>
> <> <<
> <> <<
> <> <<
> <> <
> <> <
> <>
> <
> <
> <
>