Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

Initialize and Test Printer (LX-300+) in windows 200/xp

Experts,

The codes below iniatialize and test printer LX-300+ using windows 2000/xp but it does'nt work. Is there anything that I forget?


Thanks.

// Initialize the port
#include <dos.h>

union REGS regs;

regs.h.ah = 1;
regs.x.dx = 0;
int86(0x17, &regs, &regs);

// Test if Online

#include <dos.h>

union REGS regs;

regs.h.ah = 2;
regs.x.dx = 0;
int86(0x17, &regs, &regs);

if (regs.h.ah) printf("Printer is not ready.");
0
marvelsoft
Asked:
marvelsoft
1 Solution
 
deepu chandranCommented:
Hi,
Just go through this example program then you will get an idea,
http://ftp.wayne.edu/kermit/a/msphpl.c
Deepu
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

IT Degree with Certifications Included

Aspire to become a network administrator, network security analyst, or computer and information systems manager? Make the most of your experience as an IT professional by earning your B.S. in Network Operations and Security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now