Skip to content

Commit

Permalink
Fix entry point for EnumPrinters (dotnet#67081)
Browse files Browse the repository at this point in the history
  • Loading branch information
elinor-fung authored and radekdoulik committed Mar 30, 2022
1 parent 3a003c0 commit 74972d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ internal static partial int DocumentProperties(
#endif
HandleRef hPrinter, string pDeviceName, IntPtr /*DEVMODE*/ pDevModeOutput, IntPtr /*DEVMODE*/ pDevModeInput, int fMode);

[LibraryImport(Libraries.Winspool, SetLastError = true, StringMarshalling = StringMarshalling.Utf16)]
[LibraryImport(Libraries.Winspool, EntryPoint = "EnumPrintersW", SetLastError = true, StringMarshalling = StringMarshalling.Utf16)]
internal static partial int EnumPrinters(int flags, string? name, int level, IntPtr pPrinterEnum/*buffer*/, int cbBuf, out int pcbNeeded, out int pcReturned);
}
}

0 comments on commit 74972d4

Please sign in to comment.