I developed a Printer port monitor for virtual printer. I am installing it using script that stop spooler service and make entries in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\<port name=""> and start the spooler service. If everything goes fine then the Port will be created. Then I install my printer on that port using INF.
I compiled port monitor DLL for 32bit and 64bit environment. The complete installation script was working with XP and Win 7 (both 32 and 64 bit).
But when I try to install in Win 7 sp1 it gives me error of "operation could not be completed (error 0x00000704) The specified port is unknown".
I thought that this issue occurs while creating a port. So i tried to install port monitor manually as said in following link
But it also fails; I checked the application log and find the following error
"The print spooler failed to load a plug-in module Printer.dll, error code 0x7e. See the event user data for context information."
so this shows that the problem with the port monitor DLL. I developed the DLL in VS2010 in C++ language with Print API. I compiled the DLL for 32bit and 64bit by selecting the Platform x64(for 64bit) and win32(for 32bit). Is there any other compile configuration for win7 sp1?
I searched about this and found the following article but for real printer.
I need help to solve this issue for win7 sp1 print port monitor.