global hook

hi. i want monitoring deleting file! i try to cntrl Hot Key with registerhotkey function. its work but have some problem for example i cant delete file just i can give hot key and some other problem...! pleasae help me if i must use global hook for monitoring windows message or other way. tnx a lot.
What have you done so far( code) and what about the control hot-key?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <Windows.h>

#if defined __cplusplus
#define EXPORT extern "C" __declspec( dllexport )
#else
#define EXPORT            __declspec( dllexport )
#endif

EXPORT LRESULT myProc(int nCode, WPARAM wparam, LPARAM lparam)
{
	if ( nCode == HC_ACTION ) {
		PMSG m = (PMSG)lparam;

		if ( m->message == ?!!! )
			// do work
	}

	return CallNextHookEx(0, nCode, wparam, lparam);
}


this is my dll and driver of global hook. if i want to control delete files , what do i do ?
i want control delete files on windows.
Last edited on
Topic archived. No new replies allowed.