[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

getting some interesting information...

Posted on 2003-12-04
4
Medium Priority
?
270 Views
Last Modified: 2010-04-03
I have some system hooks.
Str:=TCBTCreateWnd(Pointer(lParam)^).lpcs.lpszName; {whith this i get windows name}
1. How i can get filename of application which create this windows ???
2. what other information i can get about running programs and windowses ???

HOOKS :
  HCBT_ACTIVATE:
   begin
    Wnd := wParam;
    GetWindowText(Wnd, windtext, 255);

{}    SaveData(dates,times,'ACTIVE',windtext,'no',IntToStr(Wnd));

   end;
  HCBT_CREATEWND:
   begin
    Str:=TCBTCreateWnd(Pointer(lParam)^).lpcs.lpszName;
    if Str='' then exit;
    if TCBTCreateWnd(Pointer(lParam)^).lpcs.hwndParent<>0 then exit;

    Wnd := wParam;
    GetWindowText(Wnd, windtext, 255);
    GetWindowModuleFileName(Wnd, windp, 255);;

{}    SaveData(dates,times,'OPEN',windtext,Str,IntToStr(Wnd));

   end;
  HCBT_DESTROYWND:
   begin
    Str:='';
    Wnd := wParam;
    if Wnd<>0 then
     GetWindowText(Wnd, windtext, 255);
    str:=windtext;
    if windtext='' then exit;
    if Str='' then exit;

{}    SaveData(dates,times,'CLOSE',windtext,'no',IntToStr(Wnd));

  end;
 end;
end;
0
Comment
Question by:kvaka
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
sftweng earned 200 total points
ID: 9874619
0
 
LVL 2

Expert Comment

by:-Karamja-
ID: 12382486
No comment has been added to this question in more than 21 days, so it is now classified as abandoned..
I will leave the following recommendation for this question in the Cleanup topic area:
Delete - No Refund

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

Karamja (Alan)
EE Cleanup Volunteer
0
 
LVL 7

Expert Comment

by:sftweng
ID: 12382540
The link should have been sufficient to answer this question. I'd appreciate the points but don't feel strongly about it.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question