take a look at the SERIAL sample in the DDK. You have to duplicate that to provide the serial port functionality. You could then buy a kernel sockets package or else learn how to use TDI to talk TCP/IP. Then you have to learn about named pipes in the kernel. Each of these things is intricate and something that only specialists should ever actually attempt. POSUSB is written (and abandoned) by Microsoft. It creates a com port and uses it for USB communications, which latter part you probably don't need. http://www.isibrno.cz/~ivovi/usb.htm
COM组件必要条件,提供类工厂,注册组件等.
sorry, this is for COM port for adding automation to MFC applications, see http://www.codeproject.com/com/mfc_autom.asp
http://www.isibrno.cz/~ivovi/usb.htm
for adding automation to MFC applications, see http://www.codeproject.com/com/mfc_autom.asp