void main(void)
{
OutputDebugString("Entering : void main(void)");
SERVICE_TABLE_ENTRY Service_Table_Entry[] = {
{ (LPTSTR) SERVICE_NAME, (LPSERVICE_MAIN_FUNCTION) ServiceMain },
{ 0, 0 },
};
hThread = NULL; // Thread for the actual work
hServiceEventDone = NULL; // Event used to keep ServiceMain from completing
hThreadServiceDone = NULL; // Event set by ServiceThread indicates exited
StartServiceCtrlDispatcher(Service\_Table\_Entry)
OutputDebugString("Exiting : void main(void)");
}
This is the entrypoint of the service. If I run this service by Domain\administrator account debugview shows "Entering : void main(void)" entry. But, When I try to run this service as Local System Account it not even reaches to "Entering : void main(void)" statement. Thanks in advance. Mahesh R. Kulkarni
The secret of life is not enjoyment but education through experience. - Swami Vivekananda.