]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys/src/Windows/Win32/System/Pipes/mod.rs
New upstream version 1.61.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Win32 / System / Pipes / mod.rs
1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2 #[link(name = "windows")]
3 extern "system" {
4 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation'*"]
5 #[cfg(feature = "Win32_Foundation")]
6 pub fn CallNamedPipeA(lpnamedpipename: super::super::Foundation::PSTR, lpinbuffer: *const ::core::ffi::c_void, ninbuffersize: u32, lpoutbuffer: *mut ::core::ffi::c_void, noutbuffersize: u32, lpbytesread: *mut u32, ntimeout: u32) -> super::super::Foundation::BOOL;
7 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation'*"]
8 #[cfg(feature = "Win32_Foundation")]
9 pub fn CallNamedPipeW(lpnamedpipename: super::super::Foundation::PWSTR, lpinbuffer: *const ::core::ffi::c_void, ninbuffersize: u32, lpoutbuffer: *mut ::core::ffi::c_void, noutbuffersize: u32, lpbytesread: *mut u32, ntimeout: u32) -> super::super::Foundation::BOOL;
10 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation', 'Win32_System_IO'*"]
11 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
12 pub fn ConnectNamedPipe(hnamedpipe: super::super::Foundation::HANDLE, lpoverlapped: *mut super::IO::OVERLAPPED) -> super::super::Foundation::BOOL;
13 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation', 'Win32_Security', 'Win32_Storage_FileSystem'*"]
14 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_Storage_FileSystem"))]
15 pub fn CreateNamedPipeA(lpname: super::super::Foundation::PSTR, dwopenmode: super::super::Storage::FileSystem::FILE_FLAGS_AND_ATTRIBUTES, dwpipemode: NAMED_PIPE_MODE, nmaxinstances: u32, noutbuffersize: u32, ninbuffersize: u32, ndefaulttimeout: u32, lpsecurityattributes: *const super::super::Security::SECURITY_ATTRIBUTES) -> super::super::Foundation::HANDLE;
16 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation', 'Win32_Security', 'Win32_Storage_FileSystem'*"]
17 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_Storage_FileSystem"))]
18 pub fn CreateNamedPipeW(lpname: super::super::Foundation::PWSTR, dwopenmode: super::super::Storage::FileSystem::FILE_FLAGS_AND_ATTRIBUTES, dwpipemode: NAMED_PIPE_MODE, nmaxinstances: u32, noutbuffersize: u32, ninbuffersize: u32, ndefaulttimeout: u32, lpsecurityattributes: *const super::super::Security::SECURITY_ATTRIBUTES) -> super::super::Foundation::HANDLE;
19 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation', 'Win32_Security'*"]
20 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
21 pub fn CreatePipe(hreadpipe: *mut super::super::Foundation::HANDLE, hwritepipe: *mut super::super::Foundation::HANDLE, lppipeattributes: *const super::super::Security::SECURITY_ATTRIBUTES, nsize: u32) -> super::super::Foundation::BOOL;
22 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation'*"]
23 #[cfg(feature = "Win32_Foundation")]
24 pub fn DisconnectNamedPipe(hnamedpipe: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL;
25 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation'*"]
26 #[cfg(feature = "Win32_Foundation")]
27 pub fn GetNamedPipeClientComputerNameA(pipe: super::super::Foundation::HANDLE, clientcomputername: super::super::Foundation::PSTR, clientcomputernamelength: u32) -> super::super::Foundation::BOOL;
28 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation'*"]
29 #[cfg(feature = "Win32_Foundation")]
30 pub fn GetNamedPipeClientComputerNameW(pipe: super::super::Foundation::HANDLE, clientcomputername: super::super::Foundation::PWSTR, clientcomputernamelength: u32) -> super::super::Foundation::BOOL;
31 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation'*"]
32 #[cfg(feature = "Win32_Foundation")]
33 pub fn GetNamedPipeClientProcessId(pipe: super::super::Foundation::HANDLE, clientprocessid: *mut u32) -> super::super::Foundation::BOOL;
34 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation'*"]
35 #[cfg(feature = "Win32_Foundation")]
36 pub fn GetNamedPipeClientSessionId(pipe: super::super::Foundation::HANDLE, clientsessionid: *mut u32) -> super::super::Foundation::BOOL;
37 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation'*"]
38 #[cfg(feature = "Win32_Foundation")]
39 pub fn GetNamedPipeHandleStateA(hnamedpipe: super::super::Foundation::HANDLE, lpstate: *mut NAMED_PIPE_MODE, lpcurinstances: *mut u32, lpmaxcollectioncount: *mut u32, lpcollectdatatimeout: *mut u32, lpusername: super::super::Foundation::PSTR, nmaxusernamesize: u32) -> super::super::Foundation::BOOL;
40 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation'*"]
41 #[cfg(feature = "Win32_Foundation")]
42 pub fn GetNamedPipeHandleStateW(hnamedpipe: super::super::Foundation::HANDLE, lpstate: *mut NAMED_PIPE_MODE, lpcurinstances: *mut u32, lpmaxcollectioncount: *mut u32, lpcollectdatatimeout: *mut u32, lpusername: super::super::Foundation::PWSTR, nmaxusernamesize: u32) -> super::super::Foundation::BOOL;
43 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation'*"]
44 #[cfg(feature = "Win32_Foundation")]
45 pub fn GetNamedPipeInfo(hnamedpipe: super::super::Foundation::HANDLE, lpflags: *mut NAMED_PIPE_MODE, lpoutbuffersize: *mut u32, lpinbuffersize: *mut u32, lpmaxinstances: *mut u32) -> super::super::Foundation::BOOL;
46 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation'*"]
47 #[cfg(feature = "Win32_Foundation")]
48 pub fn GetNamedPipeServerProcessId(pipe: super::super::Foundation::HANDLE, serverprocessid: *mut u32) -> super::super::Foundation::BOOL;
49 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation'*"]
50 #[cfg(feature = "Win32_Foundation")]
51 pub fn GetNamedPipeServerSessionId(pipe: super::super::Foundation::HANDLE, serversessionid: *mut u32) -> super::super::Foundation::BOOL;
52 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation'*"]
53 #[cfg(feature = "Win32_Foundation")]
54 pub fn ImpersonateNamedPipeClient(hnamedpipe: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL;
55 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation'*"]
56 #[cfg(feature = "Win32_Foundation")]
57 pub fn PeekNamedPipe(hnamedpipe: super::super::Foundation::HANDLE, lpbuffer: *mut ::core::ffi::c_void, nbuffersize: u32, lpbytesread: *mut u32, lptotalbytesavail: *mut u32, lpbytesleftthismessage: *mut u32) -> super::super::Foundation::BOOL;
58 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation'*"]
59 #[cfg(feature = "Win32_Foundation")]
60 pub fn SetNamedPipeHandleState(hnamedpipe: super::super::Foundation::HANDLE, lpmode: *const NAMED_PIPE_MODE, lpmaxcollectioncount: *const u32, lpcollectdatatimeout: *const u32) -> super::super::Foundation::BOOL;
61 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation', 'Win32_System_IO'*"]
62 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
63 pub fn TransactNamedPipe(hnamedpipe: super::super::Foundation::HANDLE, lpinbuffer: *const ::core::ffi::c_void, ninbuffersize: u32, lpoutbuffer: *mut ::core::ffi::c_void, noutbuffersize: u32, lpbytesread: *mut u32, lpoverlapped: *mut super::IO::OVERLAPPED) -> super::super::Foundation::BOOL;
64 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation'*"]
65 #[cfg(feature = "Win32_Foundation")]
66 pub fn WaitNamedPipeA(lpnamedpipename: super::super::Foundation::PSTR, ntimeout: u32) -> super::super::Foundation::BOOL;
67 #[doc = "*Required features: 'Win32_System_Pipes', 'Win32_Foundation'*"]
68 #[cfg(feature = "Win32_Foundation")]
69 pub fn WaitNamedPipeW(lpnamedpipename: super::super::Foundation::PWSTR, ntimeout: u32) -> super::super::Foundation::BOOL;
70 }
71 #[doc = "*Required features: 'Win32_System_Pipes'*"]
72 pub type NAMED_PIPE_MODE = u32;
73 #[doc = "*Required features: 'Win32_System_Pipes'*"]
74 pub const PIPE_WAIT: NAMED_PIPE_MODE = 0u32;
75 #[doc = "*Required features: 'Win32_System_Pipes'*"]
76 pub const PIPE_NOWAIT: NAMED_PIPE_MODE = 1u32;
77 #[doc = "*Required features: 'Win32_System_Pipes'*"]
78 pub const PIPE_READMODE_BYTE: NAMED_PIPE_MODE = 0u32;
79 #[doc = "*Required features: 'Win32_System_Pipes'*"]
80 pub const PIPE_READMODE_MESSAGE: NAMED_PIPE_MODE = 2u32;
81 #[doc = "*Required features: 'Win32_System_Pipes'*"]
82 pub const PIPE_CLIENT_END: NAMED_PIPE_MODE = 0u32;
83 #[doc = "*Required features: 'Win32_System_Pipes'*"]
84 pub const PIPE_SERVER_END: NAMED_PIPE_MODE = 1u32;
85 #[doc = "*Required features: 'Win32_System_Pipes'*"]
86 pub const PIPE_TYPE_BYTE: NAMED_PIPE_MODE = 0u32;
87 #[doc = "*Required features: 'Win32_System_Pipes'*"]
88 pub const PIPE_TYPE_MESSAGE: NAMED_PIPE_MODE = 4u32;
89 #[doc = "*Required features: 'Win32_System_Pipes'*"]
90 pub const PIPE_ACCEPT_REMOTE_CLIENTS: NAMED_PIPE_MODE = 0u32;
91 #[doc = "*Required features: 'Win32_System_Pipes'*"]
92 pub const PIPE_REJECT_REMOTE_CLIENTS: NAMED_PIPE_MODE = 8u32;
93 #[doc = "*Required features: 'Win32_System_Pipes'*"]
94 pub const NMPWAIT_NOWAIT: u32 = 1u32;
95 #[doc = "*Required features: 'Win32_System_Pipes'*"]
96 pub const NMPWAIT_USE_DEFAULT_WAIT: u32 = 0u32;
97 #[doc = "*Required features: 'Win32_System_Pipes'*"]
98 pub const NMPWAIT_WAIT_FOREVER: u32 = 4294967295u32;
99 #[doc = "*Required features: 'Win32_System_Pipes'*"]
100 pub const PIPE_UNLIMITED_INSTANCES: u32 = 255u32;