Click here to Skip to main content
15,887,676 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Bitmap Pin
transoft7-Dec-09 5:04
transoft7-Dec-09 5:04 
GeneralRe: Bitmap Pin
«_Superman_»7-Dec-09 5:47
professional«_Superman_»7-Dec-09 5:47 
AnswerRe: Bitmap Pin
loyal ginger7-Dec-09 5:23
loyal ginger7-Dec-09 5:23 
AnswerRe: Bitmap Pin
Iain Clarke, Warrior Programmer8-Dec-09 4:14
Iain Clarke, Warrior Programmer8-Dec-09 4:14 
QuestionRunning a windows service in any other account other than 'SYSTEM' Pin
Kushagra Tiwari7-Dec-09 3:38
Kushagra Tiwari7-Dec-09 3:38 
AnswerRe: Running a windows service in any other account other than 'SYSTEM' Pin
Covean7-Dec-09 4:13
Covean7-Dec-09 4:13 
GeneralRe: Running a windows service in any other account other than 'SYSTEM' Pin
Kushagra Tiwari7-Dec-09 4:22
Kushagra Tiwari7-Dec-09 4:22 
GeneralRe: Running a windows service in any other account other than 'SYSTEM' Pin
Covean7-Dec-09 4:32
Covean7-Dec-09 4:32 
On install-time with service installer:

[RunInstallerAttribute(true)]
public class ControllerInstaller : Installer
{

      public ControllerInstaller()
      {
            processInstaller=new ServiceProcessInstaller();
            serviceInstaller=new ServiceInstaller();
            processInstaller.Account=ServiceAccount.LocalSystem; <----------- here
            serviceInstaller.StartType=ServiceStartMode.Automatic;
            serviceInstaller.DisplayName = "DisplayName";
            serviceInstaller.ServiceName = "ServiceName";
            Installers.Add(serviceInstaller);
            Installers.Add(processInstaller);
      }

      private ServiceInstaller serviceInstaller;
      private ServiceProcessInstaller processInstaller;
}
;

or CreateService (Win-API).

At least look at the functions ChangeServiceConfig/ChangeServiceConfig2 if you want to change it "live"/for the next start.

Greetings
Covean

GeneralRe: Running a windows service in any other account other than 'SYSTEM' Pin
Kushagra Tiwari7-Dec-09 5:46
Kushagra Tiwari7-Dec-09 5:46 
GeneralRe: Running a windows service in any other account other than 'SYSTEM' Pin
«_Superman_»7-Dec-09 4:33
professional«_Superman_»7-Dec-09 4:33 
GeneralRe: Running a windows service in any other account other than 'SYSTEM' Pin
Kushagra Tiwari7-Dec-09 5:47
Kushagra Tiwari7-Dec-09 5:47 
QuestionMessage Removed Pin
7-Dec-09 0:26
Elsie7-Dec-09 0:26 
AnswerRe: Application crash if left idle Pin
Sarath C7-Dec-09 0:30
Sarath C7-Dec-09 0:30 
GeneralRe: Application crash if left idle Pin
Elsie7-Dec-09 0:53
Elsie7-Dec-09 0:53 
GeneralRe: Application crash if left idle Pin
Sarath C7-Dec-09 0:54
Sarath C7-Dec-09 0:54 
GeneralRe: Application crash if left idle Pin
Elsie7-Dec-09 1:07
Elsie7-Dec-09 1:07 
GeneralRe: Application crash if left idle Pin
Sarath C7-Dec-09 1:18
Sarath C7-Dec-09 1:18 
GeneralRe: Application crash if left idle Pin
Elsie7-Dec-09 1:31
Elsie7-Dec-09 1:31 
AnswerRe: Application crash if left idle Pin
Rolf Kristensen10-Dec-09 11:43
Rolf Kristensen10-Dec-09 11:43 
Questionuse mouse in openCV ???? Pin
a04.lqd7-Dec-09 0:19
a04.lqd7-Dec-09 0:19 
AnswerRe: use mouse in openCV ???? Pin
Sarath C7-Dec-09 0:35
Sarath C7-Dec-09 0:35 
AnswerRe: use mouse in openCV ???? Pin
Tim Craig7-Dec-09 18:18
Tim Craig7-Dec-09 18:18 
QuestionRemoval of class from library Pin
Still learning how to code6-Dec-09 23:40
Still learning how to code6-Dec-09 23:40 
AnswerRe: Removal of class from library Pin
Adam Roderick J6-Dec-09 23:46
Adam Roderick J6-Dec-09 23:46 
AnswerRe: Removal of class from library Pin
Cedric Moonen7-Dec-09 0:15
Cedric Moonen7-Dec-09 0:15 

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.