Skip to content

Commit f941cf8

Browse files
committed
make TaskbarList enums/structs private
1 parent 620b90c commit f941cf8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

FlashpointSecurePlayer/ProgressManager.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,27 @@ public static class ProgressManager {
1616
public static readonly IntPtr PBST_ERROR = (IntPtr)2;
1717
public static readonly IntPtr PBST_PAUSED = (IntPtr)3;
1818

19-
public enum TBPF {
19+
private enum TBPF {
2020
TBPF_NOPROGRESS = 0x00000000,
2121
TBPF_INDETERMINATE = 0x00000001,
2222
TBPF_NORMAL = 0x00000002,
2323
TBPF_ERROR = 0x00000004,
2424
TBPF_PAUSED = 0x00000008
2525
}
2626

27-
public enum TBATF {
27+
private enum TBATF {
2828
TBATF_USEMDITHUMBNAIL = 0x00000001,
2929
TBATF_USEMDILIVEPREVIEW = 0x00000002
3030
}
3131

32-
public enum THB : uint {
32+
private enum THB : uint {
3333
THB_BITMAP = 0x00000001,
3434
THB_ICON = 0x00000002,
3535
THB_TOOLTIP = 0x00000004,
3636
THB_FLAGS = 0x00000008
3737
}
3838

39-
public enum THBF : uint {
39+
private enum THBF : uint {
4040
THBF_ENABLED = 0x00000000,
4141
THBF_DISABLED = 0x00000001,
4242
THBF_DISMISSONCLICK = 0x00000002,
@@ -45,7 +45,7 @@ public enum THBF : uint {
4545
}
4646

4747
[StructLayout(LayoutKind.Sequential, Pack = 4, CharSet = CharSet.Auto)]
48-
public struct THUMBBUTTON {
48+
private struct THUMBBUTTON {
4949
public THB dwMask;
5050
public uint iId;
5151
public uint iBitmap;
@@ -58,7 +58,7 @@ public struct THUMBBUTTON {
5858
}
5959

6060
[ComImport, Guid("EA1AFB91-9E28-4B86-90E9-9E9F8A5EEFAF"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
61-
public interface ITaskbarList3 {
61+
private interface ITaskbarList3 {
6262
// ITaskbarList
6363
void HrInit();
6464
void AddTab(IntPtr hwnd);
@@ -129,7 +129,7 @@ private class TaskbarList { }
129129
private static ITaskbarList3 taskbarList = null;
130130
private static readonly bool taskbarListVersion = Environment.OSVersion.Version >= new Version(6, 1);
131131

132-
const int PROGRESS_FORM_VALUE_COMPLETE = 100;
132+
private const int PROGRESS_FORM_VALUE_COMPLETE = 100;
133133

134134
private static ProgressBar progressBar = null;
135135
private static Form progressForm = null;

0 commit comments

Comments
 (0)