Compare commits

...

2 Commits

Author SHA1 Message Date
Leilei Zhang
51253b20ed spelling error 2025-07-04 14:36:48 +08:00
Leilei Zhang
51a9c335ab [Fix] Add explicit EntryPoint to CreateFileW to prevent runtime EntryPointNotFoundException 2025-07-04 14:03:50 +08:00

View File

@@ -21,7 +21,7 @@ public static partial class Kernel32
out int pBytesReturned,
IntPtr lpOverlapped);
[LibraryImport("kernel32.dll", SetLastError = true, StringMarshalling = StringMarshalling.Utf16)]
[LibraryImport("kernel32.dll", SetLastError = true, StringMarshalling = StringMarshalling.Utf16, EntryPoint = "CreateFileW")]
public static partial int CreateFile(
string lpFileName,
FileAccessType dwDesiredAccess,