I'm trying to determine the window position of an application. I know SetWindowPos() would set the window position at a certain position with a specific sizing. I would like to retrieve this information, but I have noticed some negative values in there. When I save these values into the registry and then load them on the next instance, I can't replicate the sizing and placement information accurately. Is this even the most accurate function to be used in the first place?
Thanks.