Sysinternals Homepage
Forum Home Forum Home > Windows Discussions > Internals
  New Posts New Posts RSS Feed: Enumerate opened files
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Enumerate opened files

 Post Reply Post Reply Page  <123
Author
Message
  Topic Search Topic Search  Topic Options Topic Options
EP_X0FF View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 March 2006
Location: Russian Federation
Online Status: Offline
Posts: 4753
  Quote EP_X0FF Quote  Post ReplyReply Direct Link To This Post Topic: Enumerate opened files
    Posted: 30 September 2007 at 3:52am
Hm. Thats a very very old thread. So nostalgic here. I know all values for object types, BanMe, how this can solve problem with NtQueryObject hung? :)
Ring0 - the source of inspiration
Back to Top
marty77 View Drop Down
Newbie
Newbie
Avatar

Joined: 17 April 2009
Online Status: Offline
Posts: 4
  Quote marty77 Quote  Post ReplyReply Direct Link To This Post Posted: 17 April 2009 at 1:21pm
Originally posted by EP_X0FF

This is debug prototype of WalkObjects function.
See walkobjects.cpp for more details.
Code is tested and should work, but named pipes problem doesn't solved yet.
 
I try to compile this project under VS2005 and has got an error (in both debug and release configurations):

walkobjects.obj : error LNK2019: unresolved external symbol _memset referenced in function "unsigned long __stdcall FilenameFromHandle(struct _HTT *)" (?FilenameFromHandle@@YGKPAU_HTT@@@Z)

In FilenameFromHandle there is no references to memset. I don't understand, what I do wrong.
Back to Top
molotov View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 04 October 2006
Online Status: Offline
Posts: 17287
  Quote molotov Quote  Post ReplyReply Direct Link To This Post Posted: 17 April 2009 at 2:17pm
Hi Alex,

Add msvcrt.lib to the Linker's additional dependencies.
Daily affirmation:
net helpmsg 4006
Back to Top
marty77 View Drop Down
Newbie
Newbie
Avatar

Joined: 17 April 2009
Online Status: Offline
Posts: 4
  Quote marty77 Quote  Post ReplyReply Direct Link To This Post Posted: 17 April 2009 at 2:40pm
I have got an error on program startup:
 
---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Runtime Error!
Program: f:\work\misc\win32\walkobjects\debug\WalkObjects.exe
R6034
An application has made an attempt to load the C runtime library incorrectly.
Please contact the application's support team for more information.

---------------------------
ОК  
---------------------------
Back to Top
molotov View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 04 October 2006
Online Status: Offline
Posts: 17287
  Quote molotov Quote  Post ReplyReply Direct Link To This Post Posted: 17 April 2009 at 5:16pm
Sounds like an unhandled exception... Time to debug...
Daily affirmation:
net helpmsg 4006
Back to Top
molotov View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 04 October 2006
Online Status: Offline
Posts: 17287
  Quote molotov Quote  Post ReplyReply Direct Link To This Post Posted: 18 April 2009 at 5:30pm
Sorry - try using libcmt.lib instead of msvcrt.lib. Embarrassed
Daily affirmation:
net helpmsg 4006
Back to Top
marty77 View Drop Down
Newbie
Newbie
Avatar

Joined: 17 April 2009
Online Status: Offline
Posts: 4
  Quote marty77 Quote  Post ReplyReply Direct Link To This Post Posted: 18 April 2009 at 6:05pm
Originally posted by molotov

Sorry - try using libcmt.lib instead of msvcrt.lib. Embarrassed
Thanks, it works fine - after starting WalkObjects.exe there is no messages displayed, my computer goes to reboot immediately Smile
Back to Top
molotov View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 04 October 2006
Online Status: Offline
Posts: 17287
  Quote molotov Quote  Post ReplyReply Direct Link To This Post Posted: 18 April 2009 at 6:13pm
Thanks, it works fine - after starting WalkObjects.exe there is no messages displayed, my computer goes to reboot immediately
You get a bugcheck (check for crash dump)? What OS and service pack are you using?
Daily affirmation:
net helpmsg 4006
Back to Top
marty77 View Drop Down
Newbie
Newbie
Avatar

Joined: 17 April 2009
Online Status: Offline
Posts: 4
  Quote marty77 Quote  Post ReplyReply Direct Link To This Post Posted: 18 April 2009 at 6:30pm
Windows XP SP3, configured: reboot on stop error, no dump.
Thanks for help, but I found another way to solve subj problem here - http://www.codeguru.com/Cpp/W-P/system/processesmodules/article.php/c2827/
It looks more simple, and it works good on my system.
Back to Top
 Post Reply Post Reply Page  <123

Forum Jump Forum Permissions View Drop Down

Privacy Statement