How to set duplex mode to printer using WinApi function

Hi all,

Counld you please tell me how i can set duplex mode to default printer and check this mode on/off

Thanx in advance