Skip to content

Commit d81945e

Browse files
authored
Fix inconsistencies in order of GeneratedDllImport fields (#60049)
1 parent b4773b0 commit d81945e

File tree

88 files changed

+153
-155
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+153
-155
lines changed

src/libraries/Common/src/Interop/Linux/System.Native/Interop.INotify.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ internal static partial class Sys
1313
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_INotifyInit", SetLastError = true)]
1414
internal static partial SafeFileHandle INotifyInit();
1515

16-
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_INotifyAddWatch", SetLastError = true, CharSet = CharSet.Ansi)]
16+
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_INotifyAddWatch", CharSet = CharSet.Ansi, SetLastError = true)]
1717
internal static partial int INotifyAddWatch(SafeFileHandle fd, string pathName, uint mask);
1818

1919
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_INotifyRemoveWatch", SetLastError = true)]

src/libraries/Common/src/Interop/Unix/System.Native/Interop.Access.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ internal enum AccessMode : int
1515
R_OK = 4, /* Check for read */
1616
}
1717

18-
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_Access", SetLastError = true, CharSet = CharSet.Ansi)]
18+
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_Access", CharSet = CharSet.Ansi, SetLastError = true)]
1919
internal static partial int Access(string path, AccessMode mode);
2020
}
2121
}

src/libraries/Common/src/Interop/Unix/System.Native/Interop.ForkAndExecProcess.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ internal static unsafe int ForkAndExecProcess(
4040
}
4141
}
4242

43-
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_ForkAndExecProcess", SetLastError = true, CharSet = CharSet.Ansi)]
43+
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_ForkAndExecProcess", CharSet = CharSet.Ansi, SetLastError = true)]
4444
private static unsafe partial int ForkAndExecProcess(
4545
string filename, byte** argv, byte** envp, string? cwd,
4646
int redirectStdin, int redirectStdout, int redirectStderr,

src/libraries/Common/src/Interop/Unix/System.Native/Interop.GetGroupList.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ internal static partial class Sys
4343
} while (true);
4444
}
4545

46-
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_GetGroupList", SetLastError = true, CharSet = CharSet.Ansi)]
46+
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_GetGroupList", CharSet = CharSet.Ansi, SetLastError = true)]
4747
private static unsafe partial int GetGroupList(string name, uint group, uint* groups, int* ngroups);
4848
}
4949
}

src/libraries/Common/src/Interop/Unix/System.Native/Interop.GetPeerUserName.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ internal static partial class Interop
99
{
1010
internal static partial class Sys
1111
{
12-
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_GetPeerUserName", SetLastError = true, CharSet = CharSet.Ansi)]
12+
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_GetPeerUserName", CharSet = CharSet.Ansi, SetLastError = true)]
1313
internal static partial string GetPeerUserName(SafeHandle socket);
1414
}
1515
}

src/libraries/Common/src/Interop/Unix/System.Native/Interop.GetPwUid.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ internal unsafe struct Passwd
2323
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_GetPwUidR", SetLastError = false)]
2424
internal static unsafe partial int GetPwUidR(uint uid, out Passwd pwd, byte* buf, int bufLen);
2525

26-
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_GetPwNamR", SetLastError = false, CharSet = CharSet.Ansi)]
26+
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_GetPwNamR", CharSet = CharSet.Ansi, SetLastError = false)]
2727
internal static unsafe partial int GetPwNamR(string name, out Passwd pwd, byte* buf, int bufLen);
2828
}
2929
}

src/libraries/Common/src/Interop/Unix/System.Native/Interop.Open.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ internal static partial class Interop
88
{
99
internal static partial class Sys
1010
{
11-
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_Open", SetLastError = true, CharSet = CharSet.Ansi)]
11+
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_Open", CharSet = CharSet.Ansi, SetLastError = true)]
1212
internal static partial SafeFileHandle Open(string filename, OpenFlags flags, int mode);
1313
}
1414
}

src/libraries/Common/src/Interop/Unix/System.Native/Interop.PathConf.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ internal enum PathConfName : int
2020
PC_VDISABLE = 9,
2121
}
2222

23-
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_PathConf", SetLastError = true, CharSet = CharSet.Ansi)]
23+
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_PathConf", CharSet = CharSet.Ansi, SetLastError = true)]
2424
private static partial int PathConf(string path, PathConfName name);
2525
}
2626
}

