'AdjustWindowRect' only "Calculates the required size of the window rectangle".
Use the MoveWindow function.
For example, to move the left border of the window to the left edge of the screen:
RECT rc;
GetWindowRect(hWnd, &rc);
MoveWindow(hWnd, 0, rc.top, rc.right, rc.bottom - rc.top, TRUE);