DLL-Injection
DLL-Injection copied to clipboard
Check against IntPtr.Zero, not null
For an example here: https://github.com/ihack4falafel/DLL-Injection/blob/a250c9d3d650c4bc982ccf514a3280d650761b60/DllInjection/DllInjection/Program.cs#L176-L187
The result will never be null, but it could be of type IntPtr.Zero
, which is what you are trying to check.