windows-nt/Source/XPSP1/NT/shell/ext/pstore/psexsup.cpp

39 lines
458 B
C++
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
#include <windows.h>
#include <objbase.h>
#include "psexsup.h"
#include "pstore.h"
BOOL
InitializePStoreSupport(
VOID
)
{
HRESULT hr;
hr = CoInitialize(NULL);
//
// since explorer is likely to have init'ed OLE already, treat that
// case as success
//
if(hr != S_OK && hr != S_FALSE)
return FALSE;
return TRUE;
}
BOOL
ShutdownPStoreSupport(
VOID
)
{
CoUninitialize();
return TRUE;
}