-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use GeneratedDllImport in System.Data.Odbc, System.IO.Ports, System.ServiceProcess.ServiceController #61741
Conversation
[DllImport(Interop.Libraries.Odbc32)] | ||
internal static extern /*SQLRETURN*/ODBC32.RetCode SQLAllocHandle( | ||
[GeneratedDllImport(Interop.Libraries.Odbc32)] | ||
internal static partial ODBC32.RetCode SQLAllocHandle( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should rename RetCode to SQLRETURN?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed.
@@ -8,8 +8,8 @@ internal static partial class Interop | |||
{ | |||
internal static partial class Kernel32 | |||
{ | |||
[DllImport(Libraries.Kernel32, SetLastError = true, CharSet = CharSet.Auto)] | |||
internal static extern bool GetCommProperties( | |||
[GeneratedDllImport(Libraries.Kernel32, CharSet = CharSet.Unicode, SetLastError = true)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is Unicode needed here... is that because COMMPROP contains a char?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not be needed - removed.
@AaronRobinsonMSFT @jkoritzinsky