TerGetDeviceRes
Get the screen or current printer resolution.
BOOL TerGetDeviceRes(ResX, ResY, ForScreen);
LPINT ResX; | The variable to receive pixels per inch in the x direction. |
LPINT ResY; | The variable to receive pixels per inch in the y direction. |
BOOL ForScreen; | Set to TRUE to retrieve the resolution for the screen. Set to FALSE to retrieve the resolution for the current printer. |
Return Value: This function returns TRUE when successful.