mirror of
https://github.com/thebookisclosed/AmperageKit
synced 2026-06-08 17:43:20 +00:00
53 lines
1.3 KiB
C#
53 lines
1.3 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace ProcessCreationExt.NativeStructs
|
|
{
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
internal struct PROCESS_INFORMATION
|
|
{
|
|
internal IntPtr hProcess;
|
|
internal IntPtr hThread;
|
|
internal uint dwProcessId;
|
|
internal uint dwThreadId;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
|
|
internal struct STARTUPINFO
|
|
{
|
|
internal int cb;
|
|
internal string lpReserved;
|
|
internal string lpDesktop;
|
|
internal string lpTitle;
|
|
internal int dwX;
|
|
internal int dwY;
|
|
internal int dwXSize;
|
|
internal int dwYSize;
|
|
internal int dwXCountChars;
|
|
internal int dwYCountChars;
|
|
internal int dwFillAttribute;
|
|
internal int dwFlags;
|
|
internal short wShowWindow;
|
|
internal short cbReserved2;
|
|
internal IntPtr lpReserved2;
|
|
internal IntPtr hStdInput;
|
|
internal IntPtr hStdOutput;
|
|
internal IntPtr hStdError;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
internal struct LUID
|
|
{
|
|
internal int LowPart;
|
|
internal uint HighPart;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
internal struct TOKEN_PRIVILEGES
|
|
{
|
|
internal uint PrivilegeCount;
|
|
internal LUID Luid;
|
|
internal uint Attrs;
|
|
}
|
|
}
|