src/libraries/Common/src/Interop/Unix/System.Native/Interop.RealPath.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ internal static partial class Sys
1313
/// </summary>
1414
/// <param name="path">The path to the file system object</param>
1515
/// <returns>Returns the result string on success and null on failure</returns>
16-
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_RealPath", SetLastError = true, CharSet = CharSet.Ansi)]
16+
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_RealPath", CharSet = CharSet.Ansi, SetLastError = true)]
1717
internal static partial string RealPath(string path);
1818
}
1919
}

src/libraries/Common/src/Interop/Unix/System.Native/Interop.SNPrintF.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ internal static partial class Sys
2626
/// success; if the return value is equal to the size then the result may have been truncated.
2727
/// On failure, returns a negative value.
2828
/// </returns>
29-
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_SNPrintF", SetLastError = true, CharSet = CharSet.Ansi)]
29+
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_SNPrintF", CharSet = CharSet.Ansi, SetLastError = true)]
3030
internal static unsafe partial int SNPrintF(byte* str, int size, string format, string arg1);
3131

3232
/// <summary>
@@ -47,7 +47,7 @@ internal static partial class Sys
4747
/// success; if the return value is equal to the size then the result may have been truncated.
4848
/// On failure, returns a negative value.
4949
/// </returns>
50-
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_SNPrintF", SetLastError = true, CharSet = CharSet.Ansi)]
50+
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_SNPrintF", CharSet = CharSet.Ansi, SetLastError = true)]
5151
internal static unsafe partial int SNPrintF(byte* str, int size, string format, int arg1);
5252
}
5353
}

