50 references to StatusCode
dotnet-aot (8)
ManagedHost.cs (8)
131
StatusCode
result = Interop.hostfxr_initialize_for_dotnet_command_line(
137
if (result !=
StatusCode
.Success && handle == 0)
156
StatusCode
propertyResult = Interop.hostfxr_set_runtime_property_value(
158
if (propertyResult !=
StatusCode
.Success)
179
StatusCode
appResult = Interop.hostfxr_run_app(handle);
207
StatusCode
result = Interop.hostfxr_initialize_for_runtime_config(
212
if (result !=
StatusCode
.Success && _hostContextHandle == 0)
223
if (result !=
StatusCode
.Success)
Microsoft.DotNet.NativeWrapper (42)
_generated\0\LibraryImports.g.cs (23)
8
internal static partial global::Microsoft.DotNet.NativeWrapper.
StatusCode
hostfxr_get_dotnet_environment_info(string dotnetRoot, nint reserved, global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_get_dotnet_environment_info_result_fn result, nint resultContext)
14
global::Microsoft.DotNet.NativeWrapper.
StatusCode
__retVal = default;
37
static extern unsafe global::Microsoft.DotNet.NativeWrapper.
StatusCode
__PInvoke(nint __dotnetRoot_native, nint __reserved_native, nint __result_native, nint __resultContext_native);
56
internal static partial global::Microsoft.DotNet.NativeWrapper.
StatusCode
hostfxr_resolve_sdk2(string exeDir, string workingDir, global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_resolve_sdk2_flags_t flags, global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_resolve_sdk2_result_fn result)
63
global::Microsoft.DotNet.NativeWrapper.
StatusCode
__retVal = default;
88
static extern unsafe global::Microsoft.DotNet.NativeWrapper.
StatusCode
__PInvoke(nint __exeDir_native, nint __workingDir_native, global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_resolve_sdk2_flags_t __flags_native, nint __result_native);
99
private static partial global::Microsoft.DotNet.NativeWrapper.
StatusCode
hostfxr_get_available_sdks_private(string exeDir, global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_get_available_sdks_result_fn result)
105
global::Microsoft.DotNet.NativeWrapper.
StatusCode
__retVal = default;
128
static extern unsafe global::Microsoft.DotNet.NativeWrapper.
StatusCode
__PInvoke(nint __exeDir_native, nint __result_native);
139
internal static partial global::Microsoft.DotNet.NativeWrapper.
StatusCode
hostfxr_initialize_for_runtime_config(nint runtimeConfigPath, in global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_initialize_parameters parameters, out nint hostContextHandle)
144
global::Microsoft.DotNet.NativeWrapper.
StatusCode
__retVal;
156
static extern unsafe global::Microsoft.DotNet.NativeWrapper.
StatusCode
__PInvoke(nint __runtimeConfigPath_native, global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_initialize_parameters* __parameters_native, nint* __hostContextHandle_native);
167
internal static partial global::Microsoft.DotNet.NativeWrapper.
StatusCode
hostfxr_get_runtime_delegate(nint hostContextHandle, global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_delegate_type type, out nint @delegate)
172
global::Microsoft.DotNet.NativeWrapper.
StatusCode
__retVal;
183
static extern unsafe global::Microsoft.DotNet.NativeWrapper.
StatusCode
__PInvoke(nint __hostContextHandle_native, global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_delegate_type __type_native, nint* __delegate_native);
194
internal static partial global::Microsoft.DotNet.NativeWrapper.
StatusCode
hostfxr_initialize_for_dotnet_command_line(int argc, string[] argv, in global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_initialize_parameters parameters, out nint hostContextHandle)
201
global::Microsoft.DotNet.NativeWrapper.
StatusCode
__retVal = default;
256
static extern unsafe global::Microsoft.DotNet.NativeWrapper.
StatusCode
__PInvoke(int __argc_native, nint* __argv_native, global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_initialize_parameters* __parameters_native, nint* __hostContextHandle_native);
266
internal static extern partial global::Microsoft.DotNet.NativeWrapper.
StatusCode
hostfxr_run_app(nint hostContextHandle);
274
internal static extern partial global::Microsoft.DotNet.NativeWrapper.
StatusCode
hostfxr_close(nint hostContextHandle);
283
internal static partial global::Microsoft.DotNet.NativeWrapper.
StatusCode
hostfxr_set_runtime_property_value(nint hostContextHandle, string name, string value)
289
global::Microsoft.DotNet.NativeWrapper.
StatusCode
__retVal = default;
310
static extern unsafe global::Microsoft.DotNet.NativeWrapper.
StatusCode
__PInvoke(nint __hostContextHandle_native, nint __name_native, nint __value_native);
Interop.cs (17)
261
/// <see cref="
StatusCode
.Success"/> on success, or an error status code.
273
internal static partial
StatusCode
hostfxr_get_dotnet_environment_info(
350
/// <see cref="
StatusCode
.Success"/> if the SDK was resolved, or <see cref="
StatusCode
.SdkResolveFailure"/> if not found.
359
internal static partial
StatusCode
hostfxr_resolve_sdk2(
393
/// Always returns <see cref="
StatusCode
.Success"/>.
401
internal static
StatusCode
hostfxr_get_available_sdks(string? exeDir, out string[] result)
404
StatusCode
status = hostfxr_get_available_sdks_private(exeDir, SdkCallback);
426
private static partial
StatusCode
hostfxr_get_available_sdks_private(
472
internal static partial
StatusCode
hostfxr_initialize_for_runtime_config(
487
internal static partial
StatusCode
hostfxr_get_runtime_delegate(
504
internal static partial
StatusCode
hostfxr_initialize_for_dotnet_command_line(
526
internal static partial
StatusCode
hostfxr_run_app(
539
internal static partial
StatusCode
hostfxr_close(
553
/// <see cref="
StatusCode
.Success"/> on success, <see cref="
StatusCode
.InvalidArgFailure"/> if the runtime
568
internal static partial
StatusCode
hostfxr_set_runtime_property_value(
NETBundlesNativeWrapper.cs (1)
14
StatusCode
errorCode = Interop.hostfxr_get_dotnet_environment_info(dotnetExeDirectory, default, info.Initialize, default);
NETCoreSdkResolverNativeWrapper.cs (1)
18
StatusCode
errorCode = Interop.hostfxr_resolve_sdk2(dotnetExeDirectory, globalJsonStartDirectory, flags, result.Initialize);