Click here to Skip to main content
15,908,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOpenUrl() with PostData Question Pin
Lucky the code machine26-Jan-08 9:13
Lucky the code machine26-Jan-08 9:13 
GeneralAdding items to a list box in a dialog. [modified] Pin
Ben Aldhouse26-Jan-08 4:30
Ben Aldhouse26-Jan-08 4:30 
QuestionRe: Adding items to a list box in a dialog. Pin
CPallini26-Jan-08 5:00
mveCPallini26-Jan-08 5:00 
GeneralRe: Adding items to a list box in a dialog. Pin
Ben Aldhouse26-Jan-08 5:55
Ben Aldhouse26-Jan-08 5:55 
GeneralRe: Adding items to a list box in a dialog. Pin
CPallini26-Jan-08 6:14
mveCPallini26-Jan-08 6:14 
GeneralRe: Adding items to a list box in a dialog. Pin
Ben Aldhouse26-Jan-08 6:15
Ben Aldhouse26-Jan-08 6:15 
GeneralRe: Adding items to a list box in a dialog. Pin
Ben Aldhouse26-Jan-08 6:14
Ben Aldhouse26-Jan-08 6:14 
GeneralHooking Pin
dellthinker26-Jan-08 0:33
dellthinker26-Jan-08 0:33 
Hi all, i found this example on MSDN. Im trying to find out how i can accomplish what im trying to do, and thats monitor the events of a application.

So here's the code...


<br />
#include <windows.h><br />
<br />
int main(){<br />
    HOOKPROC hkprcSysMsg;<br />
    static HINSTANCE hinstDLL;<br />
    static HHOOK hhookSysMsg;<br />
    <br />
    hinstDLL = LoadLibrary((LPCTSTR) "c:\\windows\\notepad.dll");<br />
    hkprcSysMsg = (HOOKPROC)GetProcAddress(hinstDLL, "SysMessageProc");<br />
    hhookSysMsg = SetWindowsHookEx(WH_SYSMSGFILTER,hkprcSysMsg,hinstDLL,0);<br />
    return  0;<br />
}<br />
</windows.h>



I've noticed that i dont have notepad.dll - It may not be new to some but it is to me seeing how i've never had to look for it. So what would i have to do to monitor notepads events? Also, what char would i dump the messages from to a fstream .txt file? Thanx in advance!
GeneralRe: Hooking Pin
CPallini26-Jan-08 2:07
mveCPallini26-Jan-08 2:07 
GeneralRe: Hooking Pin
Nitheesh George27-Jan-08 19:14
Nitheesh George27-Jan-08 19:14 
GeneralRe: Hooking Pin
CPallini27-Jan-08 22:22
mveCPallini27-Jan-08 22:22 
GeneralRe: Hooking Pin
Nitheesh George28-Jan-08 16:21
Nitheesh George28-Jan-08 16:21 
Questionhow to assign an array value to another Pin
gentleguy25-Jan-08 22:55
gentleguy25-Jan-08 22:55 
AnswerRe: how to assign an array value to another [modified] Pin
CPallini25-Jan-08 23:30
mveCPallini25-Jan-08 23:30 
GeneralRe: how to assign an array value to another Pin
gentleguy26-Jan-08 0:18
gentleguy26-Jan-08 0:18 
GeneralRe: how to assign an array value to another Pin
CPallini26-Jan-08 1:59
mveCPallini26-Jan-08 1:59 
GeneralRe: how to assign an array value to another Pin
gentleguy26-Jan-08 2:17
gentleguy26-Jan-08 2:17 
QuestionRe: how to assign an array value to another Pin
CPallini26-Jan-08 2:26
mveCPallini26-Jan-08 2:26 
GeneralRe: how to assign an array value to another Pin
gentleguy26-Jan-08 2:29
gentleguy26-Jan-08 2:29 
GeneralRe: how to assign an array value to another Pin
CPallini26-Jan-08 2:58
mveCPallini26-Jan-08 2:58 
GeneralRe: how to assign an array value to another Pin
gentleguy27-Jan-08 1:32
gentleguy27-Jan-08 1:32 
QuestionRe: how to assign an array value to another Pin
CPallini27-Jan-08 2:49
mveCPallini27-Jan-08 2:49 
GeneralChange Folder path Pin
Paulraj G25-Jan-08 20:54
Paulraj G25-Jan-08 20:54 
GeneralRe: Change Folder path Pin
Maxwell Chen25-Jan-08 21:52
Maxwell Chen25-Jan-08 21:52 
GeneralRe: Change Folder path Pin
David Crow26-Jan-08 12:04
David Crow26-Jan-08 12:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.