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.

35 lines
1.2 KiB

  1. /*
  2. File service.h
  3. Defines Dialup Server Service Object.
  4. Paul Mayfield, 11/3/97
  5. */
  6. #ifndef __rassrvui_service
  7. #define __rassrvui_service
  8. // Creates/destroys instances of dialup server service objects
  9. DWORD SvcOpenRemoteAccess(HANDLE * phService);
  10. DWORD SvcOpenRasman(HANDLE * phService);
  11. DWORD SvcOpenServer(HANDLE * phService);
  12. DWORD SvcClose(HANDLE hService);
  13. // Gets the status of a dialup server service object. If the service
  14. // is in the process of being started or stopped or paused, then only
  15. // SvcIsPending will return TRUE.
  16. DWORD SvcIsStarted (HANDLE hService, PBOOL pbStarted);
  17. DWORD SvcIsStopped (HANDLE hService, PBOOL pbStopped);
  18. DWORD SvcIsPaused (HANDLE hService, PBOOL pbPaused );
  19. DWORD SvcIsPending (HANDLE hService, PBOOL pbPending);
  20. // Start and stop the service. Both functions block until the service
  21. // completes startup/stop or until dwTimeout (in seconds) expires.
  22. DWORD SvcStart(HANDLE hService, DWORD dwTimeout);
  23. DWORD SvcStop(HANDLE hService, DWORD dwTimeout);
  24. // Changes the configuration of the service
  25. DWORD SvcMarkAutoStart(HANDLE hService);
  26. DWORD SvcMarkDisabled(HANDLE hService);
  27. #endif