SLNKDWF.About Sleep method erbij

svn path=/Slnkdwf/trunk/; revision=20547
This commit is contained in:
Jos Groot Lipman
2014-02-05 13:20:23 +00:00
parent 94acf841f6
commit 8bcc4f50e5
3 changed files with 10 additions and 0 deletions

View File

@@ -112,3 +112,11 @@ STDMETHODIMP CAbout::get_usTimer(DOUBLE* pVal)
return S_OK;
}
// Handig voor sommige load-tests
STDMETHODIMP CAbout::Sleep(LONG pVal)
{
::Sleep(pVal);
return S_OK;
}

View File

@@ -48,6 +48,7 @@ public:
STDMETHOD(get_VersionMinor)(LONG* pVal);
STDMETHOD(get_VersionString)(BSTR* pVal);
STDMETHOD(get_usTimer)(DOUBLE* pVal);
STDMETHOD(Sleep)(LONG pVal);
};
OBJECT_ENTRY_AUTO(__uuidof(About), CAbout)

View File

@@ -123,6 +123,7 @@ interface IAbout : IDispatch{
[propget, id(6), helpstring("property VersionMinor")] HRESULT VersionMinor([out, retval] LONG* pVal);
[propget, id(7), helpstring("property VersionString")] HRESULT VersionString([out, retval] BSTR* pVal);
[propget, id(8), helpstring("property usTimer")] HRESULT usTimer([out, retval] DOUBLE* pVal);
[id(9), helpstring("method Sleep")] HRESULT Sleep([in] LONG millisec);
};
[
object,