I am using a dll file for input and output to the pc printer port. but when I use a function from that dll, I get the error, Privilleged instruction. why?

I am using win XP professional.