I think you might need to tell the devMode which fields are being initialized by setting the dmFields member example of setting landscape orientation:
devMode->dmOrientation = DMORIENT_LANDSCAPE;
devMode->dmFields |= DM_ORIENTATION;
I think you might need to tell the devMode which fields are being initialized by setting the dmFields member example of setting landscape orientation:
devMode->dmOrientation = DMORIENT_LANDSCAPE;
devMode->dmFields |= DM_ORIENTATION;