Hi william,
Thanks for you quick reply. I have tried the following code
hFile = CreateFile("LPT1", GENERIC_READ Or GENERIC_WRITE, 0, ByVal 0&, OPEN_EXISTING, 0, 0)
and
hFile = CreateFile("LPT1", GENERIC_READ Or GENERIC_WRITE, 0, ByVal 0&, CREATE_NEW, 0, 0).
When I print...