Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

7 lines
473 B

Here are the changes necessary for porting NT5 COM plugin back to NT4.
1. Include cppfunc.h. Which redefines the new/delete operators.
2. Simulate InterlockedIncrement/InterlockedDecrement. (pdev.h, common.c, comoem.cpp)
3. Need to define your own _purecall definition (comoem.cpp)
4. Use critical section, init, enter, leave, delete (pdev.h).
5. Need to export DllInitialize, where at process attach/detach, you need to init/delete critical section for OEM (initdll.c).