Click here to Skip to main content
16,004,453 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Linker Error_ URGENT Pin
led mike5-May-06 6:27
led mike5-May-06 6:27 
GeneralRe: Linker Error_ URGENT Pin
ThiagoFragoso5-May-06 6:58
ThiagoFragoso5-May-06 6:58 
GeneralRe: Linker Error_ URGENT Pin
led mike5-May-06 8:05
led mike5-May-06 8:05 
GeneralRe: Linker Error_ URGENT Pin
David Crow5-May-06 8:18
David Crow5-May-06 8:18 
GeneralRe: Linker Error_ URGENT Pin
Jörgen Sigvardsson5-May-06 10:58
Jörgen Sigvardsson5-May-06 10:58 
AnswerRe: Linker Error_ URGENT Pin
Michał Zalewski5-May-06 6:54
Michał Zalewski5-May-06 6:54 
GeneralRe: Linker Error_ URGENT Pin
ThiagoFragoso5-May-06 10:22
ThiagoFragoso5-May-06 10:22 
QuestionHelp Thread & GetForegroundWindow Pin
Alksindrs5-May-06 6:00
Alksindrs5-May-06 6:00 
Hi,
I create a service with the following instruction:
newService = CreateService(
scm, //scm database
ServiceName, //service name
ServiceName, //display name
SERVICE_ALL_ACCESS, //access rights to the service
//SERVICE_WIN32_OWN_PROCESS, //service type first attempt
SERVICE_WIN32_OWN_PROCESS | SERVICE_INTERACTIVE_PROCESS, //second attempt
SERVICE_AUTO_START, //service start type
SERVICE_ERROR_NORMAL, //error control type
szBuffer, //service path
NULL, //no load ordering group
NULL, //no tag identifier
NULL, //no dependencies
NULL, //LocalSystem account
NULL); //no password
and inside the thread I call the GetForegroundWindow() but the result is... NULL!!!
What can I do please?
Thank you anywhere.


Alksindrs
AnswerRe: Help Thread & GetForegroundWindow Pin
led mike5-May-06 6:23
led mike5-May-06 6:23 
GeneralRe: Help Thread & GetForegroundWindow Pin
Alksindrs5-May-06 6:42
Alksindrs5-May-06 6:42 
GeneralRe: Help Thread & GetForegroundWindow Pin
led mike5-May-06 8:19
led mike5-May-06 8:19 
Questionregistering missing DLLs Pin
Paps25-May-06 5:07
Paps25-May-06 5:07 
AnswerRe: registering missing DLLs Pin
David Crow5-May-06 5:23
David Crow5-May-06 5:23 
AnswerRe: registering missing DLLs Pin
ThatsAlok6-May-06 23:12
ThatsAlok6-May-06 23:12 
QuestionSaveBarState and How to remove Registry entry while UnInstallation Pin
Sarvan AL5-May-06 4:59
Sarvan AL5-May-06 4:59 
AnswerRe: SaveBarState and How to remove Registry entry while UnInstallation Pin
David Crow5-May-06 5:20
David Crow5-May-06 5:20 
QuestionPoint in the right direction Pin
Stan the man5-May-06 4:15
Stan the man5-May-06 4:15 
AnswerRe: Point in the right direction Pin
Cedric Moonen5-May-06 4:33
Cedric Moonen5-May-06 4:33 
AnswerRe: Point in the right direction Pin
David Crow5-May-06 4:44
David Crow5-May-06 4:44 
QuestionToggle Button Pin
atimpoo5-May-06 3:39
atimpoo5-May-06 3:39 
AnswerRe: Toggle Button Pin
Cedric Moonen5-May-06 3:46
Cedric Moonen5-May-06 3:46 
GeneralRe: Toggle Button Pin
Trollslayer5-May-06 8:47
mentorTrollslayer5-May-06 8:47 
AnswerRe: Toggle Button Pin
Maxwell Chen5-May-06 8:51
Maxwell Chen5-May-06 8:51 
GeneralRe: Toggle Button Pin
Cedric Moonen5-May-06 21:44
Cedric Moonen5-May-06 21:44 
GeneralRe: Toggle Button Pin
Trollslayer5-May-06 22:24
mentorTrollslayer5-May-06 22:24 

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.