Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Win 2 API - <b>getdevicecaps</b> get device specific information http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetDeviceCaps        Get Device Specific Information

short GetDeviceCaps(hDC, nIndex)
HDC hDC;
short nIndex;

                nIndex
        |---------------------------------------------------|
        |ASPECTX        Length of the X leg                 |
        |ASPECTXY       Length of the hypotenuse            |
        |SPECTY         Length of the Y leg                 |
        |ITSPIXEL       Number of bits per pixel            |
        |LIPCAPS        Clipping capabilities               |
        |URVECAPS       Curves capabilities                 |
        |RIVERVERSION   Device driver version               |
        |ORZRES         Horizontal width in pixels          |
        |ORZSIZE        Horizontal size in millimeters      |
        |LINECAPS       Line  capabilities                  |
        |LOGPIXELSX     Logical pixels/inch in X            |
        |LOGPIXELSY     Logical pixels/inch in Y            |
        |UMBRUSHES      Number of brushes the device has    |
        |NUMCOLORS      Size required for device descriptor |
        |NUMFONTS       Number of fonts the device has      |
        |NUMMARKERS     Number of markers the device has    |
        |NUMPENS        Number of pens the device has       |
        |PLANES         Number of planes                    |
        |POLYGONALCAPS  Polygonal capabilities              |
        |RASTERCAPS     Bitblt capabilities                 |
        |TECHNOLOGY     Device classification               |
        |TEXTCAPS       Text capabilities                   |
        |VERTRES        Vertical width in pixels            |
        |VERTSIZE       Vertical size in millimeters        |
        +---------------------------------------------------+

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson