หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Variable holds an unexpected resource
The resource that the driver is using is in the expected C language type, but has a different semantic type.
Example
The following code example generates this warning:
KeAcquireInStackSpinLock(spinLock, lockHandle);
//...
KeReleaseSpinLock(spinLock, 0);
The following code example avoids this warning:
KeAcquireInStackSpinLock(spinLock, lockHandle);
//...
KeReleaseInStackSpinLock(lockHandle);