Libraryimport hcs#18768
Libraryimport hcs#18768iSazonov wants to merge 2 commits into
Conversation
609b76a to
42be008
Compare
| [DllImport(PinvokeDllNames.CreateProcessInComputeSystemDllName, SetLastError = true, CharSet = CharSet.Unicode)] | ||
| internal static extern uint HcsOpenComputeSystem( | ||
| string id, | ||
| ref IntPtr computeSystem, |
There was a problem hiding this comment.
I wonder why IntPtr is passed by-ref?
There was a problem hiding this comment.
It is old broken code, please ignore.
The local variable naming should use camelCase, not PascalCase, otherwise it looks like a member. |
It is old code. I have only updated pinvoke code for HcsOpenComputeSystem without cleanups. |
|
This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 15 days. It will be closed if no further activity occurs within 10 days of this comment. |
|
This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 15 days. It will be closed if no further activity occurs within 10 days of this comment. |
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
|
This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 15 days. It will be closed if no further activity occurs within 10 days of this comment. |
PR Summary
Contributes to #18553.
Continue #18194.
I wonder we did not exclude Windows code from Unix...
The new HCS API is natively async and we could use async/await if needed. Example https://github.com/dantmnf/WSLAttachSwitch/blob/f3d9c0a85214c61f04c06ea42f7a1ce79b460a17/ComputeService/HcsOperation.cs
PR Context
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).