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.

26 lines
838 B

  1. /****************************************************************************
  2. * SpSapiServerHelper.inl *
  3. *------------------------*
  4. * Include file with definition and implementation of some of the
  5. * SpSapiServer functions
  6. ***************************************************************** BeckyW ***/
  7. #define SERVER_IS_ALIVE_EVENT_NAME _T("SapiServerIsAlive")
  8. #define SERVER_IS_ALIVE_EVENT_TIMEOUT 30000
  9. HRESULT SpCreateIsServerAliveEvent(HANDLE * phevent)
  10. {
  11. SPDBG_FUNC("SpCreateIsServerAliveEvent");
  12. HRESULT hr = S_OK;
  13. *phevent = CreateEvent(NULL, TRUE, FALSE, SERVER_IS_ALIVE_EVENT_NAME);
  14. if (*phevent == NULL)
  15. {
  16. hr = SpHrFromLastWin32Error();
  17. SPDBG_ASSERT(FAILED(hr));
  18. }
  19. SPDBG_REPORT_ON_FAIL(hr);
  20. return hr;
  21. } /* SpCreateIsServerAliveEvent */