Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 819599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:20:11+00:00 2026-05-15T02:20:11+00:00

I am trying to send data to LPT1 port with a C# program, unfortunately

  • 0

I am trying to send data to LPT1 port with a C# program, unfortunately with no success..
I am using windows 7 x64.
I tried both x86 and x64 (inpoutx64.dll) dll’s..

With the x64 dll when I send:

Output(888, 255);

It just continues the program as everything went ok, but i can’t see anything on my multimeter (only the static 0.02V)..

I also tried the following with C++:

int main () {
int val = 0;
printf("Enter a value\n");
scanf("%d", &val);
_outp(0x378, val);
getchar();
_outp(0x378, 0);
return 0; }

But it throws an exception:

Unhandled exception at 0x01281428 in ppac.exe: 0xC0000096: Privileged instruction.

I remember once I made something like this work on xp (C# not the C++ code), I hope it’s possible on win7 too..
Please help me with this.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T02:20:12+00:00Added an answer on May 15, 2026 at 2:20 am

    An IO port in the sense used by _outp isn’t the same as what you’re trying to do with a parallel port. An IO port is a processor-level way to get raw access to different devices. The use of IO ports with _outp is supposed to be the kind of thing device drivers do. It is therefore privileged (i.e. kernel only) in any version of windows that’s modern enough to have good kernel/userspace separation (namely anything based on Windows NT). I’m almost 100% certain you never got _outp to work on XP.

    To access the parallel port in high-level code, just open it like a normal file, using the filename LPT1:.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are using C#, ASP.NET & WCF. I am trying to send form data
I'm trying to send data from a form to an external script prior to
I am trying to send some data from a LINQ query in C# to
I'm trying to create a TCP connection and send/read data that uses SSL, but
I'm trying to send an email in Java but when I read the body
I am trying to send my dynamically created silverlight 2 page/image to a an
I am trying to send an email from a site I am building, but
I'm trying to send the output to the console (or colouredconsole) ... which I'm
I'm trying to send email to Active Directory distribution groups. I know you can
i'm trying to send fake keyboard input to an application that's running in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.