Hi, please check the following link:

http://www.pinvoke.net/default.aspx/...sToDevice.html

What does [In] keyword in parameter ref BITMAPINFO means? How do you use it? When calling this function, how to pass this particular parameter?

I have been trying to use this API for about 3 weeks, and everytime I get Invalid paramter error.