src/libraries/Common/src/Interop/Unix/System.Native/Interop.ShmOpen.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ internal static partial class Interop
88
{
99
internal static partial class Sys
1010
{
11-
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_ShmOpen", SetLastError = true, CharSet = CharSet.Ansi)]
11+
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_ShmOpen", CharSet = CharSet.Ansi, SetLastError = true)]
1212
internal static partial SafeFileHandle ShmOpen(string name, OpenFlags flags, int mode);
1313

14-
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_ShmUnlink", SetLastError = true, CharSet = CharSet.Ansi)]
14+
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_ShmUnlink", CharSet = CharSet.Ansi, SetLastError = true)]
1515
internal static partial int ShmUnlink(string name);
1616
}
1717
}

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.ConvertSdToStringSd.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ internal static partial class Advapi32
1010
{
1111
#if DLLIMPORTGENERATOR_ENABLED
1212
[GeneratedDllImport(Interop.Libraries.Advapi32, EntryPoint = "ConvertSecurityDescriptorToStringSecurityDescriptorW",
13-
CallingConvention = CallingConvention.Winapi, SetLastError = true, ExactSpelling = true, CharSet = CharSet.Unicode)]
13+
CallingConvention = CallingConvention.Winapi, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
1414
internal static partial bool ConvertSdToStringSd(
1515
#else
1616
[DllImport(Interop.Libraries.Advapi32, EntryPoint = "ConvertSecurityDescriptorToStringSecurityDescriptorW",
17-
CallingConvention = CallingConvention.Winapi, SetLastError = true, ExactSpelling = true, CharSet = CharSet.Unicode)]
17+
CallingConvention = CallingConvention.Winapi, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
1818
internal static extern bool ConvertSdToStringSd(
1919
#endif
2020
byte[] securityDescriptor,

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.ConvertStringSdToSd.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ internal static partial class Advapi32
1010
{
1111
#if DLLIMPORTGENERATOR_ENABLED
1212
[GeneratedDllImport(Interop.Libraries.Advapi32, EntryPoint = "ConvertStringSecurityDescriptorToSecurityDescriptorW",
13-
CallingConvention = CallingConvention.Winapi, SetLastError = true, ExactSpelling = true, CharSet = CharSet.Unicode)]
13+
CallingConvention = CallingConvention.Winapi, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
1414
internal static partial bool ConvertStringSdToSd(
1515
#else
1616
[DllImport(Interop.Libraries.Advapi32, EntryPoint = "ConvertStringSecurityDescriptorToSecurityDescriptorW",
17-
CallingConvention = CallingConvention.Winapi, SetLastError = true, ExactSpelling = true, CharSet = CharSet.Unicode)]
17+
CallingConvention = CallingConvention.Winapi, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
1818
internal static extern bool ConvertStringSdToSd(
1919
#endif
2020
string stringSd,

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.ConvertStringSidToSid.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ internal static partial class Interop
99
internal static partial class Advapi32
1010
{
1111
#if DLLIMPORTGENERATOR_ENABLED
12-
[GeneratedDllImport(Interop.Libraries.Advapi32, EntryPoint = "ConvertStringSidToSidW", SetLastError = true, CharSet = CharSet.Unicode)]
12+
[GeneratedDllImport(Interop.Libraries.Advapi32, EntryPoint = "ConvertStringSidToSidW", CharSet = CharSet.Unicode, SetLastError = true)]
1313
internal static partial int ConvertStringSidToSid(
1414
#else
15-
[DllImport(Interop.Libraries.Advapi32, EntryPoint = "ConvertStringSidToSidW", SetLastError = true, CharSet = CharSet.Unicode)]
15+
[DllImport(Interop.Libraries.Advapi32, EntryPoint = "ConvertStringSidToSidW", CharSet = CharSet.Unicode, SetLastError = true)]
1616
internal static extern int ConvertStringSidToSid(
1717
#endif
1818
string stringSid,

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.CreateProcessWithLogon.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ internal static partial class Interop
99
{
1010
internal static partial class Advapi32
1111
{
12-
[GeneratedDllImport(Libraries.Advapi32, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true, EntryPoint = "CreateProcessWithLogonW")]
12+
[GeneratedDllImport(Libraries.Advapi32, EntryPoint = "CreateProcessWithLogonW", CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
1313
internal static unsafe partial bool CreateProcessWithLogonW(
1414
string userName,
1515
string domain,

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.CreateWellKnownSid.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ internal static partial class Interop
99
internal static partial class Advapi32
1010
{
1111
#if DLLIMPORTGENERATOR_ENABLED
12-
[GeneratedDllImport(Interop.Libraries.Advapi32, EntryPoint = "CreateWellKnownSid", SetLastError = true, CharSet = CharSet.Unicode)]
12+
[GeneratedDllImport(Interop.Libraries.Advapi32, EntryPoint = "CreateWellKnownSid", CharSet = CharSet.Unicode, SetLastError = true)]
1313
internal static partial int CreateWellKnownSid(
1414
#else
15-
[DllImport(Interop.Libraries.Advapi32, EntryPoint = "CreateWellKnownSid", SetLastError = true, CharSet = CharSet.Unicode)]
15+
[DllImport(Interop.Libraries.Advapi32, EntryPoint = "CreateWellKnownSid", CharSet = CharSet.Unicode, SetLastError = true)]
1616
internal static extern int CreateWellKnownSid(
1717
#endif
1818
int sidType,

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.CryptAcquireContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ internal enum CryptAcquireContextFlags : uint
2121
}
2222

2323
#if DLLIMPORTGENERATOR_ENABLED
24-
[GeneratedDllImport(Libraries.Advapi32, SetLastError = true, CharSet = CharSet.Unicode, EntryPoint = "CryptAcquireContextW")]
24+
[GeneratedDllImport(Libraries.Advapi32, EntryPoint = "CryptAcquireContextW", CharSet = CharSet.Unicode, SetLastError = true)]
2525
public static partial bool CryptAcquireContext(
2626
#else
27-
[DllImport(Libraries.Advapi32, SetLastError = true, CharSet = CharSet.Unicode, EntryPoint = "CryptAcquireContextW")]
27+
[DllImport(Libraries.Advapi32, EntryPoint = "CryptAcquireContextW", CharSet = CharSet.Unicode, SetLastError = true)]
2828
public static extern bool CryptAcquireContext(
2929
#endif
3030
out SafeProvHandle phProv,

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.CryptSignHash.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ internal enum CryptSignAndVerifyHashFlags : int
2424
CRYPT_X931_FORMAT = 0x00000004, // Not supported
2525
}
2626

27-
[GeneratedDllImport(Libraries.Advapi32, CharSet = CharSet.Unicode, SetLastError = true, EntryPoint = "CryptSignHashW")]
27+
[GeneratedDllImport(Libraries.Advapi32, EntryPoint = "CryptSignHashW", CharSet = CharSet.Unicode, SetLastError = true)]
2828
public static partial bool CryptSignHash(
2929
SafeHashHandle hHash,
3030
KeySpec dwKeySpec,
@@ -33,7 +33,7 @@ public static partial bool CryptSignHash(
3333
byte[]? pbSignature,
3434
ref int pdwSigLen);
3535

36-
[GeneratedDllImport(Libraries.Advapi32, CharSet = CharSet.Unicode, SetLastError = true, EntryPoint = "CryptVerifySignatureW")]
36+
[GeneratedDllImport(Libraries.Advapi32, EntryPoint = "CryptVerifySignatureW", CharSet = CharSet.Unicode, SetLastError = true)]
3737
public static partial bool CryptVerifySignature(
3838
SafeHashHandle hHash,
3939
byte[] pbSignature,

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.EncryptDecrypt.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ internal static partial class Advapi32
1212
/// WARNING: This method does not implicitly handle long paths. Use EncryptFile.
1313
/// </summary>
1414
#if DLLIMPORTGENERATOR_ENABLED
15-
[GeneratedDllImport(Libraries.Advapi32, EntryPoint = "EncryptFileW", SetLastError = true, CharSet = CharSet.Unicode)]
15+
[GeneratedDllImport(Libraries.Advapi32, EntryPoint = "EncryptFileW", CharSet = CharSet.Unicode, SetLastError = true)]
1616
private static partial bool EncryptFilePrivate(string lpFileName);
1717
#else
18-
[DllImport(Libraries.Advapi32, EntryPoint = "EncryptFileW", SetLastError = true, CharSet = CharSet.Unicode)]
18+
[DllImport(Libraries.Advapi32, EntryPoint = "EncryptFileW", CharSet = CharSet.Unicode, SetLastError = true)]
1919
private static extern bool EncryptFilePrivate(string lpFileName);
2020
#endif
2121

@@ -29,10 +29,10 @@ internal static bool EncryptFile(string path)
2929
/// WARNING: This method does not implicitly handle long paths. Use DecryptFile.
3030
/// </summary>
3131
#if DLLIMPORTGENERATOR_ENABLED
32-
[GeneratedDllImport(Libraries.Advapi32, EntryPoint = "DecryptFileW", SetLastError = true, CharSet = CharSet.Unicode)]
32+
[GeneratedDllImport(Libraries.Advapi32, EntryPoint = "DecryptFileW", CharSet = CharSet.Unicode, SetLastError = true)]
3333
private static partial bool DecryptFileFilePrivate(
3434
#else
35-
[DllImport(Libraries.Advapi32, EntryPoint = "DecryptFileW", SetLastError = true, CharSet = CharSet.Unicode)]
35+
[DllImport(Libraries.Advapi32, EntryPoint = "DecryptFileW", CharSet = CharSet.Unicode, SetLastError = true)]
3636
private static extern bool DecryptFileFilePrivate(
3737
#endif
3838
string lpFileName,

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.GetSecurityDescriptorLength.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ internal static partial class Interop
99
internal static partial class Advapi32
1010
{
1111
[DllImport(Interop.Libraries.Advapi32, EntryPoint = "GetSecurityDescriptorLength", CallingConvention = CallingConvention.Winapi,
12-
ExactSpelling = true, CharSet = CharSet.Unicode)]
12+
CharSet = CharSet.Unicode, ExactSpelling = true)]
1313
internal static extern /*DWORD*/ uint GetSecurityDescriptorLength(IntPtr byteArray);
1414
}
1515
}

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.GetSecurityInfoByName.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ internal static partial class Interop
99
internal static partial class Advapi32
1010
{
1111
#if DLLIMPORTGENERATOR_ENABLED
12-
[GeneratedDllImport(Interop.Libraries.Advapi32, EntryPoint = "GetNamedSecurityInfoW", SetLastError = true, ExactSpelling = true, CharSet = CharSet.Unicode)]
12+
[GeneratedDllImport(Interop.Libraries.Advapi32, EntryPoint = "GetNamedSecurityInfoW", CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
1313
internal static partial uint GetSecurityInfoByName(
1414
#else
15-
[DllImport(Interop.Libraries.Advapi32, EntryPoint = "GetNamedSecurityInfoW", SetLastError = true, ExactSpelling = true, CharSet = CharSet.Unicode)]
15+
[DllImport(Interop.Libraries.Advapi32, EntryPoint = "GetNamedSecurityInfoW", CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
1616
internal static extern /*DWORD*/ uint GetSecurityInfoByName(
1717
#endif
1818
string name,

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.GetWindowsAccountDomainSid.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ internal static partial class Interop
99
internal static partial class Advapi32
1010
{
1111
#if DLLIMPORTGENERATOR_ENABLED
12-
[GeneratedDllImport(Interop.Libraries.Advapi32, EntryPoint = "GetWindowsAccountDomainSid", SetLastError = true, CharSet = CharSet.Unicode)]
12+
[GeneratedDllImport(Interop.Libraries.Advapi32, EntryPoint = "GetWindowsAccountDomainSid", CharSet = CharSet.Unicode, SetLastError = true)]
1313
internal static partial int GetWindowsAccountDomainSid(
1414
#else
15-
[DllImport(Interop.Libraries.Advapi32, EntryPoint = "GetWindowsAccountDomainSid", SetLastError = true, CharSet = CharSet.Unicode)]
15+
[DllImport(Interop.Libraries.Advapi32, EntryPoint = "GetWindowsAccountDomainSid", CharSet = CharSet.Unicode, SetLastError = true)]
1616
internal static extern int GetWindowsAccountDomainSid(
1717
#endif
1818
byte[] sid,

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.IsEqualDomainSid.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ internal static partial class Interop
99
internal static partial class Advapi32
1010
{
1111
#if DLLIMPORTGENERATOR_ENABLED
12-
[GeneratedDllImport(Interop.Libraries.Advapi32, EntryPoint = "EqualDomainSid", SetLastError = true, CharSet = CharSet.Unicode)]
12+
[GeneratedDllImport(Interop.Libraries.Advapi32, EntryPoint = "EqualDomainSid", CharSet = CharSet.Unicode, SetLastError = true)]
1313
internal static partial int IsEqualDomainSid(
1414
#else
15-
[DllImport(Interop.Libraries.Advapi32, EntryPoint = "EqualDomainSid", SetLastError = true, CharSet = CharSet.Unicode)]
15+
[DllImport(Interop.Libraries.Advapi32, EntryPoint = "EqualDomainSid", CharSet = CharSet.Unicode, SetLastError = true)]
1616
internal static extern int IsEqualDomainSid(
1717
#endif
1818
byte[] sid1,

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.IsWellKnownSid.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ internal static partial class Interop
99
internal static partial class Advapi32
1010
{
1111
#if DLLIMPORTGENERATOR_ENABLED
12-
[GeneratedDllImport(Interop.Libraries.Advapi32, EntryPoint = "IsWellKnownSid", SetLastError = true, CharSet = CharSet.Unicode)]
12+
[GeneratedDllImport(Interop.Libraries.Advapi32, EntryPoint = "IsWellKnownSid", CharSet = CharSet.Unicode, SetLastError = true)]
1313
internal static partial int IsWellKnownSid(
1414
#else
15-
[DllImport(Interop.Libraries.Advapi32, EntryPoint = "IsWellKnownSid", SetLastError = true, CharSet = CharSet.Unicode)]
15+
[DllImport(Interop.Libraries.Advapi32, EntryPoint = "IsWellKnownSid", CharSet = CharSet.Unicode, SetLastError = true)]
1616
internal static extern int IsWellKnownSid(
1717
#endif
1818
byte[] sid,

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.LookupPrivilegeValue.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ internal static partial class Interop
88
internal static partial class Advapi32
99
{
1010
#if DLLIMPORTGENERATOR_ENABLED
11-
[GeneratedDllImport(Libraries.Advapi32, CharSet = CharSet.Unicode, SetLastError = true, EntryPoint = "LookupPrivilegeValueW")]
11+
[GeneratedDllImport(Libraries.Advapi32, EntryPoint = "LookupPrivilegeValueW", CharSet = CharSet.Unicode, SetLastError = true)]
1212
internal static partial bool LookupPrivilegeValue(
1313
#else
14-
[DllImport(Libraries.Advapi32, CharSet = CharSet.Unicode, SetLastError = true, BestFitMapping = false, EntryPoint = "LookupPrivilegeValueW")]
14+
[DllImport(Libraries.Advapi32, EntryPoint = "LookupPrivilegeValueW", CharSet = CharSet.Unicode, SetLastError = true, BestFitMapping = false)]
1515
internal static extern bool LookupPrivilegeValue(
1616
#endif
1717
[MarshalAs(UnmanagedType.LPTStr)] string? lpSystemName, [MarshalAs(UnmanagedType.LPTStr)] string lpName, out LUID lpLuid);

0 commit comments

Comments
 (0)