How can I install the PortTalk driver in Windows 11 (or 7)
I copied PortTalk.sys into C:\Windows\System32\drivers.
I receive the following message:
PortTalk: You do not have rights to access the Service Control Manager and
PortTalk: the PortTalk driver is not installed or started. Please ask
PortTalk: your administrator to install the driver on your behalf.
PortTalk: Couldn't access PortTalk Driver, Please ensure driver is loaded.
This is my test program in C++
#include
#include
#include "pt_ioctl.c"
int main(int argc, char *argv)
{
unsigned char value;
printf("IoExample for LPT1 \n");
OpenPortTalk();
outportb(0x378, 0xFF);
value = inportb(0x378);
printf("Value returned = 0x%02X \n",value);
outp(0x378, 0xAA);
value = inp(0x378);
printf("Value returned = 0x%02X \n",value);
ClosePortTalk();
getchar();
return 0;
}
I tried this program in Windows XP with succes.
Reply: Seeing this information, I feel that this should not be a problem with the driver file, but a permission problem. Your program should first obtain an administrator permission before proceeding.