RE: Resend of Adds NET START to net.exe

2007-05-08 Thread Rolf Kalbermatter
Tim Schwartz wrote: +if(!strcasecmp(operation, "start")) +{ +printf("The %s service is starting.\n", service_display_name); +result = StartService(serviceHandle,0,NULL); +CloseServiceHandle(serviceHandle); +if(!result) printf("The %s service failed to start.

Re: Resend of Adds NET START to net.exe

2007-05-08 Thread Dmitry Timoshkov
"Dmitry Timoshkov" <[EMAIL PROTECTED]> wrote: +if(!buffer_size) +{ The check above is wrong. Please ignore this one. -- Dmitry.

Re: Resend of Adds NET START to net.exe

2007-05-08 Thread Dmitry Timoshkov
"Tim Schwartz" <[EMAIL PROTECTED]> wrote: +GetServiceDisplayName(SCManager, service_name, NULL, &buffer_size); You need to check GetServiceDisplayName return value here and later. +/* until GetServiceDisplayName() is implemented, buffer_size will always be zero so the service short na