Hello Everyone

I am writing an application that captures a window. My application needs also to work when the desktop is locked. When I am trying to capture an MFC window it works fine. However when I try to capture a C# window (when the desktop is locked), the C# window controls (such as buttons, text box and etc.) are captured as black rectangles.
Why is it happening ? I understand there is some difference between MFC and C# controls probably...
Is there a way to overcome this problem ?

Thanks,
Tal