| 832 | typedef BOOL (WINAPI * SetProcessDPIAware_f)(); |
| 833 | |
| 834 | void setHightDPI() |
| 835 | { |
| 836 | SetProcessDPIAware_f SetProcessDPIAware_h = NULL; |
| 837 | HMODULE hmod = GetModuleHandleA("user32.dll"); |
| 838 | if(hmod != NULL) |
| 839 | { |
| 840 | SetProcessDPIAware_h = (SetProcessDPIAware_f)GetProcAddress(hmod, "SetProcessDPIAware"); |
| 841 | |
| 842 | if(SetProcessDPIAware_h != NULL) |
| 843 | { |
| 844 | SetProcessDPIAware_h(); |
| 845 | } |
| 846 | } |
| 847 | } |
| 848 | |
| 849 | int main(int argc, const char *argv[]) |
| 850 | { |