开发者

Tag a process with a string

I am trying to reproduce Process Exporer's feature to tag a process running on the current machine with a Comment (Please see the Comment section in the Process properties in Process Explorer).

I couldn't find any way to do it with managed code, had a try with wmic utility but I wasn't able to f开发者_如何转开发ind a way to set a property to an existing process.

Also, searching the web returns some pretty vague responses since all the search terms are so general..

Alex.

P.S I am using C# for the project but I am opened to use unmanaged code if that's what it takes :)


Don't you think that this is internal feature of Process Explorer? They might store with process info some string comment. In case of .net you will have Process object, just add a Dictionary<Process, string> and store comments there

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