Debian Codegraph @

.cargo/vendor/windows-sys/src/Windows/Win32/System/StationsAndDesktops/mod.rs

raw
1 #[cfg(feature = "Win32_Foundation")]
2 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn BroadcastSystemMessageA(flags : u32, lpinfo : *mut u32, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> i32);
3 #[cfg(feature = "Win32_Foundation")]
4 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn BroadcastSystemMessageExA(flags : BROADCAST_SYSTEM_MESSAGE_FLAGS, lpinfo : *mut BROADCAST_SYSTEM_MESSAGE_INFO, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM, pbsminfo : *mut BSMINFO) -> i32);
5 #[cfg(feature = "Win32_Foundation")]
6 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn BroadcastSystemMessageExW(flags : BROADCAST_SYSTEM_MESSAGE_FLAGS, lpinfo : *mut BROADCAST_SYSTEM_MESSAGE_INFO, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM, pbsminfo : *mut BSMINFO) -> i32);
7 #[cfg(feature = "Win32_Foundation")]
8 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn BroadcastSystemMessageW(flags : BROADCAST_SYSTEM_MESSAGE_FLAGS, lpinfo : *mut BROADCAST_SYSTEM_MESSAGE_INFO, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> i32);
9 #[cfg(feature = "Win32_Foundation")]
10 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn CloseDesktop(hdesktop : HDESK) -> super::super::Foundation:: BOOL);
11 #[cfg(feature = "Win32_Foundation")]
12 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn CloseWindowStation(hwinsta : HWINSTA) -> super::super::Foundation:: BOOL);
13 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
14 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`"] fn CreateDesktopA(lpszdesktop : ::windows_sys::core::PCSTR, lpszdevice : ::windows_sys::core::PCSTR, pdevmode : *const super::super::Graphics::Gdi:: DEVMODEA, dwflags : DESKTOP_CONTROL_FLAGS, dwdesiredaccess : u32, lpsa : *const super::super::Security:: SECURITY_ATTRIBUTES) -> HDESK);
15 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
16 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`"] fn CreateDesktopExA(lpszdesktop : ::windows_sys::core::PCSTR, lpszdevice : ::windows_sys::core::PCSTR, pdevmode : *const super::super::Graphics::Gdi:: DEVMODEA, dwflags : DESKTOP_CONTROL_FLAGS, dwdesiredaccess : u32, lpsa : *const super::super::Security:: SECURITY_ATTRIBUTES, ulheapsize : u32, pvoid : *const ::core::ffi::c_void) -> HDESK);
17 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
18 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`"] fn CreateDesktopExW(lpszdesktop : ::windows_sys::core::PCWSTR, lpszdevice : ::windows_sys::core::PCWSTR, pdevmode : *const super::super::Graphics::Gdi:: DEVMODEW, dwflags : DESKTOP_CONTROL_FLAGS, dwdesiredaccess : u32, lpsa : *const super::super::Security:: SECURITY_ATTRIBUTES, ulheapsize : u32, pvoid : *const ::core::ffi::c_void) -> HDESK);
19 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
20 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`"] fn CreateDesktopW(lpszdesktop : ::windows_sys::core::PCWSTR, lpszdevice : ::windows_sys::core::PCWSTR, pdevmode : *const super::super::Graphics::Gdi:: DEVMODEW, dwflags : DESKTOP_CONTROL_FLAGS, dwdesiredaccess : u32, lpsa : *const super::super::Security:: SECURITY_ATTRIBUTES) -> HDESK);
21 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
22 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security\"`"] fn CreateWindowStationA(lpwinsta : ::windows_sys::core::PCSTR, dwflags : u32, dwdesiredaccess : u32, lpsa : *const super::super::Security:: SECURITY_ATTRIBUTES) -> HWINSTA);
23 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
24 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security\"`"] fn CreateWindowStationW(lpwinsta : ::windows_sys::core::PCWSTR, dwflags : u32, dwdesiredaccess : u32, lpsa : *const super::super::Security:: SECURITY_ATTRIBUTES) -> HWINSTA);
25 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
26 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`"] fn EnumDesktopWindows(hdesktop : HDESK, lpfn : super::super::UI::WindowsAndMessaging:: WNDENUMPROC, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL);
27 #[cfg(feature = "Win32_Foundation")]
28 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn EnumDesktopsA(hwinsta : HWINSTA, lpenumfunc : DESKTOPENUMPROCA, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL);
29 #[cfg(feature = "Win32_Foundation")]
30 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn EnumDesktopsW(hwinsta : HWINSTA, lpenumfunc : DESKTOPENUMPROCW, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL);
31 #[cfg(feature = "Win32_Foundation")]
32 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn EnumWindowStationsA(lpenumfunc : WINSTAENUMPROCA, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL);
33 #[cfg(feature = "Win32_Foundation")]
34 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn EnumWindowStationsW(lpenumfunc : WINSTAENUMPROCW, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL);
35 ::windows_targets::link!("user32.dll" "system" fn GetProcessWindowStation() -> HWINSTA);
36 ::windows_targets::link!("user32.dll" "system" fn GetThreadDesktop(dwthreadid : u32) -> HDESK);
37 #[cfg(feature = "Win32_Foundation")]
38 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetUserObjectInformationA(hobj : super::super::Foundation:: HANDLE, nindex : USER_OBJECT_INFORMATION_INDEX, pvinfo : *mut ::core::ffi::c_void, nlength : u32, lpnlengthneeded : *mut u32) -> super::super::Foundation:: BOOL);
39 #[cfg(feature = "Win32_Foundation")]
40 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetUserObjectInformationW(hobj : super::super::Foundation:: HANDLE, nindex : USER_OBJECT_INFORMATION_INDEX, pvinfo : *mut ::core::ffi::c_void, nlength : u32, lpnlengthneeded : *mut u32) -> super::super::Foundation:: BOOL);
41 #[cfg(feature = "Win32_Foundation")]
42 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn OpenDesktopA(lpszdesktop : ::windows_sys::core::PCSTR, dwflags : DESKTOP_CONTROL_FLAGS, finherit : super::super::Foundation:: BOOL, dwdesiredaccess : u32) -> HDESK);
43 #[cfg(feature = "Win32_Foundation")]
44 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn OpenDesktopW(lpszdesktop : ::windows_sys::core::PCWSTR, dwflags : DESKTOP_CONTROL_FLAGS, finherit : super::super::Foundation:: BOOL, dwdesiredaccess : u32) -> HDESK);
45 #[cfg(feature = "Win32_Foundation")]
46 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn OpenInputDesktop(dwflags : DESKTOP_CONTROL_FLAGS, finherit : super::super::Foundation:: BOOL, dwdesiredaccess : DESKTOP_ACCESS_FLAGS) -> HDESK);
47 #[cfg(feature = "Win32_Foundation")]
48 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn OpenWindowStationA(lpszwinsta : ::windows_sys::core::PCSTR, finherit : super::super::Foundation:: BOOL, dwdesiredaccess : u32) -> HWINSTA);
49 #[cfg(feature = "Win32_Foundation")]
50 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn OpenWindowStationW(lpszwinsta : ::windows_sys::core::PCWSTR, finherit : super::super::Foundation:: BOOL, dwdesiredaccess : u32) -> HWINSTA);
51 #[cfg(feature = "Win32_Foundation")]
52 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetProcessWindowStation(hwinsta : HWINSTA) -> super::super::Foundation:: BOOL);
53 #[cfg(feature = "Win32_Foundation")]
54 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetThreadDesktop(hdesktop : HDESK) -> super::super::Foundation:: BOOL);
55 #[cfg(feature = "Win32_Foundation")]
56 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetUserObjectInformationA(hobj : super::super::Foundation:: HANDLE, nindex : i32, pvinfo : *const ::core::ffi::c_void, nlength : u32) -> super::super::Foundation:: BOOL);
57 #[cfg(feature = "Win32_Foundation")]
58 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetUserObjectInformationW(hobj : super::super::Foundation:: HANDLE, nindex : i32, pvinfo : *const ::core::ffi::c_void, nlength : u32) -> super::super::Foundation:: BOOL);
59 #[cfg(feature = "Win32_Foundation")]
60 ::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SwitchDesktop(hdesktop : HDESK) -> super::super::Foundation:: BOOL);
61 pub const BSF_ALLOWSFW: BROADCAST_SYSTEM_MESSAGE_FLAGS = 128u32;
62 pub const BSF_FLUSHDISK: BROADCAST_SYSTEM_MESSAGE_FLAGS = 4u32;
63 pub const BSF_FORCEIFHUNG: BROADCAST_SYSTEM_MESSAGE_FLAGS = 32u32;
64 pub const BSF_IGNORECURRENTTASK: BROADCAST_SYSTEM_MESSAGE_FLAGS = 2u32;
65 pub const BSF_LUID: BROADCAST_SYSTEM_MESSAGE_FLAGS = 1024u32;
66 pub const BSF_NOHANG: BROADCAST_SYSTEM_MESSAGE_FLAGS = 8u32;
67 pub const BSF_NOTIMEOUTIFNOTHUNG: BROADCAST_SYSTEM_MESSAGE_FLAGS = 64u32;
68 pub const BSF_POSTMESSAGE: BROADCAST_SYSTEM_MESSAGE_FLAGS = 16u32;
69 pub const BSF_QUERY: BROADCAST_SYSTEM_MESSAGE_FLAGS = 1u32;
70 pub const BSF_RETURNHDESK: BROADCAST_SYSTEM_MESSAGE_FLAGS = 512u32;
71 pub const BSF_SENDNOTIFYMESSAGE: BROADCAST_SYSTEM_MESSAGE_FLAGS = 256u32;
72 pub const BSM_ALLCOMPONENTS: BROADCAST_SYSTEM_MESSAGE_INFO = 0u32;
73 pub const BSM_ALLDESKTOPS: BROADCAST_SYSTEM_MESSAGE_INFO = 16u32;
74 pub const BSM_APPLICATIONS: BROADCAST_SYSTEM_MESSAGE_INFO = 8u32;
75 pub const DESKTOP_CREATEMENU: DESKTOP_ACCESS_FLAGS = 4u32;
76 pub const DESKTOP_CREATEWINDOW: DESKTOP_ACCESS_FLAGS = 2u32;
77 pub const DESKTOP_DELETE: DESKTOP_ACCESS_FLAGS = 65536u32;
78 pub const DESKTOP_ENUMERATE: DESKTOP_ACCESS_FLAGS = 64u32;
79 pub const DESKTOP_HOOKCONTROL: DESKTOP_ACCESS_FLAGS = 8u32;
80 pub const DESKTOP_JOURNALPLAYBACK: DESKTOP_ACCESS_FLAGS = 32u32;
81 pub const DESKTOP_JOURNALRECORD: DESKTOP_ACCESS_FLAGS = 16u32;
82 pub const DESKTOP_READOBJECTS: DESKTOP_ACCESS_FLAGS = 1u32;
83 pub const DESKTOP_READ_CONTROL: DESKTOP_ACCESS_FLAGS = 131072u32;
84 pub const DESKTOP_SWITCHDESKTOP: DESKTOP_ACCESS_FLAGS = 256u32;
85 pub const DESKTOP_SYNCHRONIZE: DESKTOP_ACCESS_FLAGS = 1048576u32;
86 pub const DESKTOP_WRITEOBJECTS: DESKTOP_ACCESS_FLAGS = 128u32;
87 pub const DESKTOP_WRITE_DAC: DESKTOP_ACCESS_FLAGS = 262144u32;
88 pub const DESKTOP_WRITE_OWNER: DESKTOP_ACCESS_FLAGS = 524288u32;
89 pub const DF_ALLOWOTHERACCOUNTHOOK: DESKTOP_CONTROL_FLAGS = 1u32;
90 pub const UOI_FLAGS: USER_OBJECT_INFORMATION_INDEX = 1i32;
91 pub const UOI_HEAPSIZE: USER_OBJECT_INFORMATION_INDEX = 5i32;
92 pub const UOI_IO: USER_OBJECT_INFORMATION_INDEX = 6i32;
93 pub const UOI_NAME: USER_OBJECT_INFORMATION_INDEX = 2i32;
94 pub const UOI_TYPE: USER_OBJECT_INFORMATION_INDEX = 3i32;
95 pub const UOI_USER_SID: USER_OBJECT_INFORMATION_INDEX = 4i32;
96 pub type BROADCAST_SYSTEM_MESSAGE_FLAGS = u32;
97 pub type BROADCAST_SYSTEM_MESSAGE_INFO = u32;
98 pub type DESKTOP_ACCESS_FLAGS = u32;
99 pub type DESKTOP_CONTROL_FLAGS = u32;
100 pub type USER_OBJECT_INFORMATION_INDEX = i32;
101 #[repr(C)]
102 #[doc = "Required features: `\"Win32_Foundation\"`"]
103 #[cfg(feature = "Win32_Foundation")]
104 pub struct BSMINFO {
105 pub cbSize: u32,
106 pub hdesk: HDESK,
107 pub hwnd: super::super::Foundation::HWND,
108 pub luid: super::super::Foundation::LUID,
109 }
110 #[cfg(feature = "Win32_Foundation")]
111 impl ::core::marker::Copy for BSMINFO {}
112 #[cfg(feature = "Win32_Foundation")]
113 impl ::core::clone::Clone for BSMINFO {
114 fn clone(&self) -> Self {
115 *self
116 }
117 }
118 pub type HDESK = isize;
119 pub type HWINSTA = isize;
120 #[repr(C)]
121 #[doc = "Required features: `\"Win32_Foundation\"`"]
122 #[cfg(feature = "Win32_Foundation")]
123 pub struct USEROBJECTFLAGS {
124 pub fInherit: super::super::Foundation::BOOL,
125 pub fReserved: super::super::Foundation::BOOL,
126 pub dwFlags: u32,
127 }
128 #[cfg(feature = "Win32_Foundation")]
129 impl ::core::marker::Copy for USEROBJECTFLAGS {}
130 #[cfg(feature = "Win32_Foundation")]
131 impl ::core::clone::Clone for USEROBJECTFLAGS {
132 fn clone(&self) -> Self {
133 *self
134 }
135 }
136 #[doc = "Required features: `\"Win32_Foundation\"`"]
137 #[cfg(feature = "Win32_Foundation")]
138 pub type DESKTOPENUMPROCA = ::core::option::Option<unsafe extern "system" fn(param0: ::windows_sys::core::PCSTR, param1: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL>;
139 #[doc = "Required features: `\"Win32_Foundation\"`"]
140 #[cfg(feature = "Win32_Foundation")]
141 pub type DESKTOPENUMPROCW = ::core::option::Option<unsafe extern "system" fn(param0: ::windows_sys::core::PCWSTR, param1: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL>;
142 #[doc = "Required features: `\"Win32_Foundation\"`"]
143 #[cfg(feature = "Win32_Foundation")]
144 pub type WINSTAENUMPROCA = ::core::option::Option<unsafe extern "system" fn(param0: ::windows_sys::core::PCSTR, param1: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL>;
145 #[doc = "Required features: `\"Win32_Foundation\"`"]
146 #[cfg(feature = "Win32_Foundation")]
147 pub type WINSTAENUMPROCW = ::core::option::Option<unsafe extern "system" fn(param0: ::windows_sys::core::PCWSTR, param1: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL>;