isapi extension

Posted on 2000-02-12
Medium Priority
Last Modified: 2010-04-10
currently i'm using visual c++ 6.0 to create isapi extension. i face a problem to locate my _outp() command. where should i locate it in the program? it will receive the number sent by the user and output it to parallel port at the server side. is it can't be located under on_parse_command() function which has the CHttpServerContext?
Question by:deric19
LVL 32

Accepted Solution

jhance earned 150 total points
ID: 2514093
_outp() is not possible from an ISAPI extension.

This is a protected mode instruction on WIN32 and can only be run by a program which is running in RING0.  That means it's a DEVICE DRIVER on NT or a VxD on Win9x.

Since you're talking about ISAPI, I'll have to assume your also talking about NT Server running IIS.  That leaves you with the following possibilities:

1) If you need to directly control the parallel port, get or write a parallel port device driver that has the functionality you need and install it.  Now you can open it from your ISAPI with CreateFile() and then you can control it with DeviceIoControl().

2) If you just need the functionality of the standard parallel port (i.e. the printer driver function) you can open the standard parallel port with CreateFile() and output to it with WriteFile().

Author Comment

ID: 2515868

   thanks for the answer. but i'm just a greenhorn in using isapi, can u give a some guide or example how to use CreateFile() and DeviceIoControl() to control my parallel port in NT server running IIS. Thanks again for the advise.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question