-
Notifications
You must be signed in to change notification settings - Fork 1
Update dependency Microsoft.Windows.CsWin32 to 0.3.269 #1012
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
Open
renovate
wants to merge
1
commit into
dev8
Choose a base branch
from
renovate/microsoft.windows.cswin32-0.x
base: dev8
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0145f2b to
33ba38c
Compare
b3d65f0 to
784e29b
Compare
32a94d1 to
a40a451
Compare
921dca8 to
2062f11
Compare
6be036c to
b82e461
Compare
b2bb0dc to
4c3d75f
Compare
b82bbc3 to
848f7a7
Compare
b22d805 to
bf5c293
Compare
bf5c293 to
c929cb4
Compare
c929cb4 to
cf61a6a
Compare
cf61a6a to
afdbe2e
Compare
afdbe2e to
3e94f66
Compare
3e94f66 to
0a82632
Compare
0a82632 to
5617e26
Compare
5617e26 to
6314ef5
Compare
6314ef5 to
1ec3530
Compare
1ec3530 to
7a48e64
Compare
7a48e64 to
8979b11
Compare
8979b11 to
940da10
Compare
940da10 to
843c150
Compare
843c150 to
35d0be5
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.3.162→0.3.269Release Notes
microsoft/CsWin32 (Microsoft.Windows.CsWin32)
v0.3.269Changes:
Marshal.InitHandleAPI to avoid memory leak when OOM happensSafeHandlewhen freeing method accepts additional reserved parametersThis list of changes was auto generated.
v0.3.264Changes:
This list of changes was auto generated.
v0.3.259Changes:
This list of changes was auto generated.
v0.3.257Changes:
This list of changes was auto generated.
v0.3.253Changes:
This list of changes was auto generated.
v0.3.252Changes:
This list of changes was auto generated.
v0.3.250Changes:
This list of changes was auto generated.
v0.3.248Changes:
This list of changes was auto generated.
v0.3.242Changes:
This list of changes was auto generated.
v0.3.238Changes:
This list of changes was auto generated.
v0.3.236NOTE: This changes the signature of methods with optional parameters. This change is also documented at https://microsoft.github.io/CsWin32/docs/getting-started.html:
Optional out/ref parameters
Some parameters in win32 are
[optional, out]or[optional, in, out]. C# does not have an idiomatic way to represent this concept, so for any method that has such parameters, CsWin32 will generate two versions: one with allreforoutparameters included, and one with all such parameters omitted. For example:Working with Span-typed and MemorySize-d parameters
In the Win32 APIs there are many functions where one parameter is a buffer (
void*orbyte*) and another parameter is the size of that buffer. When generating for a target framework that supports Spans, there will be overloads of these functions that take aSpan<byte>which represents both of these parameters, since a Span refers to a chunk of memory and a length. For example, an API like IsTextUnicode has avoid*parameter whose length is described by the iSize parameter in the native signature. The CsWin32 projection of this method will be:Instead of passing the buffer and length separately, in this projection you pass just one parameter. Span is a flexible type with many things that can be converted to it safely. You will also see Span parameters for things that may look like a struct but are variable sized. For example, InitializeAcl looks like it returns an ACL struct but the parameter is annotated with a
[MemorySize]attribute in the metadata, indicating it is variable-sized based on another parameter. Thus, the cswin32 projection of this method will project this parameter as aSpan<byte>since the size of the parameter is variable:And you would call this by creating a buffer to receive the ACL. Then, after the call you can reinterpret the buffer as an ACL:
CsWin32 will also generate a struct-typed parameter for convenience but this overload will pass
sizeof(T)for the length parameter to the underlying Win32 API, so this only makes sense in some overloads such as SHGetFileInfo where the parameter has an annotation indicating it's variable-sized, but the size is only eversizeof(SHFILEINFOW):Changes:
v0.3.235What's Changed
Full Changelog: microsoft/CsWin32@v0.3.228...v0.3.235
v0.3.228What's Changed
New Contributors
Full Changelog: microsoft/CsWin32@v0.3.217...v0.3.228
https://www.nuget.org/packages/Microsoft.Windows.CsWin32/0.3.228
v0.3.217What's Changed
Full Changelog: microsoft/CsWin32@v0.3.213...v0.3.217
v0.3.213What's Changed
Microsoft.Windows.SDK.NET.Refinstead by @AArnott in #1471Full Changelog: microsoft/CsWin32@v0.3.205...v0.3.213
v0.3.205What's Changed
docs.microsoft.comtolearn.microsoft.comby @xtqqczze in #1454New Contributors
Full Changelog: microsoft/CsWin32@v0.3.183...v0.3.205
v0.3.183Fixes
WinRTCustomMarshalerwhen referenced from extern methods by @AArnott in #1335Enhancements
[Out] PWSTRparameters in friendly overloads by @AArnott in #1341PCWSTR*parameters withReadOnlySpan<string>by @AArnott in #1346New Contributors
Full Changelog: microsoft/CsWin32@v0.3.162...v0.3.183
Configuration
📅 Schedule: Branch creation - "before 1am,before 5am,before 9am" in timezone Asia/Shanghai, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.