Click here to Skip to main content
15,895,740 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Outlook Express Pin
BaldwinMartin7-Jan-04 19:52
BaldwinMartin7-Jan-04 19:52 
GeneralRe: Outlook Express Pin
Joel Lucsy7-Jan-04 3:11
Joel Lucsy7-Jan-04 3:11 
GeneralRe: Outlook Express Pin
BaldwinMartin7-Jan-04 19:49
BaldwinMartin7-Jan-04 19:49 
GeneralSmall Help. Pin
Prakash Nadar6-Jan-04 20:41
Prakash Nadar6-Jan-04 20:41 
GeneralRe: Small Help. Pin
Antti Keskinen7-Jan-04 1:44
Antti Keskinen7-Jan-04 1:44 
GeneralRe: Small Help. Pin
shultas7-Jan-04 2:56
shultas7-Jan-04 2:56 
GeneralRe: Small Help. Pin
Prakash Nadar7-Jan-04 6:55
Prakash Nadar7-Jan-04 6:55 
GeneralRe: Small Help. Pin
shultas7-Jan-04 11:16
shultas7-Jan-04 11:16 
Okay cool. Then it is using CreateService(). I just wanted to give you an extra idea too. You can make it so when you install your service it automatically sets to start when the computer starts. (instead of having to run the service manager and do that yourself) The default (using the wizard) is not to do that (starts only on demand from service manager is the default). It's a small change in your code to make that happen too. You'll look in the code under the Install() method.
SC_HANDLE hService = ::CreateService( ... look for that line, and where it says SERVICE_DEMAND_START ... just change that to one of the ones below. (such as SERVICE_AUTO_START)

dwStartType
[in] Service start options. This parameter can be one of the following values. Type Meaning
SERVICE_AUTO_START A service started automatically by the service control manager during system startup.
SERVICE_BOOT_START A device driver started by the system loader. This value is valid only for driver services.
SERVICE_DEMAND_START A service started by the service control manager when a process calls the StartService function.
SERVICE_DISABLED A service that cannot be started. Attempts to start the service result in the error code ERROR_SERVICE_DISABLED.
SERVICE_SYSTEM_START A device driver started by the IoInitSystem function. This value is valid only for driver services.

GeneralSetActiveView Pin
skylonely6-Jan-04 20:29
skylonely6-Jan-04 20:29 
GeneralRe: SetActiveView Pin
morefalt6-Jan-04 23:32
morefalt6-Jan-04 23:32 
GeneralCFileDialog - Open Dialog Pin
murali_utr6-Jan-04 20:21
murali_utr6-Jan-04 20:21 
GeneralRe: CFileDialog - Open Dialog Pin
BaldwinMartin6-Jan-04 21:08
BaldwinMartin6-Jan-04 21:08 
GeneralRe: CFileDialog - Open Dialog Pin
shultas7-Jan-04 2:14
shultas7-Jan-04 2:14 
GeneralThanks Pin
murali_utr7-Jan-04 16:04
murali_utr7-Jan-04 16:04 
GeneralCompiling problem.. Pin
KellyR6-Jan-04 17:55
KellyR6-Jan-04 17:55 
GeneralRe: Compiling problem.. Pin
KellyR6-Jan-04 18:01
KellyR6-Jan-04 18:01 
GeneralCListCtrl and Printing Pin
Sitaram Sukumar6-Jan-04 17:37
Sitaram Sukumar6-Jan-04 17:37 
GeneralRe: CListCtrl and Printing Pin
sunil samineni6-Jan-04 18:53
sunil samineni6-Jan-04 18:53 
GeneralRe: CListCtrl and Printing Pin
Selvam R6-Jan-04 19:13
professionalSelvam R6-Jan-04 19:13 
Generala question about createprocess Pin
cchere6-Jan-04 17:36
cchere6-Jan-04 17:36 
GeneralRe: a question about createprocess Pin
Selvam R6-Jan-04 19:19
professionalSelvam R6-Jan-04 19:19 
GeneralRe: a question about createprocess Pin
Anonymous7-Jan-04 6:19
Anonymous7-Jan-04 6:19 
GeneralRe: a question about createprocess Pin
David Crow7-Jan-04 6:44
David Crow7-Jan-04 6:44 
GeneralRe: a question about createprocess Pin
cchere7-Jan-04 9:41
cchere7-Jan-04 9:41 
GeneralRe: a question about createprocess Pin
David Crow7-Jan-04 9:45
David Crow7-Jan-04 9:45 

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.