Skip to content

Commit

Permalink
Added UWP Entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Timon Mentink committed Jul 17, 2024
1 parent 8113388 commit 1db6462
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rcldotnet_common/DllLoadUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ public class DllLoadUtilsUWP : DllLoadUtilsAbs
[DllImport("api-ms-win-core-libraryloader-l2-1-0.dll", SetLastError = true, ExactSpelling = true)]
private static extern IntPtr LoadPackagedLibraryUWP([MarshalAs(UnmanagedType.LPWStr)] string fileName, int reserved = 0);

[DllImport("api-ms-win-core-libraryloader-l1-2-0.dll", SetLastError = true, ExactSpelling = true)]
[DllImport("api-ms-win-core-libraryloader-l1-2-0.dll", EntryPoint = "FreeLibrary", SetLastError = true, ExactSpelling = true)]
private static extern int FreeLibraryUWP(IntPtr handle);

[DllImport("api-ms-win-core-libraryloader-l1-2-0.dll", SetLastError = true, ExactSpelling = true)]
[DllImport("api-ms-win-core-libraryloader-l1-2-0.dll", EntryPoint = "GetProcAddress", SetLastError = true, ExactSpelling = true)]
private static extern IntPtr GetProcAddressUWP(IntPtr handle, string procedureName);

public override void FreeLibrary(IntPtr handle) => FreeLibraryUWP(handle);
Expand Down

0 comments on commit 1db6462

Please sign in to comment.