Article ID: 171143
Article Last Modified on 11/21/2006
void Service_Main(DWORD dwArgc, LPTSTR *lpszArgv)NOTE: The Service_Main() entry point is user defined through the SERVICE_TABLE_ENTRY structure. The first argument passed to the Service_Main() indicates the number of parameters passed to the service while the second parameter contains an array of strings containing the arguments. The first string in the array will always be the name of the service. Any additional strings in the array will contain the arguments passed to the service through the StartService API.
"d:\\foo\\foo.exe franki hosun"
Keywords: kbhowto kbkernbase kbprogramming kbservice KB171143