I have a conversion error when I call
InterlockedCompareExchange((PVIOD*) pIRP, IRP, NULL).
It states:
device.cpp(570) : error C2664: ‘InterlockedCompareExchange’ : cannot
convert parameter 1 from ‘PVOID *’ to ‘volatile LONG *’
I have tried to use (PLONG), but it doesn’t work.
I am compiling under Windows XP x86 Checked Build Environment.
Does any one knows how to solve this?
Use InterlockedCompareExchangePointer.
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply
“Petriaev, Yuri” wrote in message
news:xxxxx@ntdev…
I have a conversion error when I call
InterlockedCompareExchange((PVIOD*) pIRP, IRP, NULL).
It states:
device.cpp(570) : error C2664: ‘InterlockedCompareExchange’ : cannot
convert parameter 1 from ‘PVOID *’ to ‘volatile LONG *’
I have tried to use (PLONG), but it doesn’t work.
I am compiling under Windows XP x86 Checked Build Environment.
Does any one knows how to solve this?
Thank you, Don!
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: 2008-03-25 1:33 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] conversion error
Use InterlockedCompareExchangePointer.
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply
“Petriaev, Yuri” wrote in message
news:xxxxx@ntdev…
I have a conversion error when I call
InterlockedCompareExchange((PVIOD*) pIRP, IRP, NULL).
It states:
device.cpp(570) : error C2664: ‘InterlockedCompareExchange’ : cannot
convert parameter 1 from ‘PVOID *’ to ‘volatile LONG *’
I have tried to use (PLONG), but it doesn’t work.
I am compiling under Windows XP x86 Checked Build Environment.
Does any one knows how to solve this?
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer