C language function:InterlockedBitTestAndReset sample codes

Search sample code in the internet.It is the result.


TITLE : Windows-driver-samples/entrypts.c at master Microsoft/Windows-driver-samples GitHub
adapterStopPending = InterlockedBitTestAndReset((LONG*)&AdapterExtension->PoFxPendingWork, 0); //AdapterStop is at bit 0.......
http://github.com/Microsoft/Windows-driver-samples/blob/master/storage/miniports/storahci/src/entrypts.c


TITLE : Windows-driver-samples/entrypts.c at master Microsoft/Windows-driver-samples GitHub
adapterStopPending = InterlockedBitTestAndReset((LONG*)&adapterExtension->PoFxPendingWork, 0); //AdapterStop is at bit 0.......
http://github.com/Microsoft/Windows-driver-samples/blob/master/storage/miniports/storahci/src/entrypts.c
TITLE : Windows-driver-samples/entrypts.c at master Microsoft/Windows-driver-samples GitHub
busChangePending = InterlockedBitTestAndReset((LONG*)&channelExtension->PoFxPendingWork, 1); //BusChange is at bit 1.......
http://github.com/Microsoft/Windows-driver-samples/blob/master/storage/miniports/storahci/src/entrypts.c
TITLE : Windows-driver-samples/entrypts.c at master Microsoft/Windows-driver-samples GitHub
restorePreservedSettingsPending = InterlockedBitTestAndReset((LONG*)&channelExtension->PoFxPendingWork, 0); //RestorePreservedSettings is at bit 0.......
http://github.com/Microsoft/Windows-driver-samples/blob/master/storage/miniports/storahci/src/entrypts.c
TITLE : WaitForSingleObject function (Windows)
UCHAR WINAPI InterlockedBitTestAndReset(.......
http://msdn.microsoft.com/en-us/library/windows/desktop/ms683546(v=vs.85).aspx
search Google

https://www.google.com/#q=InterlockedBitTestAndReset