Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
741 B

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. SERVICES.CXX
  5. Abstract:
  6. This is the main routine for the Win32 Service Controller and
  7. Registry (Screg) RPC server process.
  8. Author:
  9. Dan Lafferty (danl) 25-Oct-1993
  10. Modification History:
  11. --*/
  12. #include "precomp.hxx"
  13. #include <ntrpcp.h>
  14. extern "C"
  15. int __cdecl
  16. main (
  17. int argc,
  18. PCHAR argv[]
  19. )
  20. /*++
  21. Routine Description:
  22. Arguments:
  23. Return Value:
  24. --*/
  25. {
  26. //
  27. // Initialize the RPC server
  28. //
  29. if (NT_SUCCESS(RpcpInitRpcServer()))
  30. {
  31. SvcctrlMain(argc, argv);
  32. }
  33. //
  34. // We should never get here!
  35. //
  36. ASSERT( FALSE );
  37. return 0;
  38. }