Lines Matching refs:vss_ctx
56 } vss_ctx; variable
105 if (vss_ctx.hEventFrozen) { in requester_cleanup()
106 CloseHandle(vss_ctx.hEventFrozen); in requester_cleanup()
107 vss_ctx.hEventFrozen = NULL; in requester_cleanup()
109 if (vss_ctx.hEventThaw) { in requester_cleanup()
110 CloseHandle(vss_ctx.hEventThaw); in requester_cleanup()
111 vss_ctx.hEventThaw = NULL; in requester_cleanup()
113 if (vss_ctx.hEventTimeout) { in requester_cleanup()
114 CloseHandle(vss_ctx.hEventTimeout); in requester_cleanup()
115 vss_ctx.hEventTimeout = NULL; in requester_cleanup()
117 if (vss_ctx.pAsyncSnapshot) { in requester_cleanup()
118 vss_ctx.pAsyncSnapshot->Release(); in requester_cleanup()
119 vss_ctx.pAsyncSnapshot = NULL; in requester_cleanup()
121 if (vss_ctx.pVssbc) { in requester_cleanup()
122 vss_ctx.pVssbc->Release(); in requester_cleanup()
123 vss_ctx.pVssbc = NULL; in requester_cleanup()
125 vss_ctx.cFrozenVols = 0; in requester_cleanup()
184 hr = vss_ctx.pVssbc->GetWriterMetadataCount(&cWriters); in AddComponents()
191 hr = vss_ctx.pVssbc->GetWriterMetadata(i, &id, pMetadata.replace()); in AddComponents()
231 hr = vss_ctx.pVssbc->AddComponent(idInstance, idWriter, in AddComponents()
316 if (vss_ctx.pVssbc) { /* already frozen */ in requester_freeze()
331 vss_ctx.hEventFrozen = CreateEvent(&sa, TRUE, FALSE, EVENT_NAME_FROZEN); in requester_freeze()
332 if (!vss_ctx.hEventFrozen) { in requester_freeze()
337 vss_ctx.hEventThaw = CreateEvent(&sa, TRUE, FALSE, EVENT_NAME_THAW); in requester_freeze()
338 if (!vss_ctx.hEventThaw) { in requester_freeze()
343 vss_ctx.hEventTimeout = CreateEvent(&sa, TRUE, FALSE, EVENT_NAME_TIMEOUT); in requester_freeze()
344 if (!vss_ctx.hEventTimeout) { in requester_freeze()
351 hr = pCreateVssBackupComponents(&vss_ctx.pVssbc); in requester_freeze()
357 hr = vss_ctx.pVssbc->InitializeForBackup(); in requester_freeze()
363 hr = vss_ctx.pVssbc->SetBackupState(true, true, vss_bt, false); in requester_freeze()
376 hr = vss_ctx.pVssbc->SetContext(ctx); in requester_freeze()
380 hr = vss_ctx.pVssbc->SetContext(ctx); in requester_freeze()
387 hr = vss_ctx.pVssbc->GatherWriterMetadata(pAsync.replace()); in requester_freeze()
401 hr = vss_ctx.pVssbc->StartSnapshotSet(&guidSnapshotSet); in requester_freeze()
418 hr = vss_ctx.pVssbc->AddToSnapshotSet(volume_name_wchar, in requester_freeze()
447 hr = vss_ctx.pVssbc->AddToSnapshotSet(short_volume_name, in requester_freeze()
477 hr = vss_ctx.pVssbc->PrepareForBackup(pAsync.replace()); in requester_freeze()
486 hr = vss_ctx.pVssbc->GatherWriterStatus(pAsync.replace()); in requester_freeze()
501 hr = vss_ctx.pVssbc->DoSnapshotSet(&vss_ctx.pAsyncSnapshot); in requester_freeze()
509 HRESULT hr2 = vss_ctx.pAsyncSnapshot->QueryStatus(&hr, NULL); in requester_freeze()
519 wait_status = WaitForSingleObject(vss_ctx.hEventFrozen, in requester_freeze()
542 *num_vols = vss_ctx.cFrozenVols = num_mount_points; in requester_freeze()
544 *num_vols = vss_ctx.cFrozenVols = num_fixed_drives; in requester_freeze()
551 if (vss_ctx.pVssbc) { in requester_freeze()
552 vss_ctx.pVssbc->AbortBackup(); in requester_freeze()
568 if (!vss_ctx.hEventThaw) { in requester_thaw()
580 SetEvent(vss_ctx.hEventThaw); in requester_thaw()
582 assert(vss_ctx.pVssbc); in requester_thaw()
583 assert(vss_ctx.pAsyncSnapshot); in requester_thaw()
585 HRESULT hr = WaitForAsync(vss_ctx.pAsyncSnapshot); in requester_thaw()
588 hr = vss_ctx.pVssbc->BackupComplete(pAsync.replace()); in requester_thaw()
605 vss_ctx.pVssbc->AbortBackup(); in requester_thaw()
609 if (WaitForSingleObject(vss_ctx.hEventTimeout, 0) != WAIT_OBJECT_0) { in requester_thaw()
625 vss_ctx.pVssbc->AbortBackup(); in requester_thaw()
627 *num_vols = vss_ctx.cFrozenVols; in requester_thaw()