This seems to be what I need, if only I could find a C# sample for this! Any takers please?

http://msdn.microsoft.com/en-us/library/windows/desktop/ms681323%28v=vs.85%29.aspx

Here is a C++ code of it but I have ZERO idea how to use/convert this in C#:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms680578(v=vs.85).aspx