Hi Vlad;
You are correct ... focus on the DS pointer through PowerObjectParm ... it should work AND I use this technique all the time.
1) You can use your original code if the Window is already instantiated.
2) If the Window is not instantiated you have to use the OpenWithParm ()
3) The PFC_PreOpen event is the same as the Window open event as the PFC triggers this from the Open event. So trapping the value in PowerObjectParm at this point is definitely OK.
Regards ... Chris