But why do you ask about a c# code in a C++ and WinAPI Forum?