Source code of Windows XP (NT5)
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.

57 lines
1.8 KiB

  1. //#pragma title( "TService.hpp - SCM interface for MCS service" )
  2. /*
  3. Copyright (c) 1995-1998, Mission Critical Software, Inc. All rights reserved.
  4. ===============================================================================
  5. Module - TService.hpp
  6. System - Common
  7. Author - Rich Denham
  8. Created - 1997-08-17
  9. Description - SCM interface for MCS service
  10. Updates -
  11. ===============================================================================
  12. */
  13. #ifndef MCSINC_TService_hpp
  14. #define MCSINC_TService_hpp
  15. enum TScmEpRc
  16. {
  17. TScmEpRc_Unknown, // unknown
  18. TScmEpRc_OkCli, // normal completion (run as CLI)
  19. TScmEpRc_OkSrv, // normal completion (run as service)
  20. TScmEpRc_InvArgCli, // invalid arguments (command line)
  21. TScmEpRc_InvArgSrv, // invalid arguments (service start)
  22. };
  23. // Provided by TService.cpp
  24. TScmEpRc // TScmEp return code
  25. TScmEp(
  26. int argc ,// in -argument count
  27. char const ** argv ,// in -argument array
  28. TCHAR * nameService // in -name of service
  29. );
  30. // Provided by TService user
  31. BOOL // ret-TRUE if argument accepted
  32. UScmCmdLineArgs(
  33. char const * arg // in -command line argument
  34. );
  35. BOOL // ret-TRUE if argument accepted
  36. UScmCmdLineArgs(
  37. WCHAR const * arg // in -command line argument
  38. );
  39. BOOL // ret-TRUE if force CLI
  40. UScmForceCli();
  41. void
  42. UScmEp(
  43. // BOOL bService // in -FALSE=Cli,TRUE=Service
  44. );
  45. #endif // MCSINC_TService_hpp
  46. // TService.hpp - end of file