×

Loading...

Topic

This topic has been archived. It cannot be replied.
  • 工作学习 / IT技术讨论 / 如何捕捉WINDOWS的PROCESS ?
    1) 在windows系统上启动一个程序,会在windows的taskmanager中
    看到这个程序的进程(process),并有一个ID,这个ID是不是可以重用的?

    2) 进程启动和结束都会发消息给系统,捕捉这个消息的机制是不是叫
    钩子(HOOK)?

    3) 关键一点,如果上面两个都是YES,那么如何用程序实现?譬如,
    WINDOWS的API什么的, 哪位兄弟知道,讲讲原理就更好了,谢谢
    • 去codeguru上找示范程序,和程序编写原理
      • thanks, that's not what I was looking for, ;( not something like I go-and-get-it, but I-will-be-notified-when-happened kind of thing,
    • 没明白你究竟要干什么?
      • what i want is
        say,

        for a certain program/process, I'd like to know when it starts and
        when it ends, how long it takes, basically like windows' task manager
        which monitors the processes running currently in the memory
        in a real time manner -- not to check what's running at the certain point
        of time -- i want system informs me (the code) when something starts and ends, did i make myself clear ?