-
Notifications
You must be signed in to change notification settings - Fork 0
GUI
Andrey Pepper edited this page Jun 8, 2026
·
2 revisions
Applications are user-visible processes with windows, buttons, and interaction.
using AVOS.System64.Processing;
using System.Drawing;
public class MyApp : Process
{
public MyApp()
{
Name = "My Application";
Developer = "YourName";
Type = ProcessType.Application;
WindowData = new WindowData
{
WinPos = new Rectangle(
100,
100,
500,
300
),
AllowResize = true,
MoveAble = true,
ShowCloseButton = true,
ShowMinButton = true,
ShowMaxButton = true
};
}
public override void Run()
{
}
}ProcessManager.Start(
new MyApp()
);Applications should use:
Type = ProcessType.Application;Available process types:
ProcessType.Application
ProcessType.ServiceWindowData controls window appearance and behavior.
Example:
WindowData = new WindowData
{
WinPos = new Rectangle(
100,
100,
500,
300
),
AllowResize = true,
MoveAble = true,
ShowCloseButton = true,
ShowMinButton = true,
ShowMaxButton = true
};Defines window position and size.
WinPos = new Rectangle(
X,
Y,
Width,
Height
);Allows the user to resize the window.
AllowResize = true;Allows the window to be moved.
MoveAble = true;Displays the close button.
ShowCloseButton = true;Displays the minimize button.
ShowMinButton = true;Displays the maximize button.
ShowMaxButton = true;MessageBox.Show(
"Hello World!",
"My Application"
);UAC.Request(
new UAC.ElevationRequest(
this,
UAC.SecurityLevel.System
)Example:
if (!IsElevated)
{
UAC.Request(
this,
"Administrator privileges are required."
);
return;
}
// Administrator codeServices are background processes that run without a visible window.
using AVOS.System64.Processing;
public class MyService : Process
{
public MyService()
{
Name = "My Service";
Developer = "YourName";
Type = ProcessType.Service;
WindowData = null;
}
public override void Run()
{
}
}ProcessManager.Start(
new MyService()
);Services normally do not create windows.
WindowData = null;Applications and services can communicate using shared variables or process references.
public static class SharedData
{
public static string Message =
"Hello";
}string text =
SharedData.Message;var service =
ProcessManager.GetProcess<MyService>();service?.Restart();Service:
public class ClockService : Process
{
public static string CurrentTime;
public override void Run()
{
CurrentTime =
DateTime.Now.ToString();
}
}Application:
GUI.DrawText(
ClockService.CurrentTime,
Color.White,
10,
10
);