-
-
Notifications
You must be signed in to change notification settings - Fork 223
Fix EntryPoints for MoveMemory, CopyMemory, FillMemory, ZeroMemory #431
Comments
Thanks for the report. |
While it is technically true that these are macros in the header, As a side-note, Vanara also relies on these four functions existing in |
@hugmyndakassi Are |
I'll just leave a quick note here that I got a .NET Framework 4.7.2, PInvoke 0.7.104 |
Thanks, @mpolicki. To be clear, it sounds like you're saying that x86 processes don't get a kernel32 export of RtlCopyMemory, but x64 processes do. Does that sound about right? If so, can you open a separate issue to track that? |
Thank you. |
Please see https://github.com/dotnet/coreclr/issues/24008 for background.
.NET Framework has special case logic to ensure that
MoveMemory
,CopyMemory
,FillMemory
, andZeroMemory
are correctly mapped toRtlMoveMemory
,RtlCopyMemory
,RtlFillMemory
, andRtlZeroMemory
respectively..NET Core does not have this this special case, so the following P/Invoke definition will fail on .NET Core.
At least two definitions in
PInvoke.Kernel32
are likely to fail in .NET Core -MoveMemory
, andCopyMemory
. (I did not inspect to see whetherFillMemory
andZeroMemory
have this bug).The text was updated successfully, but these errors were encountered: