IsBadCodePtr

3.1

  BOOL IsBadCodePtr(lpfn)    
  FARPROC lpfn; /* pointer to test, */  

The IsBadCodePtr function determines whether a pointer to executable code is valid.

Parameters

lpfn

Points to a function.

Return Value

The return value is nonzero if the pointer is bad (that is, if it does not point to executable code). The return value is zero if the pointer is good.

See Also

IsBadHugeReadPtr, IsBadHugeWritePtr, IsBadReadPtr, IsBadStringPtr, IsBadWritePtr