Source code of Windows XP (NT5)
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.

38 lines
458 B

  1. #include <windows.h>
  2. #include <objbase.h>
  3. #include "psexsup.h"
  4. #include "pstore.h"
  5. BOOL
  6. InitializePStoreSupport(
  7. VOID
  8. )
  9. {
  10. HRESULT hr;
  11. hr = CoInitialize(NULL);
  12. //
  13. // since explorer is likely to have init'ed OLE already, treat that
  14. // case as success
  15. //
  16. if(hr != S_OK && hr != S_FALSE)
  17. return FALSE;
  18. return TRUE;
  19. }
  20. BOOL
  21. ShutdownPStoreSupport(
  22. VOID
  23. )
  24. {
  25. CoUninitialize();
  26. return TRUE;
  27. }