ShellExecuteExA

I'm trying to track programs opened through open edge i.e. word, notepad, excel, etc. To do this I've tried using ShellExecuteExA which seem to be capable of passing back the PID if you specify the SEE_MASK_NOCLOSEPROCESS part of SHELLEXECUTEINFO. My problem is I can't figure out how to set this, everything so far has been based on wait until MS-Word finished printing section of OE Hive). Does anyone have any advice or code samples?