Click here to Skip to main content
15,914,160 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow Do display a Name in place of SMS sender phone no using AT Commands? Pin
Le@rner19-Feb-10 23:43
Le@rner19-Feb-10 23:43 
AnswerRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
Garth J Lancaster20-Feb-10 0:10
professionalGarth J Lancaster20-Feb-10 0:10 
AnswerRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
Richard MacCutchan20-Feb-10 0:37
mveRichard MacCutchan20-Feb-10 0:37 
QuestionRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
Maximilien20-Feb-10 1:48
Maximilien20-Feb-10 1:48 
AnswerRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
Le@rner20-Feb-10 1:53
Le@rner20-Feb-10 1:53 
GeneralRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
Richard MacCutchan20-Feb-10 4:02
mveRichard MacCutchan20-Feb-10 4:02 
GeneralRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
Maximilien20-Feb-10 4:26
Maximilien20-Feb-10 4:26 
GeneralRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
Le@rner21-Feb-10 18:20
Le@rner21-Feb-10 18:20 
GeneralRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
m_k_b_h14-Jul-11 0:02
m_k_b_h14-Jul-11 0:02 
QuestionSecondary Desktop Pin
trioum19-Feb-10 21:11
trioum19-Feb-10 21:11 
AnswerRe: Secondary Desktop Pin
Richard MacCutchan20-Feb-10 0:38
mveRichard MacCutchan20-Feb-10 0:38 
GeneralRe: Secondary Desktop Pin
Maximilien20-Feb-10 1:53
Maximilien20-Feb-10 1:53 
GeneralRe: Secondary Desktop Pin
trioum20-Feb-10 21:44
trioum20-Feb-10 21:44 
AnswerRe: Secondary Desktop Pin
WoutL20-Feb-10 2:32
WoutL20-Feb-10 2:32 
QuestionRepeat a typedef or include a header with the typedef? Pin
asincero19-Feb-10 13:22
asincero19-Feb-10 13:22 
AnswerRe: Repeat a typedef or include a header with the typedef? Pin
«_Superman_»19-Feb-10 15:35
professional«_Superman_»19-Feb-10 15:35 
AnswerRe: Repeat a typedef or include a header with the typedef? Pin
cmk20-Feb-10 12:21
cmk20-Feb-10 12:21 
QuestionKeyBoard Hook Pin
devidmorton19-Feb-10 9:22
devidmorton19-Feb-10 9:22 
AnswerRe: KeyBoard Hook [modified] Pin
Abhi Lahare19-Feb-10 10:05
Abhi Lahare19-Feb-10 10:05 
GeneralRe: KeyBoard Hook [modified] Pin
devidmorton20-Feb-10 8:31
devidmorton20-Feb-10 8:31 
SIR thanks for responce.
What i do in DllMain?
#include "stdafx.h"
#include "keydll3.h"

#pragma data_seg(".HOOKDATA")//Shared data among all instances.
HHOOK hook = NULL;
HWND hwnd = NULL;
#pragma data_seg()

#pragma comment(linker, "/SECTION:.HOOKDATA,RWS")//linker directive

HINSTANCE hinstance = NULL;

BOOL APIENTRY DllMain( HANDLE hModule, 
                       DWORD  ul_reason_for_call, 
                       LPVOID lpReserved
					 )
{
    switch (ul_reason_for_call)
	{
		case DLL_PROCESS_ATTACH:
		case DLL_THREAD_ATTACH:
		case DLL_THREAD_DETACH:
		case DLL_PROCESS_DETACH:
			break;
    }

	hinstance = (HINSTANCE)hModule;
	hook = NULL;

    return TRUE;
}


KEYDLL3_API void installhook(HWND h)
{
	hook = NULL;
	hwnd = h;
	hook = SetWindowsHookEx(WH_KEYBOARD,hookproc,hinstance,NULL);
	if(hook==NULL)
		MessageBox(NULL,"Unable to install hook","Error!",MB_OK);
}

KEYDLL3_API void removehook()
{
	UnhookWindowsHookEx(hook);
}

KEYDLL3_API LRESULT CALLBACK hookproc(int ncode,WPARAM wparam,LPARAM lparam)
{
	if(ncode>=0)
	{
		if((lparam & 0x80000000) == 0x00000000)//Check whether key was pressed(not released).
		{
			hwnd = FindWindow("#32770","Keylogger Exe");//Find application window handle
			PostMessage(hwnd,WM_USER+755,wparam,lparam);//Send info to app Window.
		}
	}
	return ( CallNextHookEx(hook,ncode,wparam,lparam) );//pass control to next hook in the hook chain.
}

or give me some other dll web address.
Please help me....
modified on Saturday, February 20, 2010 2:49 PM

GeneralRe: KeyBoard Hook Pin
Abhi Lahare22-Feb-10 5:13
Abhi Lahare22-Feb-10 5:13 
QuestionFast and efficeint way to rotate a bitmap at integer multiples of 90°?? Pin
Kiran Satish19-Feb-10 9:05
Kiran Satish19-Feb-10 9:05 
AnswerRe: Fast and efficeint way to rotate a bitmap at integer multiples of 90°?? Pin
Chris Losinger19-Feb-10 12:09
professionalChris Losinger19-Feb-10 12:09 
AnswerRe: Fast and efficeint way to rotate a bitmap at integer multiples of 90°?? Pin
Jonathan Davies20-Feb-10 1:17
Jonathan Davies20-Feb-10 1:17 
GeneralRe: Fast and efficeint way to rotate a bitmap at integer multiples of 90°?? Pin
Stephen Hewitt20-Feb-10 3:33
Stephen Hewitt20-Feb-10 3:33 

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.