Ndis equivalent for InterlockedExchangeAdd

Hi All

Is there any Ndis equivalent for InterlockedExchangeAdd that does not use spin locks

Thanks
Arun

InterlockedExchangeAdd is defined in NDIS.h for Windows XP and higher. Just use it.

If you must use Windows 2000, then put this in a header file somewhere after including NDIS.h:

#ifndef InterlockedExchangeAdd
#define InterlockedExchangeAdd _InterlockedExchangeAdd #endif

Good luck,

Thomas F. Divine
http://www.pcausa.com

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-329585-
xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Monday, July 07, 2008 4:42 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Ndis equivalent for InterlockedExchangeAdd

Hi All

Is there any Ndis equivalent for InterlockedExchangeAdd that does not
use spin locks

Thanks
Arun

Thanks Thomas.

I have also put this question in PCAUSA and other known forums. please ignore them

Thanks
Arun