@free2000fly
Actually, it is beacuse the VC6 compliler didn't recognize the identifier "InterlockedExchangePointer," which is claimed in 'Wdm.h."
So we can find the header file, and then copy the code in regarding of the "InterlockedExchangePointer" and then paste into atlimage.h.
Here is the code:
#ifndef InterlockedExchangePointer
// NT's new InterlockedExchangePointer() takes care of 32 bit/64 bit pointers.
// whereas the old InterlockedExchange() only work on 32 bit pointers.
//
__inline PVOID InterlockedExchangePointer( PVOID *Target, PVOID Value ) {
return (PVOID) InterlockedExchange( (LPLONG)Target, (LONG)Value );
}
#endif
I have placed in the head of the file "atlimage.h" and it can pass the compilation.
F.Y.I.
回复 更多评论