Back to Wsl

Known Gaps

doc/docs/api-reference/csharp/known-gaps.md

2.9.4890 B
Original Source

Known Gaps

These C API features are not available through the WinRT/C# projection:

C API featureC# status
WslcImportSessionImage(...) and WslcLoadSessionImage(...) overloads that take raw HANDLE + byte countNot projected. C# exposes file-path-based ImportImage(...), ImportImageAsync(...), LoadImage(...), and LoadImageAsync(...).
Raw native handles (WslcGetSessionTerminationEvent, WslcGetProcessExitEvent, WslcGetProcessIOHandle)Wrapped, not exposed directly. Use C# events and WinRT streams instead.
WslcProcessCallbacks registration surfaceWrapped as events. Use OutputReceived, ErrorReceived, and Exited.
WslcContainerStartFlagsNot exposed directly. Container.Start() automatically sets ATTACH when the init process uses ProcessOutputMode.Event or ProcessOutputMode.Stream.