Your first answer was:
you can find something useful in the msdn: http://msdn.microsoft.com/en-us/library/aa970689.aspx
This is really not what we encourage — and I wonder why this wasn't blocked or flagged as "low quality". If you post an answer, it should really contain more than just a link somewhere else. See:
Instead, show some actual code (like you did in your later revision), and try to address the OP's problem. You'll eventually get a few upvotes, so in the end, the -1 score should not matter.
However, if you just have a link (and nothing more to say), you could post it as a comment instead.