Solved

getting some interesting information...

Posted on 2003-12-04
4
263 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

828 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