/*
- * win32_vss.c - Experimental Windows-specific code for creating VSS (Volume
- * Shadow Copy Service) snapshots.
+ * win32_vss.c - Windows-specific code for creating VSS (Volume Shadow Copy
+ * Service) snapshots.
*/
/*
- * Copyright (C) 2015 Eric Biggers
+ * Copyright (C) 2015-2016 Eric Biggers
*
* This file is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
if (vss_initialized)
return true;
ERROR("The Volume Shadow Copy Service (VSS) API could not be "
- "initialized. Probably it isn't supported on this computer.");
+ "initialized.");
return false;
}
wait_and_release(IVssAsync *async)
{
HRESULT res = async->vtable->Wait(async, INFINITE);
+
async->vtable->Release(async);
return res;
}
return false;
}
- res = vss->vtable->SetContext(vss, VSS_CTX_BACKUP);
- if (FAILED(res)) {
- ERROR("IVssBackupComponents.SetContext() error: %x", res);
- return false;
- }
-
res = vss->vtable->SetBackupState(vss, FALSE, TRUE, VSS_BT_COPY, FALSE);
if (FAILED(res)) {
ERROR("IVssBackupComponents.SetBackupState() error: %x", res);