Files
marlersoft-win32json/api/System.SubsystemForLinux.json
2026-02-15 17:17:14 -07:00

126 lines
5.9 KiB
JSON

{
"Constants":[],
"Types":[{
"Name":"WSL_DISTRIBUTION_FLAGS"
,"Architectures":[]
,"Platform":null
,"Kind":"Enum"
,"Flags":true
,"Scoped":false
,"Values":[
{"Name":"WSL_DISTRIBUTION_FLAGS_NONE","Value":0}
,{"Name":"WSL_DISTRIBUTION_FLAGS_ENABLE_INTEROP","Value":1}
,{"Name":"WSL_DISTRIBUTION_FLAGS_APPEND_NT_PATH","Value":2}
,{"Name":"WSL_DISTRIBUTION_FLAGS_ENABLE_DRIVE_MOUNTING","Value":4}
]
,"IntegerBase":"UInt32"
}],
"Functions":[{
"Name":"WslIsDistributionRegistered"
,"SetLastError":false
,"DllImport":"Api-ms-win-wsl-api-l1-1-0.dll"
,"ReturnType":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":null
,"Attrs":[]
,"Params":[
{"Name":"distributionName","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In","Const"]}
]
},{
"Name":"WslRegisterDistribution"
,"SetLastError":false
,"DllImport":"Api-ms-win-wsl-api-l1-1-0.dll"
,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":null
,"Attrs":[]
,"Params":[
{"Name":"distributionName","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In","Const"]}
,{"Name":"tarGzFilename","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In","Const"]}
]
},{
"Name":"WslUnregisterDistribution"
,"SetLastError":false
,"DllImport":"Api-ms-win-wsl-api-l1-1-0.dll"
,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":null
,"Attrs":[]
,"Params":[
{"Name":"distributionName","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In","Const"]}
]
},{
"Name":"WslConfigureDistribution"
,"SetLastError":false
,"DllImport":"Api-ms-win-wsl-api-l1-1-0.dll"
,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":null
,"Attrs":[]
,"Params":[
{"Name":"distributionName","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In","Const"]}
,{"Name":"defaultUID","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]}
,{"Name":"wslDistributionFlags","Type":{"Kind":"ApiRef","Name":"WSL_DISTRIBUTION_FLAGS","TargetKind":"Default","Api":"System.SubsystemForLinux","Parents":[]},"Attrs":["In"]}
]
},{
"Name":"WslGetDistributionConfiguration"
,"SetLastError":false
,"DllImport":"Api-ms-win-wsl-api-l1-1-0.dll"
,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":null
,"Attrs":[]
,"Params":[
{"Name":"distributionName","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In","Const"]}
,{"Name":"distributionVersion","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Out"]}
,{"Name":"defaultUID","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Out"]}
,{"Name":"wslDistributionFlags","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"WSL_DISTRIBUTION_FLAGS","TargetKind":"Default","Api":"System.SubsystemForLinux","Parents":[]}},"Attrs":["Out"]}
,{"Name":"defaultEnvironmentVariables","Type":{"Kind":"PointerTo","Child":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"PSTR","TargetKind":"Default","Api":"Foundation","Parents":[]}}},"Attrs":["Out"]}
,{"Name":"defaultEnvironmentVariableCount","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Out"]}
]
},{
"Name":"WslLaunchInteractive"
,"SetLastError":false
,"DllImport":"Api-ms-win-wsl-api-l1-1-0.dll"
,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":null
,"Attrs":[]
,"Params":[
{"Name":"distributionName","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In","Const"]}
,{"Name":"command","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In","Optional","Const"]}
,{"Name":"useCurrentWorkingDirectory","Type":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In"]}
,{"Name":"exitCode","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Out"]}
]
},{
"Name":"WslLaunch"
,"SetLastError":false
,"DllImport":"Api-ms-win-wsl-api-l1-1-0.dll"
,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]}
,"ReturnAttrs":[]
,"Architectures":[]
,"Platform":null
,"Attrs":[]
,"Params":[
{"Name":"distributionName","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In","Const"]}
,{"Name":"command","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In","Optional","Const"]}
,{"Name":"useCurrentWorkingDirectory","Type":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In"]}
,{"Name":"stdIn","Type":{"Kind":"ApiRef","Name":"HANDLE","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In"]}
,{"Name":"stdOut","Type":{"Kind":"ApiRef","Name":"HANDLE","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In"]}
,{"Name":"stdErr","Type":{"Kind":"ApiRef","Name":"HANDLE","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In"]}
,{"Name":"process","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"HANDLE","TargetKind":"Default","Api":"Foundation","Parents":[]}},"Attrs":["Out"]}
]
}],
"UnicodeAliases":[
]
}