I am following this article to create a snapshot using Windows VSS service and further taking it a step ahead by mounting it.
After searching I found a method ExposeSnapshot()to which I passed the required parameter as below
result = pBackup->ExposeSnapshot(snapshotProp.m_SnapshotId, NULL, VSS_VOLSNAP_ATTR_EXPOSED_LOCALLY, L"C:\\Mount\\", &pwszExposed);
Also I set the context to result = pBackup->SetContext(VSS_CTX_APP_ROLLBACK | VSS_CTX_BACKUP); as only persistent shadow copies can be mounted locally still t have the same HRESULT = 0x80070057 which reads as One or more arguments are invalid
What's the possible error here ?
PS: I have used L"C:\\Mount\\ as well as L"C:\Mount\\ but both does not seem to work