Skip to content

Commit 0a22812

Browse files
committed
C#: Add more stubs.
1 parent 248f87d commit 0a22812

File tree

6 files changed

+3554
-0
lines changed

6 files changed

+3554
-0
lines changed
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
// This file contains auto-generated code.
2+
// Generated from `Microsoft.Win32.SystemEvents, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51`.
3+
namespace Microsoft
4+
{
5+
namespace Win32
6+
{
7+
public class PowerModeChangedEventArgs : System.EventArgs
8+
{
9+
public PowerModeChangedEventArgs(Microsoft.Win32.PowerModes mode) => throw null;
10+
public Microsoft.Win32.PowerModes Mode { get => throw null; }
11+
}
12+
public delegate void PowerModeChangedEventHandler(object sender, Microsoft.Win32.PowerModeChangedEventArgs e);
13+
public enum PowerModes
14+
{
15+
Resume = 1,
16+
StatusChange = 2,
17+
Suspend = 3,
18+
}
19+
public class SessionEndedEventArgs : System.EventArgs
20+
{
21+
public SessionEndedEventArgs(Microsoft.Win32.SessionEndReasons reason) => throw null;
22+
public Microsoft.Win32.SessionEndReasons Reason { get => throw null; }
23+
}
24+
public delegate void SessionEndedEventHandler(object sender, Microsoft.Win32.SessionEndedEventArgs e);
25+
public class SessionEndingEventArgs : System.EventArgs
26+
{
27+
public bool Cancel { get => throw null; set { } }
28+
public SessionEndingEventArgs(Microsoft.Win32.SessionEndReasons reason) => throw null;
29+
public Microsoft.Win32.SessionEndReasons Reason { get => throw null; }
30+
}
31+
public delegate void SessionEndingEventHandler(object sender, Microsoft.Win32.SessionEndingEventArgs e);
32+
public enum SessionEndReasons
33+
{
34+
Logoff = 1,
35+
SystemShutdown = 2,
36+
}
37+
public class SessionSwitchEventArgs : System.EventArgs
38+
{
39+
public SessionSwitchEventArgs(Microsoft.Win32.SessionSwitchReason reason) => throw null;
40+
public Microsoft.Win32.SessionSwitchReason Reason { get => throw null; }
41+
}
42+
public delegate void SessionSwitchEventHandler(object sender, Microsoft.Win32.SessionSwitchEventArgs e);
43+
public enum SessionSwitchReason
44+
{
45+
ConsoleConnect = 1,
46+
ConsoleDisconnect = 2,
47+
RemoteConnect = 3,
48+
RemoteDisconnect = 4,
49+
SessionLogon = 5,
50+
SessionLogoff = 6,
51+
SessionLock = 7,
52+
SessionUnlock = 8,
53+
SessionRemoteControl = 9,
54+
}
55+
public sealed class SystemEvents
56+
{
57+
public static nint CreateTimer(int interval) => throw null;
58+
public static event System.EventHandler DisplaySettingsChanged;
59+
public static event System.EventHandler DisplaySettingsChanging;
60+
public static event System.EventHandler EventsThreadShutdown;
61+
public static event System.EventHandler InstalledFontsChanged;
62+
public static void InvokeOnEventsThread(System.Delegate method) => throw null;
63+
public static void KillTimer(nint timerId) => throw null;
64+
public static event System.EventHandler LowMemory;
65+
public static event System.EventHandler PaletteChanged;
66+
public static event Microsoft.Win32.PowerModeChangedEventHandler PowerModeChanged;
67+
public static event Microsoft.Win32.SessionEndedEventHandler SessionEnded;
68+
public static event Microsoft.Win32.SessionEndingEventHandler SessionEnding;
69+
public static event Microsoft.Win32.SessionSwitchEventHandler SessionSwitch;
70+
public static event System.EventHandler TimeChanged;
71+
public static event Microsoft.Win32.TimerElapsedEventHandler TimerElapsed;
72+
public static event Microsoft.Win32.UserPreferenceChangedEventHandler UserPreferenceChanged;
73+
public static event Microsoft.Win32.UserPreferenceChangingEventHandler UserPreferenceChanging;
74+
}
75+
public class TimerElapsedEventArgs : System.EventArgs
76+
{
77+
public TimerElapsedEventArgs(nint timerId) => throw null;
78+
public nint TimerId { get => throw null; }
79+
}
80+
public delegate void TimerElapsedEventHandler(object sender, Microsoft.Win32.TimerElapsedEventArgs e);
81+
public enum UserPreferenceCategory
82+
{
83+
Accessibility = 1,
84+
Color = 2,
85+
Desktop = 3,
86+
General = 4,
87+
Icon = 5,
88+
Keyboard = 6,
89+
Menu = 7,
90+
Mouse = 8,
91+
Policy = 9,
92+
Power = 10,
93+
Screensaver = 11,
94+
Window = 12,
95+
Locale = 13,
96+
VisualStyle = 14,
97+
}
98+
public class UserPreferenceChangedEventArgs : System.EventArgs
99+
{
100+
public Microsoft.Win32.UserPreferenceCategory Category { get => throw null; }
101+
public UserPreferenceChangedEventArgs(Microsoft.Win32.UserPreferenceCategory category) => throw null;
102+
}
103+
public delegate void UserPreferenceChangedEventHandler(object sender, Microsoft.Win32.UserPreferenceChangedEventArgs e);
104+
public class UserPreferenceChangingEventArgs : System.EventArgs
105+
{
106+
public Microsoft.Win32.UserPreferenceCategory Category { get => throw null; }
107+
public UserPreferenceChangingEventArgs(Microsoft.Win32.UserPreferenceCategory category) => throw null;
108+
}
109+
public delegate void UserPreferenceChangingEventHandler(object sender, Microsoft.Win32.UserPreferenceChangingEventArgs e);
110+
}
111+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net9.0</TargetFramework>
4+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
5+
<OutputPath>bin\</OutputPath>
6+
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<ProjectReference Include="../../_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj" />
11+
</ItemGroup>
12+
</Project>

0 commit comments

Comments
 (0)