Click here to Skip to main content
15,898,373 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I am novice to VSS,

how can i enable specified writers in VSS.

I want to enable Hyper-v VSS writer itself, I am using below API to enble it but its not working to me.

C++
VSS_ID HypervVSSID; CLSIDFromString(LPOLESTR("66841cd4-6ded-4f4b-8f17-fd23f8ddc3de"), &HypervVSSID); m_pVssObject->EnableWriterClasses((const VSS_ID *)&HypervVSSID ,0)

m_pVssObject->GatherWriterMetadata(&pWriterMetadataStatus);

m_pVssObject->GetWriterMetadataCount (&cWriters);

printf("WriterMetadata count : %d\n",cWriters);  


Output : WriterMetaData count : 0

If I am not call (EnableWriterClasses) API explicitely , will get all the writer info including Hyper-v VSS writer.

Can any one suggest me how to enable specified writer.

Thanks in advance.
Posted
Comments
Sergey Alexandrovich Kryukov 14-Sep-12 2:36am    
I would strongly discourage using VSS. It's conceptually very wrong, proprietary, bulky, non-portable and unreliable. People had crazy problems with it.
--SA
umohank 14-Sep-12 4:03am    
Can you suggest any other ways to do valume backup?
Sergey Alexandrovich Kryukov 14-Sep-12 13:26pm    
Revision Control is much more then back up, more lean, powerful, functional. I'll give you some references.
--SA

1 solution

[Answering to the question in the discussion in the comment to the question:]

You certainly need much better Revision Control system. Actually, if you are not using a decent system of this type, you are not really developing, you are risking all your valuable development asserts to be lost or just buried under the tons of back-ups, which could practically be almost equivalent to final loss.

Please see this discussion, including my answer:
Revision control systems, which to choose from?[^].

In this past answer I explain why not VSS, in particular:
How can i structured to arrange source code when i create a new solution[^].

Actually, my favorite so far is Subversion:
http://en.wikipedia.org/wiki/Subversion_%28software%29[^],
http://subversion.apache.org/[^].

You can see some detail I explained in this answers:
Needs some words of wisedom to set up and/or use a server[^],
Make an unclickable form[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900