SetWindowPos() cross-process DPI aware
问题 I am creating a program that moves/resizes windows from another process with SetWindowPos() . My own program is PROCESS_PER_MONITOR_DPI_AWARE . The other programs could be anything from PROCESS_DPI_UNAWARE , PROCESS_SYSTEM_DPI_AWARE or PROCESS_PER_MONITOR_DPI_AWARE . Because my own program is PROCESS_PER_MONITOR_DPI_AWARE , the coordinates I pass to SetWindowPos() are in physical coordinates. What I now want to do is resize the client area to a specific size in logical coordinates . What I