thanks for the response. i recently try: OpenPrinter( "EpsonLX", &handle, NULL ); WritePrinter( handle, buffer, buffersize ); ClosePrinter( handle ); "EpsonLX" is installed printer connected via smb://servername/printername. i can get the handle with OpenPrinter() function, but still can't print anything.