# IsBadCodePtr

```csharp
[DllImport("coredll.dll", SetLastError = true)]
public static extern bool IsBadCodePtr(
   IntPtr lpfn
);
```

Microsoft documentation: [Link](https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-isbadcodeptr)
