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

/****************************************************************************
* SpSapiServerHelper.inl *
*------------------------*
* Include file with definition and implementation of some of the
* SpSapiServer functions
***************************************************************** BeckyW ***/
#define SERVER_IS_ALIVE_EVENT_NAME _T("SapiServerIsAlive")
#define SERVER_IS_ALIVE_EVENT_TIMEOUT 30000
HRESULT SpCreateIsServerAliveEvent(HANDLE * phevent)
{
SPDBG_FUNC("SpCreateIsServerAliveEvent");
HRESULT hr = S_OK;
*phevent = CreateEvent(NULL, TRUE, FALSE, SERVER_IS_ALIVE_EVENT_NAME);
if (*phevent == NULL)
{
hr = SpHrFromLastWin32Error();
SPDBG_ASSERT(FAILED(hr));
}
SPDBG_REPORT_ON_FAIL(hr);
return hr;
} /* SpCreateIsServerAliveEvent */