Skip to content

Commit

Permalink
Rollback net6 imports
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-edmondson committed Jun 20, 2024
1 parent 86c46d9 commit d542f7b
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions ImGuiApp/ImGuiApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,12 @@ public static ImGuiAppWindowState WindowState

[LibraryImport("kernel32.dll")]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
#if NET7_0_OR_GREATER
[LibraryImport("kernel32.dll")]
private static partial nint GetConsoleWindow();
#else
[DllImport("kernel32.dll")]
private static extern nint GetConsoleWindow();
#endif

[LibraryImport("user32.dll")]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
[return: MarshalAs(UnmanagedType.Bool)]
#if NET7_0_OR_GREATER
[LibraryImport("user32.dll")]
private static partial bool ShowWindow(nint hWnd, int nCmdShow);
#else
[DllImport("user32.dll")]
private static extern bool ShowWindow(nint hWnd, int nCmdShow);
#endif

private const int SW_HIDE = 0;

Expand Down

0 comments on commit d542f7b

Please sign in to comment.