How to change the parallel port mode

Hello,everyone,I want to programe an application to change the parallel port mode, such as from SPP to EPP or from
EPP to ECP. Any idea will be appreciated.
b???.???????&?v?'?ׯj?.n?Qyȩf??]?:.?˛???m??֛???zf???%y?ޞ?^?˛??^r*Lzfެ?…???l??ܢ