Open sharpbazil opened 6 years ago
Please try to change the line:
$GetProcAddress = $UnsafeNativeMethods.GetMethod('GetProcAddress')
to
$GetProcAddress = $UnsafeNativeMethods.GetMethod('GetProcAddress', [reflection.bindingflags] "Public,Static", $null, [System.Reflection.CallingConventions]::Any, @((New-Object System.Runtime.InteropServices.HandleRef).GetType(), [string]), $null);
Let me know if it works
Can confirm that your solution works
It appears that windows now has two methods for GetProcAddress, which breaks the Get-ProcAddress function. It looks like they aren't accepting pull requests, so... I'm just gonna point this out
I was able to fix it like this: