-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Enable nullable: System.Management.Automation.IDispatch #14185
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
Conversation
7e67866
to
a269af3
Compare
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
Don't know about this one -- COM isn't my area |
@daxian-dbw Could you please look? There is a difference with .Net Runtime
|
The relevant docs are here:
|
@@ -34,7 +36,7 @@ internal interface IDispatch | |||
int lcid, | |||
COM.INVOKEKIND wFlags, | |||
[In, Out][MarshalAs(UnmanagedType.LPArray)] COM.DISPPARAMS[] paramArray, | |||
out object pVarResult, | |||
out object? pVarResult, |
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.
VARIANT *pVarResult,
Pointer to the location where the result is to be stored, or NULL if the caller expects no result. This argument is ignored if DISPATCH_PROPERTYPUT or DISPATCH_PROPERTYPUTREF is specified.
@@ -34,7 +36,7 @@ internal interface IDispatch | |||
int lcid, | |||
COM.INVOKEKIND wFlags, | |||
[In, Out][MarshalAs(UnmanagedType.LPArray)] COM.DISPPARAMS[] paramArray, | |||
out object pVarResult, | |||
out object? pVarResult, | |||
out ComInvoker.EXCEPINFO pExcepInfo, |
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.
EXCEPINFO* pExcepInfo
Pointer to a structure that contains exception information. This structure should be filled in if DISP_E_EXCEPTION is returned. Can be NULL.
This can be null, but as we use a struct for ComInvoker.EXCEPTINFO, it shouldn't be marked as ?
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
ppTInfo can for sure be null. |
Tracking issue: #12631.