Solved

getting some interesting information...

Posted on 2003-12-04
4
260 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
4 Comments
 
LVL 7

Accepted Solution

by:
sftweng earned 50 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now