?
Solved

getting some interesting information...

Posted on 2003-12-04
4
Medium Priority
?
267 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

752 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