summaryrefslogtreecommitdiffstats
path: root/third_party/rust/winapi-0.2.8/src/processthreadsapi.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--third_party/rust/winapi-0.2.8/src/processthreadsapi.rs62
1 files changed, 62 insertions, 0 deletions
diff --git a/third_party/rust/winapi-0.2.8/src/processthreadsapi.rs b/third_party/rust/winapi-0.2.8/src/processthreadsapi.rs
new file mode 100644
index 0000000000..fad58c7e5a
--- /dev/null
+++ b/third_party/rust/winapi-0.2.8/src/processthreadsapi.rs
@@ -0,0 +1,62 @@
+// Copyright © 2015, Peter Atashian
+// Licensed under the MIT License <LICENSE.md>
+STRUCT!{struct PROCESS_INFORMATION {
+ hProcess: ::HANDLE,
+ hThread: ::HANDLE,
+ dwProcessId: ::DWORD,
+ dwThreadId: ::DWORD,
+}}
+pub type PPROCESS_INFORMATION = *mut PROCESS_INFORMATION;
+pub type LPPROCESS_INFORMATION = *mut PROCESS_INFORMATION;
+STRUCT!{struct STARTUPINFOA {
+ cb: ::DWORD,
+ lpReserved: ::LPSTR,
+ lpDesktop: ::LPSTR,
+ lpTitle: ::LPSTR,
+ dwX: ::DWORD,
+ dwY: ::DWORD,
+ dwXSize: ::DWORD,
+ dwYSize: ::DWORD,
+ dwXCountChars: ::DWORD,
+ dwYCountChars: ::DWORD,
+ dwFillAttribute: ::DWORD,
+ dwFlags: ::DWORD,
+ wShowWindow: ::WORD,
+ cbReserved2: ::WORD,
+ lpReserved2: ::LPBYTE,
+ hStdInput: ::HANDLE,
+ hStdOutput: ::HANDLE,
+ hStdError: ::HANDLE,
+}}
+pub type LPSTARTUPINFOA = *mut STARTUPINFOA;
+STRUCT!{struct STARTUPINFOW {
+ cb: ::DWORD,
+ lpReserved: ::LPWSTR,
+ lpDesktop: ::LPWSTR,
+ lpTitle: ::LPWSTR,
+ dwX: ::DWORD,
+ dwY: ::DWORD,
+ dwXSize: ::DWORD,
+ dwYSize: ::DWORD,
+ dwXCountChars: ::DWORD,
+ dwYCountChars: ::DWORD,
+ dwFillAttribute: ::DWORD,
+ dwFlags: ::DWORD,
+ wShowWindow: ::WORD,
+ cbReserved2: ::WORD,
+ lpReserved2: ::LPBYTE,
+ hStdInput: ::HANDLE,
+ hStdOutput: ::HANDLE,
+ hStdError: ::HANDLE,
+}}
+pub type LPSTARTUPINFOW = *mut STARTUPINFOW;
+STRUCT!{struct PROC_THREAD_ATTRIBUTE_LIST {
+ dummy: *mut ::c_void,
+}}
+pub type PPROC_THREAD_ATTRIBUTE_LIST = *mut PROC_THREAD_ATTRIBUTE_LIST;
+pub type LPPROC_THREAD_ATTRIBUTE_LIST = *mut PROC_THREAD_ATTRIBUTE_LIST;
+ENUM!{enum THREAD_INFORMATION_CLASS {
+ ThreadMemoryPriority,
+ ThreadAbsoluteCpuPriority,
+ ThreadInformationClassMax,
+}}