// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
+#nullable enable
using System.Runtime.InteropServices;
internal partial class Interop
{
[DllImport(Libraries.Advapi32, CharSet = CharSet.Unicode, SetLastError = true, ExactSpelling = true)]
internal static extern bool LookupAccountNameW(
- string lpSystemName,
+ string? lpSystemName,
ref char lpAccountName,
ref byte Sid,
ref uint cbSid,
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
+#nullable enable
using System;
using System.Runtime.InteropServices;
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
+#nullable enable
#if REGISTRY_ASSEMBLY
using Microsoft.Win32.SafeHandles;
#else
SafeRegistryHandle hKey,
string lpSubKey,
int Reserved,
- string lpClass,
+ string? lpClass,
int dwOptions,
int samDesired,
ref Interop.Kernel32.SECURITY_ATTRIBUTES secAttrs,
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
+#nullable enable
#if REGISTRY_ASSEMBLY
using Microsoft.Win32.SafeHandles;
#else
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
+#nullable enable
#if REGISTRY_ASSEMBLY
using Microsoft.Win32.SafeHandles;
#else
internal partial class Advapi32
{
[DllImport(Libraries.Advapi32, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegDeleteValueW")]
- internal static extern int RegDeleteValue(SafeRegistryHandle hKey, string lpValueName);
+ internal static extern int RegDeleteValue(SafeRegistryHandle hKey, string? lpValueName);
}
}
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
+#nullable enable
#if REGISTRY_ASSEMBLY
using Microsoft.Win32.SafeHandles;
#else
int dwIndex,
char[] lpName,
ref int lpcbName,
- int[] lpReserved,
- [Out] char[] lpClass,
- int[] lpcbClass,
- long[] lpftLastWriteTime);
+ int[]? lpReserved,
+ [Out] char[]? lpClass,
+ int[]? lpcbClass,
+ long[]? lpftLastWriteTime);
}
}
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
+#nullable enable
#if REGISTRY_ASSEMBLY
using Microsoft.Win32.SafeHandles;
#else
char[] lpValueName,
ref int lpcbValueName,
IntPtr lpReserved_MustBeZero,
- int[] lpType,
- byte[] lpData,
- int[] lpcbData);
+ int[]? lpType,
+ byte[]? lpData,
+ int[]? lpcbData);
}
}
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
+#nullable enable
#if REGISTRY_ASSEMBLY
using Microsoft.Win32.SafeHandles;
#else
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
+#nullable enable
#if REGISTRY_ASSEMBLY
using Microsoft.Win32.SafeHandles;
#else
[DllImport(Libraries.Advapi32, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegOpenKeyExW")]
internal static extern int RegOpenKeyEx(
SafeRegistryHandle hKey,
- string lpSubKey,
+ string? lpSubKey,
int ulOptions,
int samDesired,
out SafeRegistryHandle hkResult);
[DllImport(Libraries.Advapi32, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegOpenKeyExW")]
internal static extern int RegOpenKeyEx(
IntPtr hKey,
- string lpSubKey,
+ string? lpSubKey,
int ulOptions,
int samDesired,
out SafeRegistryHandle hkResult);
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
+#nullable enable
#if REGISTRY_ASSEMBLY
using Microsoft.Win32.SafeHandles;
#else
[DllImport(Libraries.Advapi32, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegQueryInfoKeyW")]
internal static extern int RegQueryInfoKey(
SafeRegistryHandle hKey,
- [Out] char[] lpClass,
- int[] lpcbClass,
+ [Out] char[]? lpClass,
+ int[]? lpcbClass,
IntPtr lpReserved_MustBeZero,
ref int lpcSubKeys,
- int[] lpcbMaxSubKeyLen,
- int[] lpcbMaxClassLen,
+ int[]? lpcbMaxSubKeyLen,
+ int[]? lpcbMaxClassLen,
ref int lpcValues,
- int[] lpcbMaxValueNameLen,
- int[] lpcbMaxValueLen,
- int[] lpcbSecurityDescriptor,
- int[] lpftLastWriteTime);
+ int[]? lpcbMaxValueNameLen,
+ int[]? lpcbMaxValueLen,
+ int[]? lpcbSecurityDescriptor,
+ int[]? lpftLastWriteTime);
}
}
[DllImport(Libraries.Advapi32, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegQueryValueExW")]
internal static extern int RegQueryValueEx(
SafeRegistryHandle hKey,
- string lpValueName,
+ string? lpValueName,
int[]? lpReserved,
ref int lpType,
[Out] byte[]? lpData,
[DllImport(Libraries.Advapi32, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegQueryValueExW")]
internal static extern int RegQueryValueEx(
SafeRegistryHandle hKey,
- string lpValueName,
+ string? lpValueName,
int[]? lpReserved,
ref int lpType,
ref int lpData,
[DllImport(Libraries.Advapi32, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegQueryValueExW")]
internal static extern int RegQueryValueEx(
SafeRegistryHandle hKey,
- string lpValueName,
+ string? lpValueName,
int[]? lpReserved,
ref int lpType,
ref long lpData,
[DllImport(Libraries.Advapi32, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegQueryValueExW")]
internal static extern int RegQueryValueEx(
SafeRegistryHandle hKey,
- string lpValueName,
+ string? lpValueName,
int[]? lpReserved,
ref int lpType,
- [Out] char[] lpData,
+ [Out] char[]? lpData,
ref int lpcbData);
}
}
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
+#nullable enable
#if REGISTRY_ASSEMBLY
using Microsoft.Win32.SafeHandles;
#else
[DllImport(Libraries.Advapi32, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegSetValueExW")]
internal static extern int RegSetValueEx(
SafeRegistryHandle hKey,
- string lpValueName,
+ string? lpValueName,
int Reserved,
int dwType,
- byte[] lpData,
+ byte[]? lpData,
int cbData);
[DllImport(Libraries.Advapi32, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegSetValueExW")]
internal static extern int RegSetValueEx(
SafeRegistryHandle hKey,
- string lpValueName,
+ string? lpValueName,
int Reserved,
int dwType,
- char[] lpData,
+ char[]? lpData,
int cbData);
[DllImport(Libraries.Advapi32, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegSetValueExW")]
internal static extern int RegSetValueEx(
SafeRegistryHandle hKey,
- string lpValueName,
+ string? lpValueName,
int Reserved,
int dwType,
ref int lpData,
[DllImport(Libraries.Advapi32, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegSetValueExW")]
internal static extern int RegSetValueEx(
SafeRegistryHandle hKey,
- string lpValueName,
+ string? lpValueName,
int Reserved,
int dwType,
ref long lpData,
[DllImport(Libraries.Advapi32, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegSetValueExW")]
internal static extern int RegSetValueEx(
SafeRegistryHandle hKey,
- string lpValueName,
+ string? lpValueName,
int Reserved,
int dwType,
- string lpData,
+ string? lpData,
int cbData);
}
}
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
+#nullable enable
internal partial class Interop
{
internal partial class Advapi32