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.

22 lines
606 B

  1. #include <windows.h>
  2. #include <commain.h>
  3. #include <clsfac.h>
  4. #include <win32clock.h>
  5. #include <tchar.h>
  6. // {C4819C8D-9AB8-4b2f-B8AE-C77DABF553D5}
  7. static const CLSID CLSID_CurrentTimeProvider = {0xc4819c8d, 0x9ab8, 0x4b2f, {0xb8, 0xae, 0xc7, 0x7d, 0xab, 0xf5, 0x53, 0xd5}};
  8. class CMyServer : public CComServer
  9. {
  10. protected:
  11. HRESULT Initialize()
  12. {
  13. AddClassInfo( CLSID_CurrentTimeProvider,
  14. new CSimpleClassFactory<CWin32Clock>(GetLifeControl()),
  15. _T("Current Time Provider"), TRUE );
  16. return S_OK;
  17. }
  18. } g_Server;