Skip to content

Commit a84bc89

Browse files
author
Pallavi Taneja
committed
Incorporated CR comments.
1. Updated the Interop.Libraries to use pascal casing. 2. Added new line at the EOF.
1 parent aae2782 commit a84bc89

16 files changed

+26
-27
lines changed

src/Common/src/Interop/Windows/Interop.Libraries.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ private static class Libraries
88
internal const string Debug = "api-ms-win-core-debug-l1-1-0.dll";
99
internal const string Handle = "api-ms-win-core-handle-l1-1-0.dll";
1010
internal const string Localization = "api-ms-win-core-localization-l1-2-0.dll";
11-
internal const string PROCESSENVIRONMENT_L1_APISET = "api-ms-win-core-processenvironment-l1-1-0.dll";
12-
internal const string REGISTRY_L1_APISET = "api-ms-win-core-registry-l1-1-0.dll";
13-
internal const string REGISTRY_L2_APISET = "api-ms-win-core-registry-l2-1-0.dll";
11+
internal const string Registry_L1 = "api-ms-win-core-registry-l1-1-0.dll";
12+
internal const string Registry_L2 = "api-ms-win-core-registry-l2-1-0.dll";
1413
internal const string User32 = "user32.dll";
1514
}
1615
}

src/Common/src/Interop/Windows/mincore/Interop.Errors.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ internal partial class Errors
1717
internal const int ERROR_BAD_IMPERSONATION_LEVEL = 0x542;
1818
}
1919
}
20-
}
20+
}

src/Common/src/Interop/Windows/mincore/Interop.RegCloseKey.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ internal partial class Interop
99
{
1010
internal partial class mincore
1111
{
12-
[DllImport(Libraries.REGISTRY_L1_APISET)]
12+
[DllImport(Libraries.Registry_L1)]
1313
internal extern static int RegCloseKey(IntPtr hKey);
1414
}
1515
}

src/Common/src/Interop/Windows/mincore/Interop.RegConnectRegistry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ internal partial class Interop
99
{
1010
internal partial class mincore
1111
{
12-
[DllImport(Libraries.REGISTRY_L2_APISET, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegConnectRegistryW")]
12+
[DllImport(Libraries.Registry_L2, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegConnectRegistryW")]
1313
internal static extern int RegConnectRegistry(String machineName, SafeRegistryHandle key, out SafeRegistryHandle result);
1414
}
1515
}

src/Common/src/Interop/Windows/mincore/Interop.RegCreateKeyEx.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ internal partial class mincore
1111
{
1212
// Note: RegCreateKeyEx won't set the last error on failure - it returns
1313
// an error code if it fails.
14-
[DllImport(Libraries.REGISTRY_L1_APISET, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegCreateKeyExW")]
14+
[DllImport(Libraries.Registry_L1, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegCreateKeyExW")]
1515
internal static extern int RegCreateKeyEx(
1616
SafeRegistryHandle hKey,
1717
String lpSubKey,

src/Common/src/Interop/Windows/mincore/Interop.RegDeleteKeyEx.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ internal partial class Interop
99
{
1010
internal partial class mincore
1111
{
12-
[DllImport(Libraries.REGISTRY_L1_APISET, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegDeleteKeyExW")]
12+
[DllImport(Libraries.Registry_L1, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegDeleteKeyExW")]
1313
internal static extern int RegDeleteKeyEx(SafeRegistryHandle hKey, String lpSubKey, int samDesired, int Reserved);
1414
}
1515
}

src/Common/src/Interop/Windows/mincore/Interop.RegDeleteValue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ internal partial class Interop
99
{
1010
internal partial class mincore
1111
{
12-
[DllImport(Libraries.REGISTRY_L1_APISET, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegDeleteValueW")]
12+
[DllImport(Libraries.Registry_L1, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegDeleteValueW")]
1313
internal static extern int RegDeleteValue(SafeRegistryHandle hKey, String lpValueName);
1414
}
1515
}

src/Common/src/Interop/Windows/mincore/Interop.RegEnumKeyEx.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ internal partial class Interop
1010
{
1111
internal partial class mincore
1212
{
13-
[DllImport(Libraries.REGISTRY_L1_APISET, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegEnumKeyExW")]
13+
[DllImport(Libraries.Registry_L1, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegEnumKeyExW")]
1414
internal unsafe static extern int RegEnumKeyEx(
1515
SafeRegistryHandle hKey,
1616
int dwIndex,

src/Common/src/Interop/Windows/mincore/Interop.RegEnumValue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ internal partial class Interop
99
{
1010
internal partial class mincore
1111
{
12-
[DllImport(Libraries.REGISTRY_L1_APISET, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegEnumValueW")]
12+
[DllImport(Libraries.Registry_L1, CharSet = CharSet.Unicode, BestFitMapping = false, EntryPoint = "RegEnumValueW")]
1313
internal unsafe static extern int RegEnumValue(
1414
SafeRegistryHandle hKey,
1515
int dwIndex,

src/Common/src/Interop/Windows/mincore/Interop.RegFlushKey.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ internal partial class Interop
88
{
99
internal partial class mincore
1010
{
11-
[DllImport(Libraries.REGISTRY_L1_APISET)]
11+
[DllImport(Libraries.Registry_L1)]
1212
internal static extern int RegFlushKey(SafeRegistryHandle hKey);
1313
}
1414
}

0 commit comments

Comments
 (0)