windows-nt/Source/XPSP1/NT/enduser/speech/common/include/spsapiserverhelper.inl
2020-09-26 16:20:57 +08:00

27 lines
812 B
C++

/****************************************************************************
* 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 */