Click here to Skip to main content
15,920,576 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ENTER and SHIFT+ENTER in simple text edit box (EDITTEXT) Pin
Michael Dunn15-Feb-07 20:43
sitebuilderMichael Dunn15-Feb-07 20:43 
QuestionQuick repaints Pin
BishGada15-Feb-07 19:42
BishGada15-Feb-07 19:42 
QuestionRe: Quick repaints Pin
prasad_som15-Feb-07 19:53
prasad_som15-Feb-07 19:53 
QuestionUnable to create Service using Network Service Account Pin
AbbyIndian15-Feb-07 19:03
AbbyIndian15-Feb-07 19:03 
AnswerRe: Unable to create Service using Network Service Account Pin
Mark Salsbery16-Feb-07 7:02
Mark Salsbery16-Feb-07 7:02 
GeneralRe: Unable to create Service using Network Service Account Pin
AbbyIndian16-Feb-07 7:40
AbbyIndian16-Feb-07 7:40 
GeneralRe: Unable to create Service using Network Service Account Pin
Mark Salsbery16-Feb-07 8:06
Mark Salsbery16-Feb-07 8:06 
GeneralRe: Unable to create Service using Network Service Account Pin
AbbyIndian16-Feb-07 8:24
AbbyIndian16-Feb-07 8:24 
Hi..

Here's the relevant code

SC_HANDLE hSCM = ::OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);

SC_HANDLE hService = ::CreateService(
hSCM, m_szServiceName, m_szServiceName,
SERVICE_ALL_ACCESS, SERVICE_WIN32_OWN_PROCESS|SERVICE_INTERACTIVE_PROCESS,
SERVICE_DEMAND_START, SERVICE_ERROR_NORMAL,
szFilePath, NULL, NULL, _T("RCQSS\0"), _T("NT AUTHORITY\NetworkService"), NULL);


..The problem is in the last 2 params only...coz if I make the last 2 params NULL,NULL...the
service gets created and entries are made in the registry with Objectname=LocalService

And I want the ObjectName to be 'NT AUTHORITY\NetworkService'

Another possibility: Maybe, some others params don't just create the perfect combination
when the service name is NetworkService..and hence they also need to be changed when the second last param is 'NT AUTHORITY\NetworkService'...


Thnx

...A Programmer may or may not be the master of the programming language grammar...

GeneralRe: Unable to create Service using Network Service Account Pin
Mark Salsbery16-Feb-07 8:46
Mark Salsbery16-Feb-07 8:46 
Question2 custom controls and scrolling Pin
cyn815-Feb-07 18:43
cyn815-Feb-07 18:43 
AnswerRe: 2 custom controls and scrolling Pin
Naveen15-Feb-07 19:05
Naveen15-Feb-07 19:05 
GeneralRe: 2 custom controls and scrolling Pin
cyn819-Feb-07 23:19
cyn819-Feb-07 23:19 
GeneralRe: 2 custom controls and scrolling Pin
Naveen19-Feb-07 23:22
Naveen19-Feb-07 23:22 
GeneralRe: 2 custom controls and scrolling Pin
cyn823-Feb-07 0:45
cyn823-Feb-07 0:45 
GeneralRe: 2 custom controls and scrolling Pin
Naveen23-Feb-07 0:53
Naveen23-Feb-07 0:53 
QuestionA question about Speech SDK API Pin
chocm15-Feb-07 18:32
chocm15-Feb-07 18:32 
AnswerRe: how to embed my code in en image Pin
Hamid_RT15-Feb-07 18:23
Hamid_RT15-Feb-07 18:23 
GeneralRe: how to embed my code in en image Pin
sepel16-Feb-07 0:54
sepel16-Feb-07 0:54 
AnswerRe: how to embed my code in en image Pin
Sauce!15-Feb-07 19:29
Sauce!15-Feb-07 19:29 
GeneralRe: how to embed my code in en image Pin
sepel16-Feb-07 0:34
sepel16-Feb-07 0:34 
GeneralRe: how to embed my code in en image Pin
Sauce!16-Feb-07 1:18
Sauce!16-Feb-07 1:18 
GeneralRe: how to embed my code in en image Pin
sepel16-Feb-07 21:21
sepel16-Feb-07 21:21 
QuestionProblem with IXMLDOMNode::get_nodeValue Pin
NiceNaidu15-Feb-07 18:11
NiceNaidu15-Feb-07 18:11 
QuestionRe: Problem with IXMLDOMNode::get_nodeValue Pin
prasad_som15-Feb-07 18:47
prasad_som15-Feb-07 18:47 
AnswerRe: Problem with IXMLDOMNode::get_nodeValue Pin
NiceNaidu15-Feb-07 19:08
NiceNaidu15-Feb-07 19:08 

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.