Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

C28125

warning C28125: The function must be called from within a try/except block

The driver is calling a function that must be called from within a try/except block, such as ProbeForRead, ProbeForWrite, MmProbeAndLockPages.

The following code example generates this warning:

ProbeForRead(addr, len, 4);

The following code example avoids this warning:

__try
{
    ProbeForRead(addr, len, 4);
}
__except(EXCEPTION_EXECUTE_HANDLER)
{
    Status = GetExceptionCode();
    ... report error status
}
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.