WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { if(_argc>1) { char *Device=NULL; switch(_argv[1][0]) { case 'L': Device="\\\\PDC\\HP LaserJet 4V CAD,,PS-CAD-HPLJ4V"; break; case 'W': Device="\\\\PDC\\HP5SiKonstruktion,,winspool"; break; case 'S': Device="HP LaserJet 5000 Series PS,,LPT1"; break; case 'C': Device="HP Color LaserJet 8550-PS,,FILE:"; break; } if(Device!=NULL) WriteProfileString("windows","device",Device); } return 0; }