Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordotnet bot <dotnet-bot@dotnetfoundation.org>2018-12-20 20:48:59 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2018-12-20 20:51:17 +0300
commitccd7b52ca8a70d6aed6667e2d2f0d496f596a941 (patch)
tree349a7a7fda555563879e5f4ee5604c1d71573527 /netcore/System.Private.CoreLib/shared/Interop/Windows/Advapi32/Interop.RegEnumValue.cs
parent53f091ea4f1fca6fc758a3f3a393898f22f93087 (diff)
Add System.Private.CoreLib shared sources (#12162)
Taken from corefx commit 5956ad35864352b38c53aa8c2d1ce012c96b168d. Subsequent updates will happen via a mirroring bot.
Diffstat (limited to 'netcore/System.Private.CoreLib/shared/Interop/Windows/Advapi32/Interop.RegEnumValue.cs')
-rw-r--r--netcore/System.Private.CoreLib/shared/Interop/Windows/Advapi32/Interop.RegEnumValue.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/netcore/System.Private.CoreLib/shared/Interop/Windows/Advapi32/Interop.RegEnumValue.cs b/netcore/System.Private.CoreLib/shared/Interop/Windows/Advapi32/Interop.RegEnumValue.cs
new file mode 100644
index 00000000000..28d24e208ab
--- /dev/null
+++ b/netcore/System.Private.CoreLib/shared/Interop/Windows/Advapi32/Interop.RegEnumValue.cs
@@ -0,0 +1,28 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+#if REGISTRY_ASSEMBLY
+using Microsoft.Win32.SafeHandles;
+#else
+using Internal.Win32.SafeHandles;
+#endif
+using System;
+using System.Runtime.InteropServices;
+
+internal partial class Interop
+{
+ internal partial class Advapi32
+ {
+ [DllImport(Libraries.Advapi32, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegEnumValueW")]
+ internal static extern unsafe int RegEnumValue(
+ SafeRegistryHandle hKey,
+ int dwIndex,
+ char[] lpValueName,
+ ref int lpcbValueName,
+ IntPtr lpReserved_MustBeZero,
+ int[] lpType,
+ byte[] lpData,
+ int[] lpcbData);
+ }
+}