ClearBox Server v1.2 Developer's Guide |
ICommonExtender::RequestTimerCallCalled by server to request whether extension needs to receive calls on timer. If extension needs to perform some task periodically, it should make use of this method. HRESULT RequestTimerCall( [in,out] unsigned long * secsInterval); Parameters
Return ValuesExtension must return S_OK if it needs to receive calls and secsInterval is set to appropriate value, S_FALSE or any error code otherwise. Thread SafetyThis method is called in context of SCHEDULE thread. (See Server Threads Model for details.) You should synchronize data which is shared with other threads. RemarksIf extension returns value other than S_OK, secsInterval is ignored Example CodeAfter this code execution ICommonExtender::TimerCall will be called every 10 seconds STMETHODIMP CTest::RequestTimerCall (unsigned long * secsInterval) { *secsInterval=10; return S_OK; } See AlsoICommonExtender, ICommonExtender::TimerCall © 2001-2003 XPerience Technologies. www.xperiencetech.com |
Created by chm2web html help conversion utility. |