The documentation link that you provided has some lines in it that I would like to quote here -
Quote:
Note The MagSetImageScalingCallback function is deprecated in Windows 7 and later, and should not be used in new applications. There is no alternate functionality.
Quote:
This function requires Windows Display Driver Model (WDDM)-capable video cards.
Quote:
This function works only when Desktop Window Manager (DWM) is off.
For screen capture, look at the following articles - Various methods for capturing the screen[^] Barry's Screen Capture[^] Not sure if this is already mentioned in the articles, but I once captured the screen using the CreateDC API used this way -
HDC hdc = CreateDC(_T("DISPLAY"), NULL, NULL, NULL);
You then save the device context in hdc to a file. Read here for saving the device context - Converting Device context to images ( PNG , JPEG , BMP , GIF) , Creating PDF & Printing to the Printer[^] Saving (part of) a Device Context as a Bitmap[^]
«_Superman_» _I love work. It gives me something to do between weekends.
_Microsoft MVP (Visual C++) (October 2009 - September 2013)