I have a WIN16 DLL written using msvc 1.52 and I now want it to be able to revecter an interrupt to my own ISR. I was planning on using the _dos_getvect and _dos_setvect calls but where getvect seems to be ok., dos_setvect fails the link as an unresolved external. A quick check in the lib files and dos.h revealed that the setvect function is specifically excluded for WINDOWS apps, even though the on-line docs indicate that it should be ok. for WIN16 and WIN16 DLL's. At first I assumed that the on-line docs were incorrect, and that there was some good reason for dissallowing that call, but then I discovered that the Borland 4.5 compiler does not have the same restriction.
So the question is: If dos_setvect is not the correct way to revector an interrupt in a WIN16 DLL, what is?