Click here to Skip to main content
15,891,423 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Process privileges elevation on runtime with Win7 UAC? Pin
LunaticFringe23-Sep-10 13:43
LunaticFringe23-Sep-10 13:43 
GeneralRe: Process privileges elevation on runtime with Win7 UAC? Pin
Moak24-Sep-10 5:42
Moak24-Sep-10 5:42 
AnswerRe: Process privileges elevation on runtime with Win7 UAC? Pin
«_Superman_»23-Sep-10 18:35
professional«_Superman_»23-Sep-10 18:35 
AnswerRe: Process privileges elevation on runtime with Win7 UAC? Pin
Eugen Podsypalnikov23-Sep-10 20:30
Eugen Podsypalnikov23-Sep-10 20:30 
GeneralRe: Process privileges elevation on runtime with Win7 UAC? Pin
Moak24-Sep-10 5:48
Moak24-Sep-10 5:48 
QuestionSetCursor question Pin
sashoalm23-Sep-10 5:41
sashoalm23-Sep-10 5:41 
AnswerRe: SetCursor question Pin
Sauro Viti23-Sep-10 5:49
professionalSauro Viti23-Sep-10 5:49 
QuestionHelp on TAPI....... Pin
AmbiguousName23-Sep-10 5:04
AmbiguousName23-Sep-10 5:04 
hello guys....I had been working on this but this did't work. Well this should work now. This is a small TAPI app which if, I call on my lanfline #, should print something
void WINAPI TapiInitialize() {
	LPLINEDEVCAPS lineDevCaps = NULL;
	lineDevCaps = (LPLINEDEVCAPS)LocalAlloc(LPTR, 4096);

	lineCallStatus = NULL;
	lineCallStatus = (LPLINECALLSTATUS)LocalAlloc(LPTR,4096);

	
	//create the event first..
	EventReply = CreateEvent(NULL,FALSE,FALSE,NULL);

	//clear the structure before the usage
	memset(&LineInitializeExParams,0,sizeof(LINEINITIALIZEEXPARAMS));

	//populate the options
	LineInitializeExParams.dwTotalSize = sizeof(LINEINITIALIZEEXPARAMS);
	LineInitializeExParams.dwOptions = LINEINITIALIZEEXOPTION_USEEVENT;

	TapiEvent = LineInitializeExParams.Handles.hEvent;
	if(TapiEvent==NULL)
		printf("\nTAPI event could not be created....");
	else
		printf("\nTAPI Event Created....");


	//call the LineInitializeEx function
	result = lineInitializeEx(&lineApp,NULL,(LINECALLBACK)lineCallbackFunc,NULL,&numDevs,&tapiVersion,&LineInitializeExParams);
	if (result!=0)	
		printf("TAPI could't be Initialized"); 
	else printf("\n\nTAPI Initialized..");

	num = numDevs;
	printf("\nNumber of lines available to this app:  %d",(LPWSTR)num);
	result = lineNegotiateAPIVersion(lineApp,0,API_EARLY_VERSION,API_CURRENT_VERSION,&tapiVersion,0);
	result = lineGetDevCaps(lineApp,0,tapiVersion,0,lineDevCaps);

	//opening a line
	result = lineOpen(lineApp,0,&hLine,tapiVersion,0x00000000,0,LINECALLPRIVILEGE_MONITOR,LINEMEDIAMODE_DATAMODEM,NULL);
	if(result!=0)
		printf("\n\nLINE could't be Opened...");
	else
		printf("\n\nLINE Opened...");

	result = lineGetStatusMessages(hLine,&lineStatus,0);
	if(result==0)
		printf("\n\nGetting line status...");
	else printf("\nError: Line status not getting...");
}
VOID CALLBACK lineCallbackFunc(DWORD hDevice,DWORD dwMsg, DWORD Param1, DWORD Param2, DWORD Param3) {
		printf("\nIncomg Line...");
}

help plzzzzzz.... Frown | :(
QuestionRe: Help on TAPI....... Pin
David Crow23-Sep-10 8:33
David Crow23-Sep-10 8:33 
QuestionHandling all exceptions in application [modified] Pin
Code-o-mat23-Sep-10 3:37
Code-o-mat23-Sep-10 3:37 
AnswerRe: Handling all exceptions in application Pin
Aescleal23-Sep-10 4:34
Aescleal23-Sep-10 4:34 
GeneralRe: Handling all exceptions in application Pin
Code-o-mat23-Sep-10 4:47
Code-o-mat23-Sep-10 4:47 
GeneralRe: Handling all exceptions in application Pin
Aescleal23-Sep-10 5:28
Aescleal23-Sep-10 5:28 
GeneralRe: Handling all exceptions in application Pin
Code-o-mat23-Sep-10 5:42
Code-o-mat23-Sep-10 5:42 
QuestionWhy do I get warning C4748? Pin
Stefan_Lang23-Sep-10 1:51
Stefan_Lang23-Sep-10 1:51 
QuestionRe: Why do I get warning C4748? Pin
David Crow23-Sep-10 2:56
David Crow23-Sep-10 2:56 
AnswerRe: Why do I get warning C4748? Pin
Stefan_Lang23-Sep-10 3:14
Stefan_Lang23-Sep-10 3:14 
AnswerRe: Why do I get warning C4748? Pin
Maximilien23-Sep-10 3:34
Maximilien23-Sep-10 3:34 
QuestionRe: Why do I get warning C4748? Pin
David Crow23-Sep-10 4:21
David Crow23-Sep-10 4:21 
AnswerRe: Why do I get warning C4748? Pin
Maximilien23-Sep-10 4:43
Maximilien23-Sep-10 4:43 
GeneralRe: Why do I get warning C4748? Pin
Stefan_Lang23-Sep-10 4:34
Stefan_Lang23-Sep-10 4:34 
GeneralRe: Why do I get warning C4748? Pin
Luc Pattyn23-Sep-10 4:48
sitebuilderLuc Pattyn23-Sep-10 4:48 
GeneralRe: Why do I get warning C4748? Pin
Stefan_Lang23-Sep-10 6:55
Stefan_Lang23-Sep-10 6:55 
GeneralRe: Why do I get warning C4748? Pin
Luc Pattyn23-Sep-10 7:16
sitebuilderLuc Pattyn23-Sep-10 7:16 
AnswerRe: Why do I get warning C4748? [modified] Pin
Stefan_Lang23-Sep-10 23:03
Stefan_Lang23-Sep-10 23:03 

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.