Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Format-Document on solution #506

Merged
merged 1 commit into from
Jul 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Kernel32/storebanned/Kernel32+LANGID.cs
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ public enum SubLanguage : ushort
public PrimaryLanguage Primary
{
get { return (PrimaryLanguage)(this.data & PrimaryLanguageMask); }
set { this.data = (ushort)((PrimaryLanguage)((this.data & SubLanguageMask) | ((ushort)value & PrimaryLanguageMask))); }
set { this.data = (ushort)((PrimaryLanguage)((this.data & SubLanguageMask) | ((ushort)value & PrimaryLanguageMask))); }
}

public SubLanguage Sub
Expand Down
4 changes: 2 additions & 2 deletions src/Kernel32/storebanned/Kernel32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ public static partial class Kernel32
/// <see cref="GetLastError" />.
/// </para>
/// </returns>
[DllImport(api_ms_win_core_processthreads_l1_1_1, SetLastError=true)]
[DllImport(api_ms_win_core_processthreads_l1_1_1, SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool GetProcessTimes(SafeObjectHandle handle, out FILETIME creation, out FILETIME exit, out FILETIME kernel, out FILETIME user);

Expand Down Expand Up @@ -2262,7 +2262,7 @@ public static partial class Kernel32
/// If the function succeeds, the return value is true. If the function fails, the return value false. To get extended error information, call <see cref="GetLastError"/>.
/// </returns>
[DllImport(nameof(Kernel32), SetLastError = true)]
[return:MarshalAs(UnmanagedType.Bool)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern unsafe bool HeapFree(IntPtr hHeap, HeapFreeFlags dwFlags, void* hMem);

/// <summary>
Expand Down
6 changes: 3 additions & 3 deletions src/Magnification/Magnification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ public static partial class Magnification
[DllImport(nameof(Magnification))]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool MagSetFullscreenTransform(
 float magLevel,
 int xOffset,
 int yOffset);
float magLevel,
int xOffset,
int yOffset);
}
}
2 changes: 1 addition & 1 deletion src/NTDll/NTDll.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static partial class NTDll
/// </remarks>
[DllImport(nameof(NTDll))]
public static unsafe extern NTSTATUS RtlVerifyVersionInfo(
[Friendly(FriendlyFlags.Bidirectional)]Kernel32.OSVERSIONINFOEX* VersionInfo,
[Friendly(FriendlyFlags.Bidirectional)] Kernel32.OSVERSIONINFOEX* VersionInfo,
Kernel32.VER_MASK TypeMask,
long ConditionMask);

Expand Down
2 changes: 1 addition & 1 deletion src/User32/User32+ScanCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,6 @@ public enum ScanCode : ushort
LAUNCH_MEDIA_SELECT = 109,
F23 = 110,
F24 = 118
}
}
}
}
2 changes: 1 addition & 1 deletion src/User32/User32.Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace PInvoke
/// </content>
public static partial class User32
{
/// <summary>
/// <summary>
/// The BeginPaint function prepares the specified window for painting and fills a <see cref="PAINTSTRUCT"/> structure with information about the painting.
/// </summary>
/// <param name="hwnd">Handle to the window to be repainted.</param>
Expand Down
2 changes: 1 addition & 1 deletion src/WtsApi32/WtsApi32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public static partial class WtsApi32
[SuppressUnmanagedCodeSecurity]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
#endif
[DllImport(nameof(WtsApi32), SetLastError =true, CharSet = CharSet.Unicode)]
[DllImport(nameof(WtsApi32), SetLastError = true, CharSet = CharSet.Unicode)]
private static extern void WTSCloseServer(IntPtr hServer);
}
}