Click here to Skip to main content
15,892,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalunlock user accounts Pin
sebastianos4-Aug-05 7:36
sebastianos4-Aug-05 7:36 
GeneralRe: unlock user accounts Pin
Blake Miller4-Aug-05 7:56
Blake Miller4-Aug-05 7:56 
GeneralRe: unlock user accounts Pin
IanG (Surreal Studio)4-Aug-05 12:23
IanG (Surreal Studio)4-Aug-05 12:23 
GeneralRe: unlock user accounts Pin
sebastianos4-Aug-05 14:44
sebastianos4-Aug-05 14:44 
GeneralRe: unlock user accounts Pin
sunit54-Aug-05 18:31
sunit54-Aug-05 18:31 
GeneralMultiple Keyboard events Pin
Jumpin' Jeff4-Aug-05 7:27
Jumpin' Jeff4-Aug-05 7:27 
GeneralRe: Multiple Keyboard events Pin
Blake Miller4-Aug-05 7:56
Blake Miller4-Aug-05 7:56 
GeneralRe: Multiple Keyboard events Pin
Jumpin' Jeff4-Aug-05 8:21
Jumpin' Jeff4-Aug-05 8:21 
Thanks!
I thought I had tried that, but must have messed something up.

Here it is again altered to the current state, and working....

LRESULT __declspec(dllexport)__stdcall  CALLBACK KeyboardProc(<br />
                            int nCode, <br />
                           WPARAM wParam, <br />
                            LPARAM lParam)<br />
{<br />
	if (((DWORD)lParam & 0x40000000) &&(HC_ACTION==nCode)) <br />
	{		<br />
		if (wParam==0x041)//'A' Key<br />
		{<br />
			BOOL bControlKeyDown = FALSE;<br />
			bControlKeyDown=GetAsyncKeyState(VK_CONTROL)>>((sizeof(SHORT) * 8) - 1);<br />
			if (bControlKeyDown != 0)<br />
  				MessageBox(0, "Success!, "Message", MB_OK);<br />
		}<br />
	}<br />
<br />
	LRESULT RetVal = CallNextHookEx( hkb, nCode, wParam, lParam );	<br />
	return  RetVal;<br />
}

GeneralRe: Multiple Keyboard events Pin
Blake Miller4-Aug-05 8:28
Blake Miller4-Aug-05 8:28 
GeneralRe: Multiple Keyboard events Pin
Jumpin' Jeff4-Aug-05 14:22
Jumpin' Jeff4-Aug-05 14:22 
GeneralRe: Multiple Keyboard events Pin
Jumpin' Jeff4-Aug-05 15:54
Jumpin' Jeff4-Aug-05 15:54 
GeneralRe: Multiple Keyboard events Pin
Jumpin' Jeff5-Aug-05 2:37
Jumpin' Jeff5-Aug-05 2:37 
GeneralRe: Multiple Keyboard events Pin
Blake Miller5-Aug-05 4:05
Blake Miller5-Aug-05 4:05 
GeneralUsing NtCreateFile Pin
Chintoo7234-Aug-05 7:25
Chintoo7234-Aug-05 7:25 
GeneralRe: Using NtCreateFile Pin
Toby Opferman4-Aug-05 11:54
Toby Opferman4-Aug-05 11:54 
Generalrunning with less cpu usage Pin
Chintoo7234-Aug-05 7:21
Chintoo7234-Aug-05 7:21 
GeneralRe: running with less cpu usage Pin
Blake Miller4-Aug-05 7:49
Blake Miller4-Aug-05 7:49 
GeneralGetThemeColor of disabled BP_PUSHBUTTON Pin
RazorBridge4-Aug-05 7:10
RazorBridge4-Aug-05 7:10 
GeneralRe: GetThemeColor of disabled BP_PUSHBUTTON Pin
Jose Lamas Rios4-Aug-05 18:12
Jose Lamas Rios4-Aug-05 18:12 
GeneralRe: GetThemeColor of disabled BP_PUSHBUTTON Pin
RazorBridge4-Aug-05 21:49
RazorBridge4-Aug-05 21:49 
GeneralDisallowing Ctrl-Alt-Del Pin
#realJSOP4-Aug-05 6:26
mve#realJSOP4-Aug-05 6:26 
GeneralRe: Disallowing Ctrl-Alt-Del Pin
Graham Bradshaw4-Aug-05 6:53
Graham Bradshaw4-Aug-05 6:53 
GeneralRe: Disallowing Ctrl-Alt-Del Pin
#realJSOP4-Aug-05 8:26
mve#realJSOP4-Aug-05 8:26 
GeneralRe: Disallowing Ctrl-Alt-Del Pin
Maximilien4-Aug-05 9:16
Maximilien4-Aug-05 9:16 
GeneralRe: Disallowing Ctrl-Alt-Del Pin
Graham Bradshaw4-Aug-05 10:37
Graham Bradshaw4-Aug-05 10:37 

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.