]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys/src/Windows/Win32/NetworkManagement/P2P/mod.rs
New upstream version 1.61.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Win32 / NetworkManagement / P2P / 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_NetworkManagement_P2P'*"]
5 pub fn DrtClose(hdrt: *const ::core::ffi::c_void);
6 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
7 pub fn DrtContinueSearch(hsearchcontext: *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
8 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Security_Cryptography'*"]
9 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
10 pub fn DrtCreateDerivedKey(plocalcert: *const super::super::Security::Cryptography::CERT_CONTEXT, pkey: *mut DRT_DATA) -> ::windows_sys::core::HRESULT;
11 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Security_Cryptography'*"]
12 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
13 pub fn DrtCreateDerivedKeySecurityProvider(prootcert: *const super::super::Security::Cryptography::CERT_CONTEXT, plocalcert: *const super::super::Security::Cryptography::CERT_CONTEXT, ppsecurityprovider: *mut *mut DRT_SECURITY_PROVIDER) -> ::windows_sys::core::HRESULT;
14 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
15 #[cfg(feature = "Win32_Foundation")]
16 pub fn DrtCreateDnsBootstrapResolver(port: u16, pwszaddress: super::super::Foundation::PWSTR, ppmodule: *mut *mut DRT_BOOTSTRAP_PROVIDER) -> ::windows_sys::core::HRESULT;
17 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
18 pub fn DrtCreateIpv6UdpTransport(scope: DRT_SCOPE, dwscopeid: u32, dwlocalitythreshold: u32, pwport: *mut u16, phtransport: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
19 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
20 pub fn DrtCreateNullSecurityProvider(ppsecurityprovider: *mut *mut DRT_SECURITY_PROVIDER) -> ::windows_sys::core::HRESULT;
21 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
22 #[cfg(feature = "Win32_Foundation")]
23 pub fn DrtCreatePnrpBootstrapResolver(fpublish: super::super::Foundation::BOOL, pwzpeername: super::super::Foundation::PWSTR, pwzcloudname: super::super::Foundation::PWSTR, pwzpublishingidentity: super::super::Foundation::PWSTR, ppresolver: *mut *mut DRT_BOOTSTRAP_PROVIDER) -> ::windows_sys::core::HRESULT;
24 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
25 pub fn DrtDeleteDerivedKeySecurityProvider(psecurityprovider: *const DRT_SECURITY_PROVIDER);
26 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
27 pub fn DrtDeleteDnsBootstrapResolver(presolver: *const DRT_BOOTSTRAP_PROVIDER);
28 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
29 pub fn DrtDeleteIpv6UdpTransport(htransport: *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
30 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
31 pub fn DrtDeleteNullSecurityProvider(psecurityprovider: *const DRT_SECURITY_PROVIDER);
32 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
33 pub fn DrtDeletePnrpBootstrapResolver(presolver: *const DRT_BOOTSTRAP_PROVIDER);
34 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
35 pub fn DrtEndSearch(hsearchcontext: *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
36 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
37 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
38 pub fn DrtGetEventData(hdrt: *const ::core::ffi::c_void, uleventdatalen: u32, peventdata: *mut DRT_EVENT_DATA) -> ::windows_sys::core::HRESULT;
39 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
40 pub fn DrtGetEventDataSize(hdrt: *const ::core::ffi::c_void, puleventdatalen: *mut u32) -> ::windows_sys::core::HRESULT;
41 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
42 #[cfg(feature = "Win32_Foundation")]
43 pub fn DrtGetInstanceName(hdrt: *const ::core::ffi::c_void, ulcbinstancenamesize: u32, pwzdrtinstancename: super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
44 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
45 pub fn DrtGetInstanceNameSize(hdrt: *const ::core::ffi::c_void, pulcbinstancenamesize: *mut u32) -> ::windows_sys::core::HRESULT;
46 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
47 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
48 pub fn DrtGetSearchPath(hsearchcontext: *const ::core::ffi::c_void, ulsearchpathsize: u32, psearchpath: *mut DRT_ADDRESS_LIST) -> ::windows_sys::core::HRESULT;
49 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
50 pub fn DrtGetSearchPathSize(hsearchcontext: *const ::core::ffi::c_void, pulsearchpathsize: *mut u32) -> ::windows_sys::core::HRESULT;
51 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
52 pub fn DrtGetSearchResult(hsearchcontext: *const ::core::ffi::c_void, ulsearchresultsize: u32, psearchresult: *mut DRT_SEARCH_RESULT) -> ::windows_sys::core::HRESULT;
53 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
54 pub fn DrtGetSearchResultSize(hsearchcontext: *const ::core::ffi::c_void, pulsearchresultsize: *mut u32) -> ::windows_sys::core::HRESULT;
55 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
56 #[cfg(feature = "Win32_Foundation")]
57 pub fn DrtOpen(psettings: *const DRT_SETTINGS, hevent: super::super::Foundation::HANDLE, pvcontext: *const ::core::ffi::c_void, phdrt: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
58 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
59 pub fn DrtRegisterKey(hdrt: *const ::core::ffi::c_void, pregistration: *const DRT_REGISTRATION, pvkeycontext: *const ::core::ffi::c_void, phkeyregistration: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
60 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
61 #[cfg(feature = "Win32_Foundation")]
62 pub fn DrtStartSearch(hdrt: *const ::core::ffi::c_void, pkey: *const DRT_DATA, pinfo: *const DRT_SEARCH_INFO, timeout: u32, hevent: super::super::Foundation::HANDLE, pvcontext: *const ::core::ffi::c_void, hsearchcontext: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
63 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
64 pub fn DrtUnregisterKey(hkeyregistration: *const ::core::ffi::c_void);
65 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
66 pub fn DrtUpdateKey(hkeyregistration: *const ::core::ffi::c_void, pappdata: *const DRT_DATA) -> ::windows_sys::core::HRESULT;
67 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
68 #[cfg(feature = "Win32_Foundation")]
69 pub fn PeerCollabAddContact(pwzcontactdata: super::super::Foundation::PWSTR, ppcontact: *mut *mut PEER_CONTACT) -> ::windows_sys::core::HRESULT;
70 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
71 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
72 pub fn PeerCollabAsyncInviteContact(pccontact: *const PEER_CONTACT, pcendpoint: *const PEER_ENDPOINT, pcinvitation: *const PEER_INVITATION, hevent: super::super::Foundation::HANDLE, phinvitation: *mut super::super::Foundation::HANDLE) -> ::windows_sys::core::HRESULT;
73 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
74 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
75 pub fn PeerCollabAsyncInviteEndpoint(pcendpoint: *const PEER_ENDPOINT, pcinvitation: *const PEER_INVITATION, hevent: super::super::Foundation::HANDLE, phinvitation: *mut super::super::Foundation::HANDLE) -> ::windows_sys::core::HRESULT;
76 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
77 #[cfg(feature = "Win32_Foundation")]
78 pub fn PeerCollabCancelInvitation(hinvitation: super::super::Foundation::HANDLE) -> ::windows_sys::core::HRESULT;
79 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
80 #[cfg(feature = "Win32_Foundation")]
81 pub fn PeerCollabCloseHandle(hinvitation: super::super::Foundation::HANDLE) -> ::windows_sys::core::HRESULT;
82 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
83 #[cfg(feature = "Win32_Foundation")]
84 pub fn PeerCollabDeleteContact(pwzpeername: super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
85 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
86 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
87 pub fn PeerCollabDeleteEndpointData(pcendpoint: *const PEER_ENDPOINT) -> ::windows_sys::core::HRESULT;
88 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
89 pub fn PeerCollabDeleteObject(pobjectid: *const ::windows_sys::core::GUID) -> ::windows_sys::core::HRESULT;
90 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
91 pub fn PeerCollabEnumApplicationRegistrationInfo(registrationtype: PEER_APPLICATION_REGISTRATION_TYPE, phpeerenum: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
92 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
93 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
94 pub fn PeerCollabEnumApplications(pcendpoint: *const PEER_ENDPOINT, papplicationid: *const ::windows_sys::core::GUID, phpeerenum: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
95 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
96 pub fn PeerCollabEnumContacts(phpeerenum: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
97 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
98 #[cfg(feature = "Win32_Foundation")]
99 pub fn PeerCollabEnumEndpoints(pccontact: *const PEER_CONTACT, phpeerenum: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
100 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
101 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
102 pub fn PeerCollabEnumObjects(pcendpoint: *const PEER_ENDPOINT, pobjectid: *const ::windows_sys::core::GUID, phpeerenum: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
103 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
104 pub fn PeerCollabEnumPeopleNearMe(phpeerenum: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
105 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
106 #[cfg(feature = "Win32_Foundation")]
107 pub fn PeerCollabExportContact(pwzpeername: super::super::Foundation::PWSTR, ppwzcontactdata: *mut super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
108 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
109 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
110 pub fn PeerCollabGetAppLaunchInfo(pplaunchinfo: *mut *mut PEER_APP_LAUNCH_INFO) -> ::windows_sys::core::HRESULT;
111 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
112 #[cfg(feature = "Win32_Foundation")]
113 pub fn PeerCollabGetApplicationRegistrationInfo(papplicationid: *const ::windows_sys::core::GUID, registrationtype: PEER_APPLICATION_REGISTRATION_TYPE, ppapplication: *mut *mut PEER_APPLICATION_REGISTRATION_INFO) -> ::windows_sys::core::HRESULT;
114 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
115 #[cfg(feature = "Win32_Foundation")]
116 pub fn PeerCollabGetContact(pwzpeername: super::super::Foundation::PWSTR, ppcontact: *mut *mut PEER_CONTACT) -> ::windows_sys::core::HRESULT;
117 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
118 #[cfg(feature = "Win32_Foundation")]
119 pub fn PeerCollabGetEndpointName(ppwzendpointname: *mut super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
120 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
121 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
122 pub fn PeerCollabGetEventData(hpeerevent: *const ::core::ffi::c_void, ppeventdata: *mut *mut PEER_COLLAB_EVENT_DATA) -> ::windows_sys::core::HRESULT;
123 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
124 #[cfg(feature = "Win32_Foundation")]
125 pub fn PeerCollabGetInvitationResponse(hinvitation: super::super::Foundation::HANDLE, ppinvitationresponse: *mut *mut PEER_INVITATION_RESPONSE) -> ::windows_sys::core::HRESULT;
126 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
127 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
128 pub fn PeerCollabGetPresenceInfo(pcendpoint: *const PEER_ENDPOINT, pppresenceinfo: *mut *mut PEER_PRESENCE_INFO) -> ::windows_sys::core::HRESULT;
129 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
130 pub fn PeerCollabGetSigninOptions(pdwsigninoptions: *mut u32) -> ::windows_sys::core::HRESULT;
131 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
132 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
133 pub fn PeerCollabInviteContact(pccontact: *const PEER_CONTACT, pcendpoint: *const PEER_ENDPOINT, pcinvitation: *const PEER_INVITATION, ppresponse: *mut *mut PEER_INVITATION_RESPONSE) -> ::windows_sys::core::HRESULT;
134 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
135 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
136 pub fn PeerCollabInviteEndpoint(pcendpoint: *const PEER_ENDPOINT, pcinvitation: *const PEER_INVITATION, ppresponse: *mut *mut PEER_INVITATION_RESPONSE) -> ::windows_sys::core::HRESULT;
137 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
138 #[cfg(feature = "Win32_Foundation")]
139 pub fn PeerCollabParseContact(pwzcontactdata: super::super::Foundation::PWSTR, ppcontact: *mut *mut PEER_CONTACT) -> ::windows_sys::core::HRESULT;
140 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
141 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
142 pub fn PeerCollabQueryContactData(pcendpoint: *const PEER_ENDPOINT, ppwzcontactdata: *mut super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
143 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
144 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
145 pub fn PeerCollabRefreshEndpointData(pcendpoint: *const PEER_ENDPOINT) -> ::windows_sys::core::HRESULT;
146 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
147 #[cfg(feature = "Win32_Foundation")]
148 pub fn PeerCollabRegisterApplication(pcapplication: *const PEER_APPLICATION_REGISTRATION_INFO, registrationtype: PEER_APPLICATION_REGISTRATION_TYPE) -> ::windows_sys::core::HRESULT;
149 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
150 #[cfg(feature = "Win32_Foundation")]
151 pub fn PeerCollabRegisterEvent(hevent: super::super::Foundation::HANDLE, ceventregistration: u32, peventregistrations: *const PEER_COLLAB_EVENT_REGISTRATION, phpeerevent: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
152 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
153 #[cfg(feature = "Win32_Foundation")]
154 pub fn PeerCollabSetEndpointName(pwzendpointname: super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
155 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
156 pub fn PeerCollabSetObject(pcobject: *const PEER_OBJECT) -> ::windows_sys::core::HRESULT;
157 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
158 #[cfg(feature = "Win32_Foundation")]
159 pub fn PeerCollabSetPresenceInfo(pcpresenceinfo: *const PEER_PRESENCE_INFO) -> ::windows_sys::core::HRESULT;
160 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
161 pub fn PeerCollabShutdown() -> ::windows_sys::core::HRESULT;
162 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
163 #[cfg(feature = "Win32_Foundation")]
164 pub fn PeerCollabSignin(hwndparent: super::super::Foundation::HWND, dwsigninoptions: u32) -> ::windows_sys::core::HRESULT;
165 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
166 pub fn PeerCollabSignout(dwsigninoptions: u32) -> ::windows_sys::core::HRESULT;
167 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
168 pub fn PeerCollabStartup(wversionrequested: u16) -> ::windows_sys::core::HRESULT;
169 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
170 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
171 pub fn PeerCollabSubscribeEndpointData(pcendpoint: *const PEER_ENDPOINT) -> ::windows_sys::core::HRESULT;
172 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
173 pub fn PeerCollabUnregisterApplication(papplicationid: *const ::windows_sys::core::GUID, registrationtype: PEER_APPLICATION_REGISTRATION_TYPE) -> ::windows_sys::core::HRESULT;
174 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
175 pub fn PeerCollabUnregisterEvent(hpeerevent: *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
176 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
177 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
178 pub fn PeerCollabUnsubscribeEndpointData(pcendpoint: *const PEER_ENDPOINT) -> ::windows_sys::core::HRESULT;
179 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
180 #[cfg(feature = "Win32_Foundation")]
181 pub fn PeerCollabUpdateContact(pcontact: *const PEER_CONTACT) -> ::windows_sys::core::HRESULT;
182 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
183 #[cfg(feature = "Win32_Foundation")]
184 pub fn PeerCreatePeerName(pwzidentity: super::super::Foundation::PWSTR, pwzclassifier: super::super::Foundation::PWSTR, ppwzpeername: *mut super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
185 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_System_IO'*"]
186 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
187 pub fn PeerDistClientAddContentInformation(hpeerdist: isize, hcontenthandle: isize, cbnumberofbytes: u32, pbuffer: *const u8, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> u32;
188 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_System_IO'*"]
189 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
190 pub fn PeerDistClientAddData(hpeerdist: isize, hcontenthandle: isize, cbnumberofbytes: u32, pbuffer: *const u8, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> u32;
191 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_System_IO'*"]
192 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
193 pub fn PeerDistClientBlockRead(hpeerdist: isize, hcontenthandle: isize, cbmaxnumberofbytes: u32, pbuffer: *mut u8, dwtimeoutinmilliseconds: u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> u32;
194 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_System_IO'*"]
195 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
196 pub fn PeerDistClientCancelAsyncOperation(hpeerdist: isize, hcontenthandle: isize, poverlapped: *const super::super::System::IO::OVERLAPPED) -> u32;
197 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
198 pub fn PeerDistClientCloseContent(hpeerdist: isize, hcontenthandle: isize) -> u32;
199 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_System_IO'*"]
200 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
201 pub fn PeerDistClientCompleteContentInformation(hpeerdist: isize, hcontenthandle: isize, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> u32;
202 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_System_IO'*"]
203 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
204 pub fn PeerDistClientFlushContent(hpeerdist: isize, pcontenttag: *const PEERDIST_CONTENT_TAG, hcompletionport: super::super::Foundation::HANDLE, ulcompletionkey: usize, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> u32;
205 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
206 pub fn PeerDistClientGetInformationByHandle(hpeerdist: isize, hcontenthandle: isize, peerdistclientinfoclass: PEERDIST_CLIENT_INFO_BY_HANDLE_CLASS, dwbuffersize: u32, lpinformation: *mut ::core::ffi::c_void) -> u32;
207 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
208 #[cfg(feature = "Win32_Foundation")]
209 pub fn PeerDistClientOpenContent(hpeerdist: isize, pcontenttag: *const PEERDIST_CONTENT_TAG, hcompletionport: super::super::Foundation::HANDLE, ulcompletionkey: usize, phcontenthandle: *mut isize) -> u32;
210 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_System_IO'*"]
211 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
212 pub fn PeerDistClientStreamRead(hpeerdist: isize, hcontenthandle: isize, cbmaxnumberofbytes: u32, pbuffer: *mut u8, dwtimeoutinmilliseconds: u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> u32;
213 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_System_IO'*"]
214 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
215 pub fn PeerDistGetOverlappedResult(lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL;
216 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
217 pub fn PeerDistGetStatus(hpeerdist: isize, ppeerdiststatus: *mut PEERDIST_STATUS) -> u32;
218 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
219 pub fn PeerDistGetStatusEx(hpeerdist: isize, ppeerdiststatus: *mut PEERDIST_STATUS_INFO) -> u32;
220 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_System_IO'*"]
221 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
222 pub fn PeerDistRegisterForStatusChangeNotification(hpeerdist: isize, hcompletionport: super::super::Foundation::HANDLE, ulcompletionkey: usize, lpoverlapped: *const super::super::System::IO::OVERLAPPED, ppeerdiststatus: *mut PEERDIST_STATUS) -> u32;
223 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_System_IO'*"]
224 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
225 pub fn PeerDistRegisterForStatusChangeNotificationEx(hpeerdist: isize, hcompletionport: super::super::Foundation::HANDLE, ulcompletionkey: usize, lpoverlapped: *const super::super::System::IO::OVERLAPPED, ppeerdiststatus: *mut PEERDIST_STATUS_INFO) -> u32;
226 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_System_IO'*"]
227 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
228 pub fn PeerDistServerCancelAsyncOperation(hpeerdist: isize, cbcontentidentifier: u32, pcontentidentifier: *const u8, poverlapped: *const super::super::System::IO::OVERLAPPED) -> u32;
229 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
230 pub fn PeerDistServerCloseContentInformation(hpeerdist: isize, hcontentinfo: isize) -> u32;
231 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
232 pub fn PeerDistServerCloseStreamHandle(hpeerdist: isize, hstream: isize) -> u32;
233 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
234 #[cfg(feature = "Win32_Foundation")]
235 pub fn PeerDistServerOpenContentInformation(hpeerdist: isize, cbcontentidentifier: u32, pcontentidentifier: *const u8, ullcontentoffset: u64, cbcontentlength: u64, hcompletionport: super::super::Foundation::HANDLE, ulcompletionkey: usize, phcontentinfo: *mut isize) -> u32;
236 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
237 #[cfg(feature = "Win32_Foundation")]
238 pub fn PeerDistServerOpenContentInformationEx(hpeerdist: isize, cbcontentidentifier: u32, pcontentidentifier: *const u8, ullcontentoffset: u64, cbcontentlength: u64, pretrievaloptions: *const PEERDIST_RETRIEVAL_OPTIONS, hcompletionport: super::super::Foundation::HANDLE, ulcompletionkey: usize, phcontentinfo: *mut isize) -> u32;
239 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_System_IO'*"]
240 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
241 pub fn PeerDistServerPublishAddToStream(hpeerdist: isize, hstream: isize, cbnumberofbytes: u32, pbuffer: *const u8, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> u32;
242 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_System_IO'*"]
243 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
244 pub fn PeerDistServerPublishCompleteStream(hpeerdist: isize, hstream: isize, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> u32;
245 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
246 #[cfg(feature = "Win32_Foundation")]
247 pub fn PeerDistServerPublishStream(hpeerdist: isize, cbcontentidentifier: u32, pcontentidentifier: *const u8, cbcontentlength: u64, ppublishoptions: *const PEERDIST_PUBLICATION_OPTIONS, hcompletionport: super::super::Foundation::HANDLE, ulcompletionkey: usize, phstream: *mut isize) -> u32;
248 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_System_IO'*"]
249 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
250 pub fn PeerDistServerRetrieveContentInformation(hpeerdist: isize, hcontentinfo: isize, cbmaxnumberofbytes: u32, pbuffer: *mut u8, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> u32;
251 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
252 pub fn PeerDistServerUnpublish(hpeerdist: isize, cbcontentidentifier: u32, pcontentidentifier: *const u8) -> u32;
253 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
254 pub fn PeerDistShutdown(hpeerdist: isize) -> u32;
255 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
256 pub fn PeerDistStartup(dwversionrequested: u32, phpeerdist: *mut isize, pdwsupportedversion: *mut u32) -> u32;
257 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
258 pub fn PeerDistUnregisterForStatusChangeNotification(hpeerdist: isize) -> u32;
259 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
260 pub fn PeerEndEnumeration(hpeerenum: *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
261 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
262 #[cfg(feature = "Win32_Foundation")]
263 pub fn PeerEnumGroups(pwzidentity: super::super::Foundation::PWSTR, phpeerenum: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
264 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
265 pub fn PeerEnumIdentities(phpeerenum: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
266 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
267 pub fn PeerFreeData(pvdata: *const ::core::ffi::c_void);
268 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
269 pub fn PeerGetItemCount(hpeerenum: *const ::core::ffi::c_void, pcount: *mut u32) -> ::windows_sys::core::HRESULT;
270 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
271 pub fn PeerGetNextItem(hpeerenum: *const ::core::ffi::c_void, pcount: *mut u32, pppvitems: *mut *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
272 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
273 #[cfg(feature = "Win32_Foundation")]
274 pub fn PeerGraphAddRecord(hgraph: *const ::core::ffi::c_void, precord: *const PEER_RECORD, precordid: *mut ::windows_sys::core::GUID) -> ::windows_sys::core::HRESULT;
275 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
276 pub fn PeerGraphClose(hgraph: *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
277 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
278 pub fn PeerGraphCloseDirectConnection(hgraph: *const ::core::ffi::c_void, ullconnectionid: u64) -> ::windows_sys::core::HRESULT;
279 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
280 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
281 pub fn PeerGraphConnect(hgraph: *const ::core::ffi::c_void, pwzpeerid: super::super::Foundation::PWSTR, paddress: *const PEER_ADDRESS, pullconnectionid: *mut u64) -> ::windows_sys::core::HRESULT;
282 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
283 #[cfg(feature = "Win32_Foundation")]
284 pub fn PeerGraphCreate(pgraphproperties: *const PEER_GRAPH_PROPERTIES, pwzdatabasename: super::super::Foundation::PWSTR, psecurityinterface: *const PEER_SECURITY_INTERFACE, phgraph: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
285 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
286 #[cfg(feature = "Win32_Foundation")]
287 pub fn PeerGraphDelete(pwzgraphid: super::super::Foundation::PWSTR, pwzpeerid: super::super::Foundation::PWSTR, pwzdatabasename: super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
288 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
289 #[cfg(feature = "Win32_Foundation")]
290 pub fn PeerGraphDeleteRecord(hgraph: *const ::core::ffi::c_void, precordid: *const ::windows_sys::core::GUID, flocal: super::super::Foundation::BOOL) -> ::windows_sys::core::HRESULT;
291 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
292 pub fn PeerGraphEndEnumeration(hpeerenum: *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
293 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
294 pub fn PeerGraphEnumConnections(hgraph: *const ::core::ffi::c_void, dwflags: u32, phpeerenum: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
295 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
296 #[cfg(feature = "Win32_Foundation")]
297 pub fn PeerGraphEnumNodes(hgraph: *const ::core::ffi::c_void, pwzpeerid: super::super::Foundation::PWSTR, phpeerenum: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
298 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
299 #[cfg(feature = "Win32_Foundation")]
300 pub fn PeerGraphEnumRecords(hgraph: *const ::core::ffi::c_void, precordtype: *const ::windows_sys::core::GUID, pwzpeerid: super::super::Foundation::PWSTR, phpeerenum: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
301 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
302 #[cfg(feature = "Win32_Foundation")]
303 pub fn PeerGraphExportDatabase(hgraph: *const ::core::ffi::c_void, pwzfilepath: super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
304 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
305 pub fn PeerGraphFreeData(pvdata: *const ::core::ffi::c_void);
306 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
307 #[cfg(feature = "Win32_Foundation")]
308 pub fn PeerGraphGetEventData(hpeerevent: *const ::core::ffi::c_void, ppeventdata: *mut *mut PEER_GRAPH_EVENT_DATA) -> ::windows_sys::core::HRESULT;
309 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
310 pub fn PeerGraphGetItemCount(hpeerenum: *const ::core::ffi::c_void, pcount: *mut u32) -> ::windows_sys::core::HRESULT;
311 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
312 pub fn PeerGraphGetNextItem(hpeerenum: *const ::core::ffi::c_void, pcount: *mut u32, pppvitems: *mut *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
313 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
314 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
315 pub fn PeerGraphGetNodeInfo(hgraph: *const ::core::ffi::c_void, ullnodeid: u64, ppnodeinfo: *mut *mut PEER_NODE_INFO) -> ::windows_sys::core::HRESULT;
316 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
317 #[cfg(feature = "Win32_Foundation")]
318 pub fn PeerGraphGetProperties(hgraph: *const ::core::ffi::c_void, ppgraphproperties: *mut *mut PEER_GRAPH_PROPERTIES) -> ::windows_sys::core::HRESULT;
319 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
320 #[cfg(feature = "Win32_Foundation")]
321 pub fn PeerGraphGetRecord(hgraph: *const ::core::ffi::c_void, precordid: *const ::windows_sys::core::GUID, pprecord: *mut *mut PEER_RECORD) -> ::windows_sys::core::HRESULT;
322 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
323 pub fn PeerGraphGetStatus(hgraph: *const ::core::ffi::c_void, pdwstatus: *mut u32) -> ::windows_sys::core::HRESULT;
324 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
325 #[cfg(feature = "Win32_Foundation")]
326 pub fn PeerGraphImportDatabase(hgraph: *const ::core::ffi::c_void, pwzfilepath: super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
327 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
328 pub fn PeerGraphListen(hgraph: *const ::core::ffi::c_void, dwscope: u32, dwscopeid: u32, wport: u16) -> ::windows_sys::core::HRESULT;
329 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
330 #[cfg(feature = "Win32_Foundation")]
331 pub fn PeerGraphOpen(pwzgraphid: super::super::Foundation::PWSTR, pwzpeerid: super::super::Foundation::PWSTR, pwzdatabasename: super::super::Foundation::PWSTR, psecurityinterface: *const PEER_SECURITY_INTERFACE, crecordtypesyncprecedence: u32, precordtypesyncprecedence: *const ::windows_sys::core::GUID, phgraph: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
332 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
333 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
334 pub fn PeerGraphOpenDirectConnection(hgraph: *const ::core::ffi::c_void, pwzpeerid: super::super::Foundation::PWSTR, paddress: *const PEER_ADDRESS, pullconnectionid: *mut u64) -> ::windows_sys::core::HRESULT;
335 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
336 #[cfg(feature = "Win32_Foundation")]
337 pub fn PeerGraphPeerTimeToUniversalTime(hgraph: *const ::core::ffi::c_void, pftpeertime: *const super::super::Foundation::FILETIME, pftuniversaltime: *mut super::super::Foundation::FILETIME) -> ::windows_sys::core::HRESULT;
338 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
339 #[cfg(feature = "Win32_Foundation")]
340 pub fn PeerGraphRegisterEvent(hgraph: *const ::core::ffi::c_void, hevent: super::super::Foundation::HANDLE, ceventregistrations: u32, peventregistrations: *const PEER_GRAPH_EVENT_REGISTRATION, phpeerevent: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
341 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
342 #[cfg(feature = "Win32_Foundation")]
343 pub fn PeerGraphSearchRecords(hgraph: *const ::core::ffi::c_void, pwzcriteria: super::super::Foundation::PWSTR, phpeerenum: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
344 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
345 pub fn PeerGraphSendData(hgraph: *const ::core::ffi::c_void, ullconnectionid: u64, ptype: *const ::windows_sys::core::GUID, cbdata: u32, pvdata: *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
346 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
347 #[cfg(feature = "Win32_Foundation")]
348 pub fn PeerGraphSetNodeAttributes(hgraph: *const ::core::ffi::c_void, pwzattributes: super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
349 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
350 #[cfg(feature = "Win32_Foundation")]
351 pub fn PeerGraphSetPresence(hgraph: *const ::core::ffi::c_void, fpresent: super::super::Foundation::BOOL) -> ::windows_sys::core::HRESULT;
352 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
353 #[cfg(feature = "Win32_Foundation")]
354 pub fn PeerGraphSetProperties(hgraph: *const ::core::ffi::c_void, pgraphproperties: *const PEER_GRAPH_PROPERTIES) -> ::windows_sys::core::HRESULT;
355 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
356 pub fn PeerGraphShutdown() -> ::windows_sys::core::HRESULT;
357 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
358 pub fn PeerGraphStartup(wversionrequested: u16, pversiondata: *mut PEER_VERSION_DATA) -> ::windows_sys::core::HRESULT;
359 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
360 #[cfg(feature = "Win32_Foundation")]
361 pub fn PeerGraphUniversalTimeToPeerTime(hgraph: *const ::core::ffi::c_void, pftuniversaltime: *const super::super::Foundation::FILETIME, pftpeertime: *mut super::super::Foundation::FILETIME) -> ::windows_sys::core::HRESULT;
362 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
363 pub fn PeerGraphUnregisterEvent(hpeerevent: *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
364 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
365 #[cfg(feature = "Win32_Foundation")]
366 pub fn PeerGraphUpdateRecord(hgraph: *const ::core::ffi::c_void, precord: *const PEER_RECORD) -> ::windows_sys::core::HRESULT;
367 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
368 pub fn PeerGraphValidateDeferredRecords(hgraph: *const ::core::ffi::c_void, crecordids: u32, precordids: *const ::windows_sys::core::GUID) -> ::windows_sys::core::HRESULT;
369 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
370 #[cfg(feature = "Win32_Foundation")]
371 pub fn PeerGroupAddRecord(hgroup: *const ::core::ffi::c_void, precord: *const PEER_RECORD, precordid: *mut ::windows_sys::core::GUID) -> ::windows_sys::core::HRESULT;
372 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
373 pub fn PeerGroupClose(hgroup: *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
374 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
375 pub fn PeerGroupCloseDirectConnection(hgroup: *const ::core::ffi::c_void, ullconnectionid: u64) -> ::windows_sys::core::HRESULT;
376 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
377 pub fn PeerGroupConnect(hgroup: *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
378 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Networking_WinSock'*"]
379 #[cfg(feature = "Win32_Networking_WinSock")]
380 pub fn PeerGroupConnectByAddress(hgroup: *const ::core::ffi::c_void, caddresses: u32, paddresses: *const PEER_ADDRESS) -> ::windows_sys::core::HRESULT;
381 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
382 #[cfg(feature = "Win32_Foundation")]
383 pub fn PeerGroupCreate(pproperties: *const PEER_GROUP_PROPERTIES, phgroup: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
384 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
385 #[cfg(feature = "Win32_Foundation")]
386 pub fn PeerGroupCreateInvitation(hgroup: *const ::core::ffi::c_void, pwzidentityinfo: super::super::Foundation::PWSTR, pftexpiration: *const super::super::Foundation::FILETIME, croles: u32, proles: *const ::windows_sys::core::GUID, ppwzinvitation: *mut super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
387 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
388 #[cfg(feature = "Win32_Foundation")]
389 pub fn PeerGroupCreatePasswordInvitation(hgroup: *const ::core::ffi::c_void, ppwzinvitation: *mut super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
390 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
391 #[cfg(feature = "Win32_Foundation")]
392 pub fn PeerGroupDelete(pwzidentity: super::super::Foundation::PWSTR, pwzgrouppeername: super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
393 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
394 pub fn PeerGroupDeleteRecord(hgroup: *const ::core::ffi::c_void, precordid: *const ::windows_sys::core::GUID) -> ::windows_sys::core::HRESULT;
395 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
396 pub fn PeerGroupEnumConnections(hgroup: *const ::core::ffi::c_void, dwflags: u32, phpeerenum: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
397 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
398 #[cfg(feature = "Win32_Foundation")]
399 pub fn PeerGroupEnumMembers(hgroup: *const ::core::ffi::c_void, dwflags: u32, pwzidentity: super::super::Foundation::PWSTR, phpeerenum: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
400 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
401 pub fn PeerGroupEnumRecords(hgroup: *const ::core::ffi::c_void, precordtype: *const ::windows_sys::core::GUID, phpeerenum: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
402 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
403 #[cfg(feature = "Win32_Foundation")]
404 pub fn PeerGroupExportConfig(hgroup: *const ::core::ffi::c_void, pwzpassword: super::super::Foundation::PWSTR, ppwzxml: *mut super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
405 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
406 #[cfg(feature = "Win32_Foundation")]
407 pub fn PeerGroupExportDatabase(hgroup: *const ::core::ffi::c_void, pwzfilepath: super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
408 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
409 #[cfg(feature = "Win32_Foundation")]
410 pub fn PeerGroupGetEventData(hpeerevent: *const ::core::ffi::c_void, ppeventdata: *mut *mut PEER_GROUP_EVENT_DATA) -> ::windows_sys::core::HRESULT;
411 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
412 #[cfg(feature = "Win32_Foundation")]
413 pub fn PeerGroupGetProperties(hgroup: *const ::core::ffi::c_void, ppproperties: *mut *mut PEER_GROUP_PROPERTIES) -> ::windows_sys::core::HRESULT;
414 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
415 #[cfg(feature = "Win32_Foundation")]
416 pub fn PeerGroupGetRecord(hgroup: *const ::core::ffi::c_void, precordid: *const ::windows_sys::core::GUID, pprecord: *mut *mut PEER_RECORD) -> ::windows_sys::core::HRESULT;
417 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
418 pub fn PeerGroupGetStatus(hgroup: *const ::core::ffi::c_void, pdwstatus: *mut u32) -> ::windows_sys::core::HRESULT;
419 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
420 #[cfg(feature = "Win32_Foundation")]
421 pub fn PeerGroupImportConfig(pwzxml: super::super::Foundation::PWSTR, pwzpassword: super::super::Foundation::PWSTR, foverwrite: super::super::Foundation::BOOL, ppwzidentity: *mut super::super::Foundation::PWSTR, ppwzgroup: *mut super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
422 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
423 #[cfg(feature = "Win32_Foundation")]
424 pub fn PeerGroupImportDatabase(hgroup: *const ::core::ffi::c_void, pwzfilepath: super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
425 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Security_Cryptography'*"]
426 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
427 pub fn PeerGroupIssueCredentials(hgroup: *const ::core::ffi::c_void, pwzsubjectidentity: super::super::Foundation::PWSTR, pcredentialinfo: *const PEER_CREDENTIAL_INFO, dwflags: u32, ppwzinvitation: *mut super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
428 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
429 #[cfg(feature = "Win32_Foundation")]
430 pub fn PeerGroupJoin(pwzidentity: super::super::Foundation::PWSTR, pwzinvitation: super::super::Foundation::PWSTR, pwzcloud: super::super::Foundation::PWSTR, phgroup: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
431 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
432 #[cfg(feature = "Win32_Foundation")]
433 pub fn PeerGroupOpen(pwzidentity: super::super::Foundation::PWSTR, pwzgrouppeername: super::super::Foundation::PWSTR, pwzcloud: super::super::Foundation::PWSTR, phgroup: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
434 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
435 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
436 pub fn PeerGroupOpenDirectConnection(hgroup: *const ::core::ffi::c_void, pwzidentity: super::super::Foundation::PWSTR, paddress: *const PEER_ADDRESS, pullconnectionid: *mut u64) -> ::windows_sys::core::HRESULT;
437 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Security_Cryptography'*"]
438 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
439 pub fn PeerGroupParseInvitation(pwzinvitation: super::super::Foundation::PWSTR, ppinvitationinfo: *mut *mut PEER_INVITATION_INFO) -> ::windows_sys::core::HRESULT;
440 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
441 #[cfg(feature = "Win32_Foundation")]
442 pub fn PeerGroupPasswordJoin(pwzidentity: super::super::Foundation::PWSTR, pwzinvitation: super::super::Foundation::PWSTR, pwzpassword: super::super::Foundation::PWSTR, pwzcloud: super::super::Foundation::PWSTR, phgroup: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
443 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
444 #[cfg(feature = "Win32_Foundation")]
445 pub fn PeerGroupPeerTimeToUniversalTime(hgroup: *const ::core::ffi::c_void, pftpeertime: *const super::super::Foundation::FILETIME, pftuniversaltime: *mut super::super::Foundation::FILETIME) -> ::windows_sys::core::HRESULT;
446 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
447 #[cfg(feature = "Win32_Foundation")]
448 pub fn PeerGroupRegisterEvent(hgroup: *const ::core::ffi::c_void, hevent: super::super::Foundation::HANDLE, ceventregistration: u32, peventregistrations: *const PEER_GROUP_EVENT_REGISTRATION, phpeerevent: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
449 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
450 pub fn PeerGroupResumePasswordAuthentication(hgroup: *const ::core::ffi::c_void, hpeereventhandle: *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
451 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
452 #[cfg(feature = "Win32_Foundation")]
453 pub fn PeerGroupSearchRecords(hgroup: *const ::core::ffi::c_void, pwzcriteria: super::super::Foundation::PWSTR, phpeerenum: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
454 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
455 pub fn PeerGroupSendData(hgroup: *const ::core::ffi::c_void, ullconnectionid: u64, ptype: *const ::windows_sys::core::GUID, cbdata: u32, pvdata: *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
456 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
457 #[cfg(feature = "Win32_Foundation")]
458 pub fn PeerGroupSetProperties(hgroup: *const ::core::ffi::c_void, pproperties: *const PEER_GROUP_PROPERTIES) -> ::windows_sys::core::HRESULT;
459 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
460 pub fn PeerGroupShutdown() -> ::windows_sys::core::HRESULT;
461 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
462 pub fn PeerGroupStartup(wversionrequested: u16, pversiondata: *mut PEER_VERSION_DATA) -> ::windows_sys::core::HRESULT;
463 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
464 #[cfg(feature = "Win32_Foundation")]
465 pub fn PeerGroupUniversalTimeToPeerTime(hgroup: *const ::core::ffi::c_void, pftuniversaltime: *const super::super::Foundation::FILETIME, pftpeertime: *mut super::super::Foundation::FILETIME) -> ::windows_sys::core::HRESULT;
466 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
467 pub fn PeerGroupUnregisterEvent(hpeerevent: *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
468 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
469 #[cfg(feature = "Win32_Foundation")]
470 pub fn PeerGroupUpdateRecord(hgroup: *const ::core::ffi::c_void, precord: *const PEER_RECORD) -> ::windows_sys::core::HRESULT;
471 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
472 #[cfg(feature = "Win32_Foundation")]
473 pub fn PeerHostNameToPeerName(pwzhostname: super::super::Foundation::PWSTR, ppwzpeername: *mut super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
474 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
475 #[cfg(feature = "Win32_Foundation")]
476 pub fn PeerIdentityCreate(pwzclassifier: super::super::Foundation::PWSTR, pwzfriendlyname: super::super::Foundation::PWSTR, hcryptprov: usize, ppwzidentity: *mut super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
477 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
478 #[cfg(feature = "Win32_Foundation")]
479 pub fn PeerIdentityDelete(pwzidentity: super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
480 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
481 #[cfg(feature = "Win32_Foundation")]
482 pub fn PeerIdentityExport(pwzidentity: super::super::Foundation::PWSTR, pwzpassword: super::super::Foundation::PWSTR, ppwzexportxml: *mut super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
483 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
484 #[cfg(feature = "Win32_Foundation")]
485 pub fn PeerIdentityGetCryptKey(pwzidentity: super::super::Foundation::PWSTR, phcryptprov: *mut usize) -> ::windows_sys::core::HRESULT;
486 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
487 #[cfg(feature = "Win32_Foundation")]
488 pub fn PeerIdentityGetDefault(ppwzpeername: *mut super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
489 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
490 #[cfg(feature = "Win32_Foundation")]
491 pub fn PeerIdentityGetFriendlyName(pwzidentity: super::super::Foundation::PWSTR, ppwzfriendlyname: *mut super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
492 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
493 #[cfg(feature = "Win32_Foundation")]
494 pub fn PeerIdentityGetXML(pwzidentity: super::super::Foundation::PWSTR, ppwzidentityxml: *mut super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
495 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
496 #[cfg(feature = "Win32_Foundation")]
497 pub fn PeerIdentityImport(pwzimportxml: super::super::Foundation::PWSTR, pwzpassword: super::super::Foundation::PWSTR, ppwzidentity: *mut super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
498 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
499 #[cfg(feature = "Win32_Foundation")]
500 pub fn PeerIdentitySetFriendlyName(pwzidentity: super::super::Foundation::PWSTR, pwzfriendlyname: super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
501 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
502 #[cfg(feature = "Win32_Foundation")]
503 pub fn PeerNameToPeerHostName(pwzpeername: super::super::Foundation::PWSTR, ppwzhostname: *mut super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT;
504 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
505 pub fn PeerPnrpEndResolve(hresolve: *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
506 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
507 #[cfg(feature = "Win32_Foundation")]
508 pub fn PeerPnrpGetCloudInfo(pcnumclouds: *mut u32, ppcloudinfo: *mut *mut PEER_PNRP_CLOUD_INFO) -> ::windows_sys::core::HRESULT;
509 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
510 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
511 pub fn PeerPnrpGetEndpoint(hresolve: *const ::core::ffi::c_void, ppendpoint: *mut *mut PEER_PNRP_ENDPOINT_INFO) -> ::windows_sys::core::HRESULT;
512 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
513 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
514 pub fn PeerPnrpRegister(pcwzpeername: super::super::Foundation::PWSTR, pregistrationinfo: *const PEER_PNRP_REGISTRATION_INFO, phregistration: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
515 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
516 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
517 pub fn PeerPnrpResolve(pcwzpeername: super::super::Foundation::PWSTR, pcwzcloudname: super::super::Foundation::PWSTR, pcendpoints: *mut u32, ppendpoints: *mut *mut PEER_PNRP_ENDPOINT_INFO) -> ::windows_sys::core::HRESULT;
518 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
519 pub fn PeerPnrpShutdown() -> ::windows_sys::core::HRESULT;
520 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
521 #[cfg(feature = "Win32_Foundation")]
522 pub fn PeerPnrpStartResolve(pcwzpeername: super::super::Foundation::PWSTR, pcwzcloudname: super::super::Foundation::PWSTR, cmaxendpoints: u32, hevent: super::super::Foundation::HANDLE, phresolve: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
523 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
524 pub fn PeerPnrpStartup(wversionrequested: u16) -> ::windows_sys::core::HRESULT;
525 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
526 pub fn PeerPnrpUnregister(hregistration: *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
527 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
528 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
529 pub fn PeerPnrpUpdateRegistration(hregistration: *const ::core::ffi::c_void, pregistrationinfo: *const PEER_PNRP_REGISTRATION_INFO) -> ::windows_sys::core::HRESULT;
530 }
531 #[repr(C)]
532 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
533 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
534 pub struct DRT_ADDRESS {
535 pub socketAddress: super::super::Networking::WinSock::SOCKADDR_STORAGE,
536 pub flags: u32,
537 pub nearness: i32,
538 pub latency: u32,
539 }
540 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
541 impl ::core::marker::Copy for DRT_ADDRESS {}
542 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
543 impl ::core::clone::Clone for DRT_ADDRESS {
544 fn clone(&self) -> Self {
545 *self
546 }
547 }
548 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
549 pub type DRT_ADDRESS_FLAGS = i32;
550 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
551 pub const DRT_ADDRESS_FLAG_ACCEPTED: DRT_ADDRESS_FLAGS = 1i32;
552 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
553 pub const DRT_ADDRESS_FLAG_REJECTED: DRT_ADDRESS_FLAGS = 2i32;
554 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
555 pub const DRT_ADDRESS_FLAG_UNREACHABLE: DRT_ADDRESS_FLAGS = 4i32;
556 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
557 pub const DRT_ADDRESS_FLAG_LOOP: DRT_ADDRESS_FLAGS = 8i32;
558 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
559 pub const DRT_ADDRESS_FLAG_TOO_BUSY: DRT_ADDRESS_FLAGS = 16i32;
560 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
561 pub const DRT_ADDRESS_FLAG_BAD_VALIDATE_ID: DRT_ADDRESS_FLAGS = 32i32;
562 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
563 pub const DRT_ADDRESS_FLAG_SUSPECT_UNREGISTERED_ID: DRT_ADDRESS_FLAGS = 64i32;
564 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
565 pub const DRT_ADDRESS_FLAG_INQUIRE: DRT_ADDRESS_FLAGS = 128i32;
566 #[repr(C)]
567 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
568 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
569 pub struct DRT_ADDRESS_LIST {
570 pub AddressCount: u32,
571 pub AddressList: [DRT_ADDRESS; 1],
572 }
573 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
574 impl ::core::marker::Copy for DRT_ADDRESS_LIST {}
575 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
576 impl ::core::clone::Clone for DRT_ADDRESS_LIST {
577 fn clone(&self) -> Self {
578 *self
579 }
580 }
581 #[repr(C)]
582 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
583 pub struct DRT_BOOTSTRAP_PROVIDER {
584 pub pvContext: *mut ::core::ffi::c_void,
585 pub Attach: isize,
586 pub Detach: isize,
587 pub InitResolve: isize,
588 pub IssueResolve: isize,
589 pub EndResolve: isize,
590 pub Register: isize,
591 pub Unregister: isize,
592 }
593 impl ::core::marker::Copy for DRT_BOOTSTRAP_PROVIDER {}
594 impl ::core::clone::Clone for DRT_BOOTSTRAP_PROVIDER {
595 fn clone(&self) -> Self {
596 *self
597 }
598 }
599 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
600 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
601 pub type DRT_BOOTSTRAP_RESOLVE_CALLBACK = ::core::option::Option<unsafe extern "system" fn(hr: ::windows_sys::core::HRESULT, pvcontext: *mut ::core::ffi::c_void, paddresses: *mut super::super::Networking::WinSock::SOCKET_ADDRESS_LIST, ffatalerror: super::super::Foundation::BOOL)>;
602 #[repr(C)]
603 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
604 pub struct DRT_DATA {
605 pub cb: u32,
606 pub pb: *mut u8,
607 }
608 impl ::core::marker::Copy for DRT_DATA {}
609 impl ::core::clone::Clone for DRT_DATA {
610 fn clone(&self) -> Self {
611 *self
612 }
613 }
614 #[repr(C)]
615 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
616 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
617 pub struct DRT_EVENT_DATA {
618 pub r#type: DRT_EVENT_TYPE,
619 pub hr: ::windows_sys::core::HRESULT,
620 pub pvContext: *mut ::core::ffi::c_void,
621 pub Anonymous: DRT_EVENT_DATA_0,
622 }
623 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
624 impl ::core::marker::Copy for DRT_EVENT_DATA {}
625 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
626 impl ::core::clone::Clone for DRT_EVENT_DATA {
627 fn clone(&self) -> Self {
628 *self
629 }
630 }
631 #[repr(C)]
632 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
633 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
634 pub union DRT_EVENT_DATA_0 {
635 pub leafsetKeyChange: DRT_EVENT_DATA_0_0,
636 pub registrationStateChange: DRT_EVENT_DATA_0_1,
637 pub statusChange: DRT_EVENT_DATA_0_2,
638 }
639 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
640 impl ::core::marker::Copy for DRT_EVENT_DATA_0 {}
641 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
642 impl ::core::clone::Clone for DRT_EVENT_DATA_0 {
643 fn clone(&self) -> Self {
644 *self
645 }
646 }
647 #[repr(C)]
648 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
649 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
650 pub struct DRT_EVENT_DATA_0_0 {
651 pub change: DRT_LEAFSET_KEY_CHANGE_TYPE,
652 pub localKey: DRT_DATA,
653 pub remoteKey: DRT_DATA,
654 }
655 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
656 impl ::core::marker::Copy for DRT_EVENT_DATA_0_0 {}
657 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
658 impl ::core::clone::Clone for DRT_EVENT_DATA_0_0 {
659 fn clone(&self) -> Self {
660 *self
661 }
662 }
663 #[repr(C)]
664 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
665 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
666 pub struct DRT_EVENT_DATA_0_1 {
667 pub state: DRT_REGISTRATION_STATE,
668 pub localKey: DRT_DATA,
669 }
670 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
671 impl ::core::marker::Copy for DRT_EVENT_DATA_0_1 {}
672 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
673 impl ::core::clone::Clone for DRT_EVENT_DATA_0_1 {
674 fn clone(&self) -> Self {
675 *self
676 }
677 }
678 #[repr(C)]
679 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
680 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
681 pub struct DRT_EVENT_DATA_0_2 {
682 pub status: DRT_STATUS,
683 pub bootstrapAddresses: DRT_EVENT_DATA_0_2_0,
684 }
685 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
686 impl ::core::marker::Copy for DRT_EVENT_DATA_0_2 {}
687 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
688 impl ::core::clone::Clone for DRT_EVENT_DATA_0_2 {
689 fn clone(&self) -> Self {
690 *self
691 }
692 }
693 #[repr(C)]
694 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
695 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
696 pub struct DRT_EVENT_DATA_0_2_0 {
697 pub cntAddress: u32,
698 pub pAddresses: *mut super::super::Networking::WinSock::SOCKADDR_STORAGE,
699 }
700 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
701 impl ::core::marker::Copy for DRT_EVENT_DATA_0_2_0 {}
702 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
703 impl ::core::clone::Clone for DRT_EVENT_DATA_0_2_0 {
704 fn clone(&self) -> Self {
705 *self
706 }
707 }
708 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
709 pub type DRT_EVENT_TYPE = i32;
710 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
711 pub const DRT_EVENT_STATUS_CHANGED: DRT_EVENT_TYPE = 0i32;
712 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
713 pub const DRT_EVENT_LEAFSET_KEY_CHANGED: DRT_EVENT_TYPE = 1i32;
714 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
715 pub const DRT_EVENT_REGISTRATION_STATE_CHANGED: DRT_EVENT_TYPE = 2i32;
716 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
717 pub const DRT_E_BOOTSTRAPPROVIDER_IN_USE: ::windows_sys::core::HRESULT = -2141052914i32;
718 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
719 pub const DRT_E_BOOTSTRAPPROVIDER_NOT_ATTACHED: ::windows_sys::core::HRESULT = -2141052913i32;
720 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
721 pub const DRT_E_CAPABILITY_MISMATCH: ::windows_sys::core::HRESULT = -2141052657i32;
722 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
723 pub const DRT_E_DUPLICATE_KEY: ::windows_sys::core::HRESULT = -2141052919i32;
724 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
725 pub const DRT_E_FAULTED: ::windows_sys::core::HRESULT = -2141052662i32;
726 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
727 pub const DRT_E_INSUFFICIENT_BUFFER: ::windows_sys::core::HRESULT = -2141052660i32;
728 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
729 pub const DRT_E_INVALID_ADDRESS: ::windows_sys::core::HRESULT = -2141052923i32;
730 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
731 pub const DRT_E_INVALID_BOOTSTRAP_PROVIDER: ::windows_sys::core::HRESULT = -2141052924i32;
732 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
733 pub const DRT_E_INVALID_CERT_CHAIN: ::windows_sys::core::HRESULT = -2141057020i32;
734 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
735 pub const DRT_E_INVALID_INSTANCE_PREFIX: ::windows_sys::core::HRESULT = -2141052659i32;
736 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
737 pub const DRT_E_INVALID_KEY: ::windows_sys::core::HRESULT = -2141057015i32;
738 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
739 pub const DRT_E_INVALID_KEY_SIZE: ::windows_sys::core::HRESULT = -2141057022i32;
740 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
741 pub const DRT_E_INVALID_MAX_ADDRESSES: ::windows_sys::core::HRESULT = -2141057017i32;
742 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
743 pub const DRT_E_INVALID_MAX_ENDPOINTS: ::windows_sys::core::HRESULT = -2141057007i32;
744 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
745 pub const DRT_E_INVALID_MESSAGE: ::windows_sys::core::HRESULT = -2141057019i32;
746 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
747 pub const DRT_E_INVALID_PORT: ::windows_sys::core::HRESULT = -2141052928i32;
748 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
749 pub const DRT_E_INVALID_SCOPE: ::windows_sys::core::HRESULT = -2141052922i32;
750 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
751 pub const DRT_E_INVALID_SEARCH_INFO: ::windows_sys::core::HRESULT = -2141052663i32;
752 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
753 pub const DRT_E_INVALID_SEARCH_RANGE: ::windows_sys::core::HRESULT = -2141057006i32;
754 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
755 pub const DRT_E_INVALID_SECURITY_MODE: ::windows_sys::core::HRESULT = -2141052658i32;
756 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
757 pub const DRT_E_INVALID_SECURITY_PROVIDER: ::windows_sys::core::HRESULT = -2141052926i32;
758 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
759 pub const DRT_E_INVALID_SETTINGS: ::windows_sys::core::HRESULT = -2141052664i32;
760 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
761 pub const DRT_E_INVALID_TRANSPORT_PROVIDER: ::windows_sys::core::HRESULT = -2141052927i32;
762 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
763 pub const DRT_E_NO_ADDRESSES_AVAILABLE: ::windows_sys::core::HRESULT = -2141052920i32;
764 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
765 pub const DRT_E_NO_MORE: ::windows_sys::core::HRESULT = -2141057018i32;
766 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
767 pub const DRT_E_SEARCH_IN_PROGRESS: ::windows_sys::core::HRESULT = -2141057016i32;
768 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
769 pub const DRT_E_SECURITYPROVIDER_IN_USE: ::windows_sys::core::HRESULT = -2141052916i32;
770 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
771 pub const DRT_E_SECURITYPROVIDER_NOT_ATTACHED: ::windows_sys::core::HRESULT = -2141052915i32;
772 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
773 pub const DRT_E_STILL_IN_USE: ::windows_sys::core::HRESULT = -2141052925i32;
774 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
775 pub const DRT_E_TIMEOUT: ::windows_sys::core::HRESULT = -2141057023i32;
776 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
777 pub const DRT_E_TRANSPORTPROVIDER_IN_USE: ::windows_sys::core::HRESULT = -2141052918i32;
778 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
779 pub const DRT_E_TRANSPORTPROVIDER_NOT_ATTACHED: ::windows_sys::core::HRESULT = -2141052917i32;
780 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
781 pub const DRT_E_TRANSPORT_ALREADY_BOUND: ::windows_sys::core::HRESULT = -2141052671i32;
782 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
783 pub const DRT_E_TRANSPORT_ALREADY_EXISTS_FOR_SCOPE: ::windows_sys::core::HRESULT = -2141052665i32;
784 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
785 pub const DRT_E_TRANSPORT_EXECUTING_CALLBACK: ::windows_sys::core::HRESULT = -2141052666i32;
786 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
787 pub const DRT_E_TRANSPORT_INVALID_ARGUMENT: ::windows_sys::core::HRESULT = -2141052668i32;
788 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
789 pub const DRT_E_TRANSPORT_NOT_BOUND: ::windows_sys::core::HRESULT = -2141052670i32;
790 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
791 pub const DRT_E_TRANSPORT_NO_DEST_ADDRESSES: ::windows_sys::core::HRESULT = -2141052667i32;
792 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
793 pub const DRT_E_TRANSPORT_SHUTTING_DOWN: ::windows_sys::core::HRESULT = -2141052921i32;
794 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
795 pub const DRT_E_TRANSPORT_STILL_BOUND: ::windows_sys::core::HRESULT = -2141052661i32;
796 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
797 pub const DRT_E_TRANSPORT_UNEXPECTED: ::windows_sys::core::HRESULT = -2141052669i32;
798 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
799 pub type DRT_LEAFSET_KEY_CHANGE_TYPE = i32;
800 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
801 pub const DRT_LEAFSET_KEY_ADDED: DRT_LEAFSET_KEY_CHANGE_TYPE = 0i32;
802 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
803 pub const DRT_LEAFSET_KEY_DELETED: DRT_LEAFSET_KEY_CHANGE_TYPE = 1i32;
804 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
805 pub const DRT_LINK_LOCAL_ISATAP_SCOPEID: u32 = 4294967295u32;
806 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
807 pub type DRT_MATCH_TYPE = i32;
808 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
809 pub const DRT_MATCH_EXACT: DRT_MATCH_TYPE = 0i32;
810 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
811 pub const DRT_MATCH_NEAR: DRT_MATCH_TYPE = 1i32;
812 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
813 pub const DRT_MATCH_INTERMEDIATE: DRT_MATCH_TYPE = 2i32;
814 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
815 pub const DRT_MAX_INSTANCE_PREFIX_LEN: u32 = 128u32;
816 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
817 pub const DRT_MAX_PAYLOAD_SIZE: u32 = 5120u32;
818 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
819 pub const DRT_MAX_ROUTING_ADDRESSES: u32 = 20u32;
820 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
821 pub const DRT_MIN_ROUTING_ADDRESSES: u32 = 1u32;
822 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
823 pub const DRT_PAYLOAD_REVOKED: u32 = 1u32;
824 #[repr(C)]
825 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
826 pub struct DRT_REGISTRATION {
827 pub key: DRT_DATA,
828 pub appData: DRT_DATA,
829 }
830 impl ::core::marker::Copy for DRT_REGISTRATION {}
831 impl ::core::clone::Clone for DRT_REGISTRATION {
832 fn clone(&self) -> Self {
833 *self
834 }
835 }
836 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
837 pub type DRT_REGISTRATION_STATE = i32;
838 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
839 pub const DRT_REGISTRATION_STATE_UNRESOLVEABLE: DRT_REGISTRATION_STATE = 1i32;
840 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
841 pub type DRT_SCOPE = i32;
842 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
843 pub const DRT_GLOBAL_SCOPE: DRT_SCOPE = 1i32;
844 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
845 pub const DRT_SITE_LOCAL_SCOPE: DRT_SCOPE = 2i32;
846 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
847 pub const DRT_LINK_LOCAL_SCOPE: DRT_SCOPE = 3i32;
848 #[repr(C)]
849 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
850 #[cfg(feature = "Win32_Foundation")]
851 pub struct DRT_SEARCH_INFO {
852 pub dwSize: u32,
853 pub fIterative: super::super::Foundation::BOOL,
854 pub fAllowCurrentInstanceMatch: super::super::Foundation::BOOL,
855 pub fAnyMatchInRange: super::super::Foundation::BOOL,
856 pub cMaxEndpoints: u32,
857 pub pMaximumKey: *mut DRT_DATA,
858 pub pMinimumKey: *mut DRT_DATA,
859 }
860 #[cfg(feature = "Win32_Foundation")]
861 impl ::core::marker::Copy for DRT_SEARCH_INFO {}
862 #[cfg(feature = "Win32_Foundation")]
863 impl ::core::clone::Clone for DRT_SEARCH_INFO {
864 fn clone(&self) -> Self {
865 *self
866 }
867 }
868 #[repr(C)]
869 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
870 pub struct DRT_SEARCH_RESULT {
871 pub dwSize: u32,
872 pub r#type: DRT_MATCH_TYPE,
873 pub pvContext: *mut ::core::ffi::c_void,
874 pub registration: DRT_REGISTRATION,
875 }
876 impl ::core::marker::Copy for DRT_SEARCH_RESULT {}
877 impl ::core::clone::Clone for DRT_SEARCH_RESULT {
878 fn clone(&self) -> Self {
879 *self
880 }
881 }
882 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
883 pub type DRT_SECURITY_MODE = i32;
884 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
885 pub const DRT_SECURE_RESOLVE: DRT_SECURITY_MODE = 0i32;
886 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
887 pub const DRT_SECURE_MEMBERSHIP: DRT_SECURITY_MODE = 1i32;
888 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
889 pub const DRT_SECURE_CONFIDENTIALPAYLOAD: DRT_SECURITY_MODE = 2i32;
890 #[repr(C)]
891 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
892 pub struct DRT_SECURITY_PROVIDER {
893 pub pvContext: *mut ::core::ffi::c_void,
894 pub Attach: isize,
895 pub Detach: isize,
896 pub RegisterKey: isize,
897 pub UnregisterKey: isize,
898 pub ValidateAndUnpackPayload: isize,
899 pub SecureAndPackPayload: isize,
900 pub FreeData: isize,
901 pub EncryptData: isize,
902 pub DecryptData: isize,
903 pub GetSerializedCredential: isize,
904 pub ValidateRemoteCredential: isize,
905 pub SignData: isize,
906 pub VerifyData: isize,
907 }
908 impl ::core::marker::Copy for DRT_SECURITY_PROVIDER {}
909 impl ::core::clone::Clone for DRT_SECURITY_PROVIDER {
910 fn clone(&self) -> Self {
911 *self
912 }
913 }
914 #[repr(C)]
915 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
916 #[cfg(feature = "Win32_Foundation")]
917 pub struct DRT_SETTINGS {
918 pub dwSize: u32,
919 pub cbKey: u32,
920 pub bProtocolMajorVersion: u8,
921 pub bProtocolMinorVersion: u8,
922 pub ulMaxRoutingAddresses: u32,
923 pub pwzDrtInstancePrefix: super::super::Foundation::PWSTR,
924 pub hTransport: *mut ::core::ffi::c_void,
925 pub pSecurityProvider: *mut DRT_SECURITY_PROVIDER,
926 pub pBootstrapProvider: *mut DRT_BOOTSTRAP_PROVIDER,
927 pub eSecurityMode: DRT_SECURITY_MODE,
928 }
929 #[cfg(feature = "Win32_Foundation")]
930 impl ::core::marker::Copy for DRT_SETTINGS {}
931 #[cfg(feature = "Win32_Foundation")]
932 impl ::core::clone::Clone for DRT_SETTINGS {
933 fn clone(&self) -> Self {
934 *self
935 }
936 }
937 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
938 pub type DRT_STATUS = i32;
939 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
940 pub const DRT_ACTIVE: DRT_STATUS = 0i32;
941 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
942 pub const DRT_ALONE: DRT_STATUS = 1i32;
943 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
944 pub const DRT_NO_NETWORK: DRT_STATUS = 10i32;
945 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
946 pub const DRT_FAULTED: DRT_STATUS = 20i32;
947 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
948 pub const DRT_S_RETRY: ::windows_sys::core::HRESULT = 6426640i32;
949 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
950 pub const FACILITY_DRT: u32 = 98u32;
951 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
952 pub const NS_PNRPCLOUD: u32 = 39u32;
953 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
954 pub const NS_PNRPNAME: u32 = 38u32;
955 pub const NS_PROVIDER_PNRPCLOUD: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 67013070, data2: 30317, data3: 18806, data4: [185, 193, 187, 155, 196, 44, 123, 77] };
956 pub const NS_PROVIDER_PNRPNAME: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 67013069, data2: 30317, data3: 18806, data4: [185, 193, 187, 155, 196, 44, 123, 77] };
957 #[repr(C)]
958 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
959 #[cfg(feature = "Win32_Foundation")]
960 pub struct PEERDIST_CLIENT_BASIC_INFO {
961 pub fFlashCrowd: super::super::Foundation::BOOL,
962 }
963 #[cfg(feature = "Win32_Foundation")]
964 impl ::core::marker::Copy for PEERDIST_CLIENT_BASIC_INFO {}
965 #[cfg(feature = "Win32_Foundation")]
966 impl ::core::clone::Clone for PEERDIST_CLIENT_BASIC_INFO {
967 fn clone(&self) -> Self {
968 *self
969 }
970 }
971 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
972 pub type PEERDIST_CLIENT_INFO_BY_HANDLE_CLASS = i32;
973 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
974 pub const PeerDistClientBasicInfo: PEERDIST_CLIENT_INFO_BY_HANDLE_CLASS = 0i32;
975 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
976 pub const MaximumPeerDistClientInfoByHandlesClass: PEERDIST_CLIENT_INFO_BY_HANDLE_CLASS = 1i32;
977 #[repr(C)]
978 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
979 pub struct PEERDIST_CONTENT_TAG {
980 pub Data: [u8; 16],
981 }
982 impl ::core::marker::Copy for PEERDIST_CONTENT_TAG {}
983 impl ::core::clone::Clone for PEERDIST_CONTENT_TAG {
984 fn clone(&self) -> Self {
985 *self
986 }
987 }
988 #[repr(C)]
989 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
990 pub struct PEERDIST_PUBLICATION_OPTIONS {
991 pub dwVersion: u32,
992 pub dwFlags: u32,
993 }
994 impl ::core::marker::Copy for PEERDIST_PUBLICATION_OPTIONS {}
995 impl ::core::clone::Clone for PEERDIST_PUBLICATION_OPTIONS {
996 fn clone(&self) -> Self {
997 *self
998 }
999 }
1000 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1001 pub const PEERDIST_PUBLICATION_OPTIONS_VERSION: i32 = 2i32;
1002 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1003 pub const PEERDIST_PUBLICATION_OPTIONS_VERSION_1: i32 = 1i32;
1004 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1005 pub const PEERDIST_PUBLICATION_OPTIONS_VERSION_2: i32 = 2i32;
1006 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1007 pub const PEERDIST_READ_TIMEOUT_DEFAULT: u32 = 4294967294u32;
1008 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1009 pub const PEERDIST_READ_TIMEOUT_LOCAL_CACHE_ONLY: u32 = 0u32;
1010 #[repr(C)]
1011 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1012 pub struct PEERDIST_RETRIEVAL_OPTIONS {
1013 pub cbSize: u32,
1014 pub dwContentInfoMinVersion: u32,
1015 pub dwContentInfoMaxVersion: u32,
1016 pub dwReserved: u32,
1017 }
1018 impl ::core::marker::Copy for PEERDIST_RETRIEVAL_OPTIONS {}
1019 impl ::core::clone::Clone for PEERDIST_RETRIEVAL_OPTIONS {
1020 fn clone(&self) -> Self {
1021 *self
1022 }
1023 }
1024 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1025 pub type PEERDIST_RETRIEVAL_OPTIONS_CONTENTINFO_VERSION_VALUE = u32;
1026 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1027 pub const PEERDIST_RETRIEVAL_OPTIONS_CONTENTINFO_VERSION_1: PEERDIST_RETRIEVAL_OPTIONS_CONTENTINFO_VERSION_VALUE = 1u32;
1028 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1029 pub const PEERDIST_RETRIEVAL_OPTIONS_CONTENTINFO_VERSION_2: PEERDIST_RETRIEVAL_OPTIONS_CONTENTINFO_VERSION_VALUE = 2u32;
1030 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1031 pub const PEERDIST_RETRIEVAL_OPTIONS_CONTENTINFO_VERSION: PEERDIST_RETRIEVAL_OPTIONS_CONTENTINFO_VERSION_VALUE = 2u32;
1032 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1033 pub type PEERDIST_STATUS = i32;
1034 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1035 pub const PEERDIST_STATUS_DISABLED: PEERDIST_STATUS = 0i32;
1036 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1037 pub const PEERDIST_STATUS_UNAVAILABLE: PEERDIST_STATUS = 1i32;
1038 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1039 pub const PEERDIST_STATUS_AVAILABLE: PEERDIST_STATUS = 2i32;
1040 #[repr(C)]
1041 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1042 pub struct PEERDIST_STATUS_INFO {
1043 pub cbSize: u32,
1044 pub status: PEERDIST_STATUS,
1045 pub dwMinVer: PEERDIST_RETRIEVAL_OPTIONS_CONTENTINFO_VERSION_VALUE,
1046 pub dwMaxVer: PEERDIST_RETRIEVAL_OPTIONS_CONTENTINFO_VERSION_VALUE,
1047 }
1048 impl ::core::marker::Copy for PEERDIST_STATUS_INFO {}
1049 impl ::core::clone::Clone for PEERDIST_STATUS_INFO {
1050 fn clone(&self) -> Self {
1051 *self
1052 }
1053 }
1054 #[repr(C)]
1055 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Networking_WinSock'*"]
1056 #[cfg(feature = "Win32_Networking_WinSock")]
1057 pub struct PEER_ADDRESS {
1058 pub dwSize: u32,
1059 pub sin6: super::super::Networking::WinSock::SOCKADDR_IN6,
1060 }
1061 #[cfg(feature = "Win32_Networking_WinSock")]
1062 impl ::core::marker::Copy for PEER_ADDRESS {}
1063 #[cfg(feature = "Win32_Networking_WinSock")]
1064 impl ::core::clone::Clone for PEER_ADDRESS {
1065 fn clone(&self) -> Self {
1066 *self
1067 }
1068 }
1069 #[repr(C)]
1070 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
1071 #[cfg(feature = "Win32_Foundation")]
1072 pub struct PEER_APPLICATION {
1073 pub id: ::windows_sys::core::GUID,
1074 pub data: PEER_DATA,
1075 pub pwzDescription: super::super::Foundation::PWSTR,
1076 }
1077 #[cfg(feature = "Win32_Foundation")]
1078 impl ::core::marker::Copy for PEER_APPLICATION {}
1079 #[cfg(feature = "Win32_Foundation")]
1080 impl ::core::clone::Clone for PEER_APPLICATION {
1081 fn clone(&self) -> Self {
1082 *self
1083 }
1084 }
1085 #[repr(C)]
1086 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
1087 #[cfg(feature = "Win32_Foundation")]
1088 pub struct PEER_APPLICATION_REGISTRATION_INFO {
1089 pub application: PEER_APPLICATION,
1090 pub pwzApplicationToLaunch: super::super::Foundation::PWSTR,
1091 pub pwzApplicationArguments: super::super::Foundation::PWSTR,
1092 pub dwPublicationScope: u32,
1093 }
1094 #[cfg(feature = "Win32_Foundation")]
1095 impl ::core::marker::Copy for PEER_APPLICATION_REGISTRATION_INFO {}
1096 #[cfg(feature = "Win32_Foundation")]
1097 impl ::core::clone::Clone for PEER_APPLICATION_REGISTRATION_INFO {
1098 fn clone(&self) -> Self {
1099 *self
1100 }
1101 }
1102 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1103 pub type PEER_APPLICATION_REGISTRATION_TYPE = i32;
1104 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1105 pub const PEER_APPLICATION_CURRENT_USER: PEER_APPLICATION_REGISTRATION_TYPE = 0i32;
1106 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1107 pub const PEER_APPLICATION_ALL_USERS: PEER_APPLICATION_REGISTRATION_TYPE = 1i32;
1108 #[repr(C)]
1109 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
1110 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1111 pub struct PEER_APP_LAUNCH_INFO {
1112 pub pContact: *mut PEER_CONTACT,
1113 pub pEndpoint: *mut PEER_ENDPOINT,
1114 pub pInvitation: *mut PEER_INVITATION,
1115 }
1116 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1117 impl ::core::marker::Copy for PEER_APP_LAUNCH_INFO {}
1118 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1119 impl ::core::clone::Clone for PEER_APP_LAUNCH_INFO {
1120 fn clone(&self) -> Self {
1121 *self
1122 }
1123 }
1124 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1125 pub type PEER_CHANGE_TYPE = i32;
1126 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1127 pub const PEER_CHANGE_ADDED: PEER_CHANGE_TYPE = 0i32;
1128 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1129 pub const PEER_CHANGE_DELETED: PEER_CHANGE_TYPE = 1i32;
1130 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1131 pub const PEER_CHANGE_UPDATED: PEER_CHANGE_TYPE = 2i32;
1132 #[repr(C)]
1133 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
1134 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1135 pub struct PEER_COLLAB_EVENT_DATA {
1136 pub eventType: PEER_COLLAB_EVENT_TYPE,
1137 pub Anonymous: PEER_COLLAB_EVENT_DATA_0,
1138 }
1139 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1140 impl ::core::marker::Copy for PEER_COLLAB_EVENT_DATA {}
1141 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1142 impl ::core::clone::Clone for PEER_COLLAB_EVENT_DATA {
1143 fn clone(&self) -> Self {
1144 *self
1145 }
1146 }
1147 #[repr(C)]
1148 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
1149 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1150 pub union PEER_COLLAB_EVENT_DATA_0 {
1151 pub watchListChangedData: PEER_EVENT_WATCHLIST_CHANGED_DATA,
1152 pub presenceChangedData: PEER_EVENT_PRESENCE_CHANGED_DATA,
1153 pub applicationChangedData: PEER_EVENT_APPLICATION_CHANGED_DATA,
1154 pub objectChangedData: PEER_EVENT_OBJECT_CHANGED_DATA,
1155 pub endpointChangedData: PEER_EVENT_ENDPOINT_CHANGED_DATA,
1156 pub peopleNearMeChangedData: PEER_EVENT_PEOPLE_NEAR_ME_CHANGED_DATA,
1157 pub requestStatusChangedData: PEER_EVENT_REQUEST_STATUS_CHANGED_DATA,
1158 }
1159 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1160 impl ::core::marker::Copy for PEER_COLLAB_EVENT_DATA_0 {}
1161 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1162 impl ::core::clone::Clone for PEER_COLLAB_EVENT_DATA_0 {
1163 fn clone(&self) -> Self {
1164 *self
1165 }
1166 }
1167 #[repr(C)]
1168 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1169 pub struct PEER_COLLAB_EVENT_REGISTRATION {
1170 pub eventType: PEER_COLLAB_EVENT_TYPE,
1171 pub pInstance: *mut ::windows_sys::core::GUID,
1172 }
1173 impl ::core::marker::Copy for PEER_COLLAB_EVENT_REGISTRATION {}
1174 impl ::core::clone::Clone for PEER_COLLAB_EVENT_REGISTRATION {
1175 fn clone(&self) -> Self {
1176 *self
1177 }
1178 }
1179 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1180 pub type PEER_COLLAB_EVENT_TYPE = i32;
1181 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1182 pub const PEER_EVENT_WATCHLIST_CHANGED: PEER_COLLAB_EVENT_TYPE = 1i32;
1183 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1184 pub const PEER_EVENT_ENDPOINT_CHANGED: PEER_COLLAB_EVENT_TYPE = 2i32;
1185 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1186 pub const PEER_EVENT_ENDPOINT_PRESENCE_CHANGED: PEER_COLLAB_EVENT_TYPE = 3i32;
1187 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1188 pub const PEER_EVENT_ENDPOINT_APPLICATION_CHANGED: PEER_COLLAB_EVENT_TYPE = 4i32;
1189 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1190 pub const PEER_EVENT_ENDPOINT_OBJECT_CHANGED: PEER_COLLAB_EVENT_TYPE = 5i32;
1191 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1192 pub const PEER_EVENT_MY_ENDPOINT_CHANGED: PEER_COLLAB_EVENT_TYPE = 6i32;
1193 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1194 pub const PEER_EVENT_MY_PRESENCE_CHANGED: PEER_COLLAB_EVENT_TYPE = 7i32;
1195 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1196 pub const PEER_EVENT_MY_APPLICATION_CHANGED: PEER_COLLAB_EVENT_TYPE = 8i32;
1197 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1198 pub const PEER_EVENT_MY_OBJECT_CHANGED: PEER_COLLAB_EVENT_TYPE = 9i32;
1199 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1200 pub const PEER_EVENT_PEOPLE_NEAR_ME_CHANGED: PEER_COLLAB_EVENT_TYPE = 10i32;
1201 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1202 pub const PEER_EVENT_REQUEST_STATUS_CHANGED: PEER_COLLAB_EVENT_TYPE = 11i32;
1203 pub const PEER_COLLAB_OBJECTID_USER_PICTURE: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 3709203487, data2: 64590, data3: 18722, data4: [176, 53, 76, 6, 167, 84, 208, 29] };
1204 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1205 pub type PEER_CONNECTION_FLAGS = i32;
1206 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1207 pub const PEER_CONNECTION_NEIGHBOR: PEER_CONNECTION_FLAGS = 1i32;
1208 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1209 pub const PEER_CONNECTION_DIRECT: PEER_CONNECTION_FLAGS = 2i32;
1210 #[repr(C)]
1211 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
1212 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1213 pub struct PEER_CONNECTION_INFO {
1214 pub dwSize: u32,
1215 pub dwFlags: u32,
1216 pub ullConnectionId: u64,
1217 pub ullNodeId: u64,
1218 pub pwzPeerId: super::super::Foundation::PWSTR,
1219 pub address: PEER_ADDRESS,
1220 }
1221 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1222 impl ::core::marker::Copy for PEER_CONNECTION_INFO {}
1223 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1224 impl ::core::clone::Clone for PEER_CONNECTION_INFO {
1225 fn clone(&self) -> Self {
1226 *self
1227 }
1228 }
1229 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1230 pub type PEER_CONNECTION_STATUS = i32;
1231 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1232 pub const PEER_CONNECTED: PEER_CONNECTION_STATUS = 1i32;
1233 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1234 pub const PEER_DISCONNECTED: PEER_CONNECTION_STATUS = 2i32;
1235 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1236 pub const PEER_CONNECTION_FAILED: PEER_CONNECTION_STATUS = 3i32;
1237 #[repr(C)]
1238 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
1239 #[cfg(feature = "Win32_Foundation")]
1240 pub struct PEER_CONTACT {
1241 pub pwzPeerName: super::super::Foundation::PWSTR,
1242 pub pwzNickName: super::super::Foundation::PWSTR,
1243 pub pwzDisplayName: super::super::Foundation::PWSTR,
1244 pub pwzEmailAddress: super::super::Foundation::PWSTR,
1245 pub fWatch: super::super::Foundation::BOOL,
1246 pub WatcherPermissions: PEER_WATCH_PERMISSION,
1247 pub credentials: PEER_DATA,
1248 }
1249 #[cfg(feature = "Win32_Foundation")]
1250 impl ::core::marker::Copy for PEER_CONTACT {}
1251 #[cfg(feature = "Win32_Foundation")]
1252 impl ::core::clone::Clone for PEER_CONTACT {
1253 fn clone(&self) -> Self {
1254 *self
1255 }
1256 }
1257 #[repr(C)]
1258 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Security_Cryptography'*"]
1259 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1260 pub struct PEER_CREDENTIAL_INFO {
1261 pub dwSize: u32,
1262 pub dwFlags: u32,
1263 pub pwzFriendlyName: super::super::Foundation::PWSTR,
1264 pub pPublicKey: *mut super::super::Security::Cryptography::CERT_PUBLIC_KEY_INFO,
1265 pub pwzIssuerPeerName: super::super::Foundation::PWSTR,
1266 pub pwzIssuerFriendlyName: super::super::Foundation::PWSTR,
1267 pub ftValidityStart: super::super::Foundation::FILETIME,
1268 pub ftValidityEnd: super::super::Foundation::FILETIME,
1269 pub cRoles: u32,
1270 pub pRoles: *mut ::windows_sys::core::GUID,
1271 }
1272 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1273 impl ::core::marker::Copy for PEER_CREDENTIAL_INFO {}
1274 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1275 impl ::core::clone::Clone for PEER_CREDENTIAL_INFO {
1276 fn clone(&self) -> Self {
1277 *self
1278 }
1279 }
1280 #[repr(C)]
1281 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1282 pub struct PEER_DATA {
1283 pub cbData: u32,
1284 pub pbData: *mut u8,
1285 }
1286 impl ::core::marker::Copy for PEER_DATA {}
1287 impl ::core::clone::Clone for PEER_DATA {
1288 fn clone(&self) -> Self {
1289 *self
1290 }
1291 }
1292 #[repr(C)]
1293 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
1294 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1295 pub struct PEER_ENDPOINT {
1296 pub address: PEER_ADDRESS,
1297 pub pwzEndpointName: super::super::Foundation::PWSTR,
1298 }
1299 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1300 impl ::core::marker::Copy for PEER_ENDPOINT {}
1301 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1302 impl ::core::clone::Clone for PEER_ENDPOINT {
1303 fn clone(&self) -> Self {
1304 *self
1305 }
1306 }
1307 #[repr(C)]
1308 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
1309 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1310 pub struct PEER_EVENT_APPLICATION_CHANGED_DATA {
1311 pub pContact: *mut PEER_CONTACT,
1312 pub pEndpoint: *mut PEER_ENDPOINT,
1313 pub changeType: PEER_CHANGE_TYPE,
1314 pub pApplication: *mut PEER_APPLICATION,
1315 }
1316 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1317 impl ::core::marker::Copy for PEER_EVENT_APPLICATION_CHANGED_DATA {}
1318 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1319 impl ::core::clone::Clone for PEER_EVENT_APPLICATION_CHANGED_DATA {
1320 fn clone(&self) -> Self {
1321 *self
1322 }
1323 }
1324 #[repr(C)]
1325 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1326 pub struct PEER_EVENT_CONNECTION_CHANGE_DATA {
1327 pub dwSize: u32,
1328 pub status: PEER_CONNECTION_STATUS,
1329 pub ullConnectionId: u64,
1330 pub ullNodeId: u64,
1331 pub ullNextConnectionId: u64,
1332 pub hrConnectionFailedReason: ::windows_sys::core::HRESULT,
1333 }
1334 impl ::core::marker::Copy for PEER_EVENT_CONNECTION_CHANGE_DATA {}
1335 impl ::core::clone::Clone for PEER_EVENT_CONNECTION_CHANGE_DATA {
1336 fn clone(&self) -> Self {
1337 *self
1338 }
1339 }
1340 #[repr(C)]
1341 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
1342 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1343 pub struct PEER_EVENT_ENDPOINT_CHANGED_DATA {
1344 pub pContact: *mut PEER_CONTACT,
1345 pub pEndpoint: *mut PEER_ENDPOINT,
1346 }
1347 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1348 impl ::core::marker::Copy for PEER_EVENT_ENDPOINT_CHANGED_DATA {}
1349 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1350 impl ::core::clone::Clone for PEER_EVENT_ENDPOINT_CHANGED_DATA {
1351 fn clone(&self) -> Self {
1352 *self
1353 }
1354 }
1355 #[repr(C)]
1356 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1357 pub struct PEER_EVENT_INCOMING_DATA {
1358 pub dwSize: u32,
1359 pub ullConnectionId: u64,
1360 pub r#type: ::windows_sys::core::GUID,
1361 pub data: PEER_DATA,
1362 }
1363 impl ::core::marker::Copy for PEER_EVENT_INCOMING_DATA {}
1364 impl ::core::clone::Clone for PEER_EVENT_INCOMING_DATA {
1365 fn clone(&self) -> Self {
1366 *self
1367 }
1368 }
1369 #[repr(C)]
1370 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
1371 #[cfg(feature = "Win32_Foundation")]
1372 pub struct PEER_EVENT_MEMBER_CHANGE_DATA {
1373 pub dwSize: u32,
1374 pub changeType: PEER_MEMBER_CHANGE_TYPE,
1375 pub pwzIdentity: super::super::Foundation::PWSTR,
1376 }
1377 #[cfg(feature = "Win32_Foundation")]
1378 impl ::core::marker::Copy for PEER_EVENT_MEMBER_CHANGE_DATA {}
1379 #[cfg(feature = "Win32_Foundation")]
1380 impl ::core::clone::Clone for PEER_EVENT_MEMBER_CHANGE_DATA {
1381 fn clone(&self) -> Self {
1382 *self
1383 }
1384 }
1385 #[repr(C)]
1386 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
1387 #[cfg(feature = "Win32_Foundation")]
1388 pub struct PEER_EVENT_NODE_CHANGE_DATA {
1389 pub dwSize: u32,
1390 pub changeType: PEER_NODE_CHANGE_TYPE,
1391 pub ullNodeId: u64,
1392 pub pwzPeerId: super::super::Foundation::PWSTR,
1393 }
1394 #[cfg(feature = "Win32_Foundation")]
1395 impl ::core::marker::Copy for PEER_EVENT_NODE_CHANGE_DATA {}
1396 #[cfg(feature = "Win32_Foundation")]
1397 impl ::core::clone::Clone for PEER_EVENT_NODE_CHANGE_DATA {
1398 fn clone(&self) -> Self {
1399 *self
1400 }
1401 }
1402 #[repr(C)]
1403 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
1404 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1405 pub struct PEER_EVENT_OBJECT_CHANGED_DATA {
1406 pub pContact: *mut PEER_CONTACT,
1407 pub pEndpoint: *mut PEER_ENDPOINT,
1408 pub changeType: PEER_CHANGE_TYPE,
1409 pub pObject: *mut PEER_OBJECT,
1410 }
1411 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1412 impl ::core::marker::Copy for PEER_EVENT_OBJECT_CHANGED_DATA {}
1413 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1414 impl ::core::clone::Clone for PEER_EVENT_OBJECT_CHANGED_DATA {
1415 fn clone(&self) -> Self {
1416 *self
1417 }
1418 }
1419 #[repr(C)]
1420 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
1421 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1422 pub struct PEER_EVENT_PEOPLE_NEAR_ME_CHANGED_DATA {
1423 pub changeType: PEER_CHANGE_TYPE,
1424 pub pPeopleNearMe: *mut PEER_PEOPLE_NEAR_ME,
1425 }
1426 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1427 impl ::core::marker::Copy for PEER_EVENT_PEOPLE_NEAR_ME_CHANGED_DATA {}
1428 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1429 impl ::core::clone::Clone for PEER_EVENT_PEOPLE_NEAR_ME_CHANGED_DATA {
1430 fn clone(&self) -> Self {
1431 *self
1432 }
1433 }
1434 #[repr(C)]
1435 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
1436 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1437 pub struct PEER_EVENT_PRESENCE_CHANGED_DATA {
1438 pub pContact: *mut PEER_CONTACT,
1439 pub pEndpoint: *mut PEER_ENDPOINT,
1440 pub changeType: PEER_CHANGE_TYPE,
1441 pub pPresenceInfo: *mut PEER_PRESENCE_INFO,
1442 }
1443 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1444 impl ::core::marker::Copy for PEER_EVENT_PRESENCE_CHANGED_DATA {}
1445 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1446 impl ::core::clone::Clone for PEER_EVENT_PRESENCE_CHANGED_DATA {
1447 fn clone(&self) -> Self {
1448 *self
1449 }
1450 }
1451 #[repr(C)]
1452 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1453 pub struct PEER_EVENT_RECORD_CHANGE_DATA {
1454 pub dwSize: u32,
1455 pub changeType: PEER_RECORD_CHANGE_TYPE,
1456 pub recordId: ::windows_sys::core::GUID,
1457 pub recordType: ::windows_sys::core::GUID,
1458 }
1459 impl ::core::marker::Copy for PEER_EVENT_RECORD_CHANGE_DATA {}
1460 impl ::core::clone::Clone for PEER_EVENT_RECORD_CHANGE_DATA {
1461 fn clone(&self) -> Self {
1462 *self
1463 }
1464 }
1465 #[repr(C)]
1466 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
1467 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1468 pub struct PEER_EVENT_REQUEST_STATUS_CHANGED_DATA {
1469 pub pEndpoint: *mut PEER_ENDPOINT,
1470 pub hrChange: ::windows_sys::core::HRESULT,
1471 }
1472 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1473 impl ::core::marker::Copy for PEER_EVENT_REQUEST_STATUS_CHANGED_DATA {}
1474 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1475 impl ::core::clone::Clone for PEER_EVENT_REQUEST_STATUS_CHANGED_DATA {
1476 fn clone(&self) -> Self {
1477 *self
1478 }
1479 }
1480 #[repr(C)]
1481 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1482 pub struct PEER_EVENT_SYNCHRONIZED_DATA {
1483 pub dwSize: u32,
1484 pub recordType: ::windows_sys::core::GUID,
1485 }
1486 impl ::core::marker::Copy for PEER_EVENT_SYNCHRONIZED_DATA {}
1487 impl ::core::clone::Clone for PEER_EVENT_SYNCHRONIZED_DATA {
1488 fn clone(&self) -> Self {
1489 *self
1490 }
1491 }
1492 #[repr(C)]
1493 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
1494 #[cfg(feature = "Win32_Foundation")]
1495 pub struct PEER_EVENT_WATCHLIST_CHANGED_DATA {
1496 pub pContact: *mut PEER_CONTACT,
1497 pub changeType: PEER_CHANGE_TYPE,
1498 }
1499 #[cfg(feature = "Win32_Foundation")]
1500 impl ::core::marker::Copy for PEER_EVENT_WATCHLIST_CHANGED_DATA {}
1501 #[cfg(feature = "Win32_Foundation")]
1502 impl ::core::clone::Clone for PEER_EVENT_WATCHLIST_CHANGED_DATA {
1503 fn clone(&self) -> Self {
1504 *self
1505 }
1506 }
1507 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1508 pub const PEER_E_ALREADY_EXISTS: ::windows_sys::core::HRESULT = -2147024713i32;
1509 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1510 pub const PEER_E_CLIENT_INVALID_COMPARTMENT_ID: ::windows_sys::core::HRESULT = -2147013390i32;
1511 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1512 pub const PEER_E_CLOUD_DISABLED: ::windows_sys::core::HRESULT = -2147013394i32;
1513 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1514 pub const PEER_E_CLOUD_IS_DEAD: ::windows_sys::core::HRESULT = -2147013387i32;
1515 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1516 pub const PEER_E_CLOUD_IS_SEARCH_ONLY: ::windows_sys::core::HRESULT = -2147013391i32;
1517 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1518 pub const PEER_E_CLOUD_NOT_FOUND: ::windows_sys::core::HRESULT = -2147013395i32;
1519 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1520 pub const PEER_E_DISK_FULL: ::windows_sys::core::HRESULT = -2147024784i32;
1521 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1522 pub const PEER_E_DUPLICATE_PEER_NAME: ::windows_sys::core::HRESULT = -2147013388i32;
1523 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1524 pub const PEER_E_INVALID_IDENTITY: ::windows_sys::core::HRESULT = -2147013393i32;
1525 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1526 pub const PEER_E_NOT_FOUND: ::windows_sys::core::HRESULT = -2147023728i32;
1527 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1528 pub const PEER_E_TOO_MUCH_LOAD: ::windows_sys::core::HRESULT = -2147013392i32;
1529 #[repr(C)]
1530 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
1531 #[cfg(feature = "Win32_Foundation")]
1532 pub struct PEER_GRAPH_EVENT_DATA {
1533 pub eventType: PEER_GRAPH_EVENT_TYPE,
1534 pub Anonymous: PEER_GRAPH_EVENT_DATA_0,
1535 }
1536 #[cfg(feature = "Win32_Foundation")]
1537 impl ::core::marker::Copy for PEER_GRAPH_EVENT_DATA {}
1538 #[cfg(feature = "Win32_Foundation")]
1539 impl ::core::clone::Clone for PEER_GRAPH_EVENT_DATA {
1540 fn clone(&self) -> Self {
1541 *self
1542 }
1543 }
1544 #[repr(C)]
1545 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
1546 #[cfg(feature = "Win32_Foundation")]
1547 pub union PEER_GRAPH_EVENT_DATA_0 {
1548 pub dwStatus: PEER_GRAPH_STATUS_FLAGS,
1549 pub incomingData: PEER_EVENT_INCOMING_DATA,
1550 pub recordChangeData: PEER_EVENT_RECORD_CHANGE_DATA,
1551 pub connectionChangeData: PEER_EVENT_CONNECTION_CHANGE_DATA,
1552 pub nodeChangeData: PEER_EVENT_NODE_CHANGE_DATA,
1553 pub synchronizedData: PEER_EVENT_SYNCHRONIZED_DATA,
1554 }
1555 #[cfg(feature = "Win32_Foundation")]
1556 impl ::core::marker::Copy for PEER_GRAPH_EVENT_DATA_0 {}
1557 #[cfg(feature = "Win32_Foundation")]
1558 impl ::core::clone::Clone for PEER_GRAPH_EVENT_DATA_0 {
1559 fn clone(&self) -> Self {
1560 *self
1561 }
1562 }
1563 #[repr(C)]
1564 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1565 pub struct PEER_GRAPH_EVENT_REGISTRATION {
1566 pub eventType: PEER_GRAPH_EVENT_TYPE,
1567 pub pType: *mut ::windows_sys::core::GUID,
1568 }
1569 impl ::core::marker::Copy for PEER_GRAPH_EVENT_REGISTRATION {}
1570 impl ::core::clone::Clone for PEER_GRAPH_EVENT_REGISTRATION {
1571 fn clone(&self) -> Self {
1572 *self
1573 }
1574 }
1575 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1576 pub type PEER_GRAPH_EVENT_TYPE = i32;
1577 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1578 pub const PEER_GRAPH_EVENT_STATUS_CHANGED: PEER_GRAPH_EVENT_TYPE = 1i32;
1579 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1580 pub const PEER_GRAPH_EVENT_PROPERTY_CHANGED: PEER_GRAPH_EVENT_TYPE = 2i32;
1581 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1582 pub const PEER_GRAPH_EVENT_RECORD_CHANGED: PEER_GRAPH_EVENT_TYPE = 3i32;
1583 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1584 pub const PEER_GRAPH_EVENT_DIRECT_CONNECTION: PEER_GRAPH_EVENT_TYPE = 4i32;
1585 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1586 pub const PEER_GRAPH_EVENT_NEIGHBOR_CONNECTION: PEER_GRAPH_EVENT_TYPE = 5i32;
1587 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1588 pub const PEER_GRAPH_EVENT_INCOMING_DATA: PEER_GRAPH_EVENT_TYPE = 6i32;
1589 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1590 pub const PEER_GRAPH_EVENT_CONNECTION_REQUIRED: PEER_GRAPH_EVENT_TYPE = 7i32;
1591 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1592 pub const PEER_GRAPH_EVENT_NODE_CHANGED: PEER_GRAPH_EVENT_TYPE = 8i32;
1593 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1594 pub const PEER_GRAPH_EVENT_SYNCHRONIZED: PEER_GRAPH_EVENT_TYPE = 9i32;
1595 #[repr(C)]
1596 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
1597 #[cfg(feature = "Win32_Foundation")]
1598 pub struct PEER_GRAPH_PROPERTIES {
1599 pub dwSize: u32,
1600 pub dwFlags: u32,
1601 pub dwScope: u32,
1602 pub dwMaxRecordSize: u32,
1603 pub pwzGraphId: super::super::Foundation::PWSTR,
1604 pub pwzCreatorId: super::super::Foundation::PWSTR,
1605 pub pwzFriendlyName: super::super::Foundation::PWSTR,
1606 pub pwzComment: super::super::Foundation::PWSTR,
1607 pub ulPresenceLifetime: u32,
1608 pub cPresenceMax: u32,
1609 }
1610 #[cfg(feature = "Win32_Foundation")]
1611 impl ::core::marker::Copy for PEER_GRAPH_PROPERTIES {}
1612 #[cfg(feature = "Win32_Foundation")]
1613 impl ::core::clone::Clone for PEER_GRAPH_PROPERTIES {
1614 fn clone(&self) -> Self {
1615 *self
1616 }
1617 }
1618 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1619 pub type PEER_GRAPH_PROPERTY_FLAGS = i32;
1620 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1621 pub const PEER_GRAPH_PROPERTY_HEARTBEATS: PEER_GRAPH_PROPERTY_FLAGS = 1i32;
1622 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1623 pub const PEER_GRAPH_PROPERTY_DEFER_EXPIRATION: PEER_GRAPH_PROPERTY_FLAGS = 2i32;
1624 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1625 pub type PEER_GRAPH_SCOPE = i32;
1626 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1627 pub const PEER_GRAPH_SCOPE_ANY: PEER_GRAPH_SCOPE = 0i32;
1628 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1629 pub const PEER_GRAPH_SCOPE_GLOBAL: PEER_GRAPH_SCOPE = 1i32;
1630 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1631 pub const PEER_GRAPH_SCOPE_SITELOCAL: PEER_GRAPH_SCOPE = 2i32;
1632 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1633 pub const PEER_GRAPH_SCOPE_LINKLOCAL: PEER_GRAPH_SCOPE = 3i32;
1634 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1635 pub const PEER_GRAPH_SCOPE_LOOPBACK: PEER_GRAPH_SCOPE = 4i32;
1636 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1637 pub type PEER_GRAPH_STATUS_FLAGS = i32;
1638 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1639 pub const PEER_GRAPH_STATUS_LISTENING: PEER_GRAPH_STATUS_FLAGS = 1i32;
1640 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1641 pub const PEER_GRAPH_STATUS_HAS_CONNECTIONS: PEER_GRAPH_STATUS_FLAGS = 2i32;
1642 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1643 pub const PEER_GRAPH_STATUS_SYNCHRONIZED: PEER_GRAPH_STATUS_FLAGS = 4i32;
1644 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1645 pub type PEER_GROUP_AUTHENTICATION_SCHEME = i32;
1646 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1647 pub const PEER_GROUP_GMC_AUTHENTICATION: PEER_GROUP_AUTHENTICATION_SCHEME = 1i32;
1648 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1649 pub const PEER_GROUP_PASSWORD_AUTHENTICATION: PEER_GROUP_AUTHENTICATION_SCHEME = 2i32;
1650 #[repr(C)]
1651 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
1652 #[cfg(feature = "Win32_Foundation")]
1653 pub struct PEER_GROUP_EVENT_DATA {
1654 pub eventType: PEER_GROUP_EVENT_TYPE,
1655 pub Anonymous: PEER_GROUP_EVENT_DATA_0,
1656 }
1657 #[cfg(feature = "Win32_Foundation")]
1658 impl ::core::marker::Copy for PEER_GROUP_EVENT_DATA {}
1659 #[cfg(feature = "Win32_Foundation")]
1660 impl ::core::clone::Clone for PEER_GROUP_EVENT_DATA {
1661 fn clone(&self) -> Self {
1662 *self
1663 }
1664 }
1665 #[repr(C)]
1666 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
1667 #[cfg(feature = "Win32_Foundation")]
1668 pub union PEER_GROUP_EVENT_DATA_0 {
1669 pub dwStatus: PEER_GROUP_STATUS,
1670 pub incomingData: PEER_EVENT_INCOMING_DATA,
1671 pub recordChangeData: PEER_EVENT_RECORD_CHANGE_DATA,
1672 pub connectionChangeData: PEER_EVENT_CONNECTION_CHANGE_DATA,
1673 pub memberChangeData: PEER_EVENT_MEMBER_CHANGE_DATA,
1674 pub hrConnectionFailedReason: ::windows_sys::core::HRESULT,
1675 }
1676 #[cfg(feature = "Win32_Foundation")]
1677 impl ::core::marker::Copy for PEER_GROUP_EVENT_DATA_0 {}
1678 #[cfg(feature = "Win32_Foundation")]
1679 impl ::core::clone::Clone for PEER_GROUP_EVENT_DATA_0 {
1680 fn clone(&self) -> Self {
1681 *self
1682 }
1683 }
1684 #[repr(C)]
1685 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1686 pub struct PEER_GROUP_EVENT_REGISTRATION {
1687 pub eventType: PEER_GROUP_EVENT_TYPE,
1688 pub pType: *mut ::windows_sys::core::GUID,
1689 }
1690 impl ::core::marker::Copy for PEER_GROUP_EVENT_REGISTRATION {}
1691 impl ::core::clone::Clone for PEER_GROUP_EVENT_REGISTRATION {
1692 fn clone(&self) -> Self {
1693 *self
1694 }
1695 }
1696 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1697 pub type PEER_GROUP_EVENT_TYPE = i32;
1698 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1699 pub const PEER_GROUP_EVENT_STATUS_CHANGED: PEER_GROUP_EVENT_TYPE = 1i32;
1700 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1701 pub const PEER_GROUP_EVENT_PROPERTY_CHANGED: PEER_GROUP_EVENT_TYPE = 2i32;
1702 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1703 pub const PEER_GROUP_EVENT_RECORD_CHANGED: PEER_GROUP_EVENT_TYPE = 3i32;
1704 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1705 pub const PEER_GROUP_EVENT_DIRECT_CONNECTION: PEER_GROUP_EVENT_TYPE = 4i32;
1706 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1707 pub const PEER_GROUP_EVENT_NEIGHBOR_CONNECTION: PEER_GROUP_EVENT_TYPE = 5i32;
1708 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1709 pub const PEER_GROUP_EVENT_INCOMING_DATA: PEER_GROUP_EVENT_TYPE = 6i32;
1710 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1711 pub const PEER_GROUP_EVENT_MEMBER_CHANGED: PEER_GROUP_EVENT_TYPE = 8i32;
1712 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1713 pub const PEER_GROUP_EVENT_CONNECTION_FAILED: PEER_GROUP_EVENT_TYPE = 10i32;
1714 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1715 pub const PEER_GROUP_EVENT_AUTHENTICATION_FAILED: PEER_GROUP_EVENT_TYPE = 11i32;
1716 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1717 pub type PEER_GROUP_ISSUE_CREDENTIAL_FLAGS = i32;
1718 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1719 pub const PEER_GROUP_STORE_CREDENTIALS: PEER_GROUP_ISSUE_CREDENTIAL_FLAGS = 1i32;
1720 #[repr(C)]
1721 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
1722 #[cfg(feature = "Win32_Foundation")]
1723 pub struct PEER_GROUP_PROPERTIES {
1724 pub dwSize: u32,
1725 pub dwFlags: u32,
1726 pub pwzCloud: super::super::Foundation::PWSTR,
1727 pub pwzClassifier: super::super::Foundation::PWSTR,
1728 pub pwzGroupPeerName: super::super::Foundation::PWSTR,
1729 pub pwzCreatorPeerName: super::super::Foundation::PWSTR,
1730 pub pwzFriendlyName: super::super::Foundation::PWSTR,
1731 pub pwzComment: super::super::Foundation::PWSTR,
1732 pub ulMemberDataLifetime: u32,
1733 pub ulPresenceLifetime: u32,
1734 pub dwAuthenticationSchemes: u32,
1735 pub pwzGroupPassword: super::super::Foundation::PWSTR,
1736 pub groupPasswordRole: ::windows_sys::core::GUID,
1737 }
1738 #[cfg(feature = "Win32_Foundation")]
1739 impl ::core::marker::Copy for PEER_GROUP_PROPERTIES {}
1740 #[cfg(feature = "Win32_Foundation")]
1741 impl ::core::clone::Clone for PEER_GROUP_PROPERTIES {
1742 fn clone(&self) -> Self {
1743 *self
1744 }
1745 }
1746 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1747 pub type PEER_GROUP_PROPERTY_FLAGS = i32;
1748 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1749 pub const PEER_MEMBER_DATA_OPTIONAL: PEER_GROUP_PROPERTY_FLAGS = 1i32;
1750 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1751 pub const PEER_DISABLE_PRESENCE: PEER_GROUP_PROPERTY_FLAGS = 2i32;
1752 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1753 pub const PEER_DEFER_EXPIRATION: PEER_GROUP_PROPERTY_FLAGS = 4i32;
1754 pub const PEER_GROUP_ROLE_ADMIN: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 70807847, data2: 43606, data3: 17674, data4: [140, 229, 79, 86, 92, 103, 144, 244] };
1755 pub const PEER_GROUP_ROLE_INVITING_MEMBER: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 1131478409, data2: 56344, data3: 19707, data4: [141, 191, 152, 83, 168, 169, 249, 5] };
1756 pub const PEER_GROUP_ROLE_MEMBER: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 4046308551, data2: 2135, data3: 19616, data4: [147, 252, 177, 187, 25, 163, 216, 194] };
1757 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1758 pub type PEER_GROUP_STATUS = i32;
1759 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1760 pub const PEER_GROUP_STATUS_LISTENING: PEER_GROUP_STATUS = 1i32;
1761 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1762 pub const PEER_GROUP_STATUS_HAS_CONNECTIONS: PEER_GROUP_STATUS = 2i32;
1763 #[repr(C)]
1764 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
1765 #[cfg(feature = "Win32_Foundation")]
1766 pub struct PEER_INVITATION {
1767 pub applicationId: ::windows_sys::core::GUID,
1768 pub applicationData: PEER_DATA,
1769 pub pwzMessage: super::super::Foundation::PWSTR,
1770 }
1771 #[cfg(feature = "Win32_Foundation")]
1772 impl ::core::marker::Copy for PEER_INVITATION {}
1773 #[cfg(feature = "Win32_Foundation")]
1774 impl ::core::clone::Clone for PEER_INVITATION {
1775 fn clone(&self) -> Self {
1776 *self
1777 }
1778 }
1779 #[repr(C)]
1780 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Security_Cryptography'*"]
1781 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1782 pub struct PEER_INVITATION_INFO {
1783 pub dwSize: u32,
1784 pub dwFlags: u32,
1785 pub pwzCloudName: super::super::Foundation::PWSTR,
1786 pub dwScope: u32,
1787 pub dwCloudFlags: u32,
1788 pub pwzGroupPeerName: super::super::Foundation::PWSTR,
1789 pub pwzIssuerPeerName: super::super::Foundation::PWSTR,
1790 pub pwzSubjectPeerName: super::super::Foundation::PWSTR,
1791 pub pwzGroupFriendlyName: super::super::Foundation::PWSTR,
1792 pub pwzIssuerFriendlyName: super::super::Foundation::PWSTR,
1793 pub pwzSubjectFriendlyName: super::super::Foundation::PWSTR,
1794 pub ftValidityStart: super::super::Foundation::FILETIME,
1795 pub ftValidityEnd: super::super::Foundation::FILETIME,
1796 pub cRoles: u32,
1797 pub pRoles: *mut ::windows_sys::core::GUID,
1798 pub cClassifiers: u32,
1799 pub ppwzClassifiers: *mut super::super::Foundation::PWSTR,
1800 pub pSubjectPublicKey: *mut super::super::Security::Cryptography::CERT_PUBLIC_KEY_INFO,
1801 pub authScheme: PEER_GROUP_AUTHENTICATION_SCHEME,
1802 }
1803 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1804 impl ::core::marker::Copy for PEER_INVITATION_INFO {}
1805 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1806 impl ::core::clone::Clone for PEER_INVITATION_INFO {
1807 fn clone(&self) -> Self {
1808 *self
1809 }
1810 }
1811 #[repr(C)]
1812 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
1813 #[cfg(feature = "Win32_Foundation")]
1814 pub struct PEER_INVITATION_RESPONSE {
1815 pub action: PEER_INVITATION_RESPONSE_TYPE,
1816 pub pwzMessage: super::super::Foundation::PWSTR,
1817 pub hrExtendedInfo: ::windows_sys::core::HRESULT,
1818 }
1819 #[cfg(feature = "Win32_Foundation")]
1820 impl ::core::marker::Copy for PEER_INVITATION_RESPONSE {}
1821 #[cfg(feature = "Win32_Foundation")]
1822 impl ::core::clone::Clone for PEER_INVITATION_RESPONSE {
1823 fn clone(&self) -> Self {
1824 *self
1825 }
1826 }
1827 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1828 pub type PEER_INVITATION_RESPONSE_TYPE = i32;
1829 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1830 pub const PEER_INVITATION_RESPONSE_DECLINED: PEER_INVITATION_RESPONSE_TYPE = 0i32;
1831 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1832 pub const PEER_INVITATION_RESPONSE_ACCEPTED: PEER_INVITATION_RESPONSE_TYPE = 1i32;
1833 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1834 pub const PEER_INVITATION_RESPONSE_EXPIRED: PEER_INVITATION_RESPONSE_TYPE = 2i32;
1835 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1836 pub const PEER_INVITATION_RESPONSE_ERROR: PEER_INVITATION_RESPONSE_TYPE = 3i32;
1837 #[repr(C)]
1838 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock', 'Win32_Security_Cryptography'*"]
1839 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock", feature = "Win32_Security_Cryptography"))]
1840 pub struct PEER_MEMBER {
1841 pub dwSize: u32,
1842 pub dwFlags: u32,
1843 pub pwzIdentity: super::super::Foundation::PWSTR,
1844 pub pwzAttributes: super::super::Foundation::PWSTR,
1845 pub ullNodeId: u64,
1846 pub cAddresses: u32,
1847 pub pAddresses: *mut PEER_ADDRESS,
1848 pub pCredentialInfo: *mut PEER_CREDENTIAL_INFO,
1849 }
1850 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock", feature = "Win32_Security_Cryptography"))]
1851 impl ::core::marker::Copy for PEER_MEMBER {}
1852 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock", feature = "Win32_Security_Cryptography"))]
1853 impl ::core::clone::Clone for PEER_MEMBER {
1854 fn clone(&self) -> Self {
1855 *self
1856 }
1857 }
1858 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1859 pub type PEER_MEMBER_CHANGE_TYPE = i32;
1860 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1861 pub const PEER_MEMBER_CONNECTED: PEER_MEMBER_CHANGE_TYPE = 1i32;
1862 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1863 pub const PEER_MEMBER_DISCONNECTED: PEER_MEMBER_CHANGE_TYPE = 2i32;
1864 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1865 pub const PEER_MEMBER_UPDATED: PEER_MEMBER_CHANGE_TYPE = 3i32;
1866 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1867 pub const PEER_MEMBER_JOINED: PEER_MEMBER_CHANGE_TYPE = 4i32;
1868 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1869 pub const PEER_MEMBER_LEFT: PEER_MEMBER_CHANGE_TYPE = 5i32;
1870 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1871 pub type PEER_MEMBER_FLAGS = i32;
1872 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1873 pub const PEER_MEMBER_PRESENT: PEER_MEMBER_FLAGS = 1i32;
1874 #[repr(C)]
1875 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
1876 #[cfg(feature = "Win32_Foundation")]
1877 pub struct PEER_NAME_PAIR {
1878 pub dwSize: u32,
1879 pub pwzPeerName: super::super::Foundation::PWSTR,
1880 pub pwzFriendlyName: super::super::Foundation::PWSTR,
1881 }
1882 #[cfg(feature = "Win32_Foundation")]
1883 impl ::core::marker::Copy for PEER_NAME_PAIR {}
1884 #[cfg(feature = "Win32_Foundation")]
1885 impl ::core::clone::Clone for PEER_NAME_PAIR {
1886 fn clone(&self) -> Self {
1887 *self
1888 }
1889 }
1890 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1891 pub type PEER_NODE_CHANGE_TYPE = i32;
1892 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1893 pub const PEER_NODE_CHANGE_CONNECTED: PEER_NODE_CHANGE_TYPE = 1i32;
1894 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1895 pub const PEER_NODE_CHANGE_DISCONNECTED: PEER_NODE_CHANGE_TYPE = 2i32;
1896 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1897 pub const PEER_NODE_CHANGE_UPDATED: PEER_NODE_CHANGE_TYPE = 3i32;
1898 #[repr(C)]
1899 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
1900 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1901 pub struct PEER_NODE_INFO {
1902 pub dwSize: u32,
1903 pub ullNodeId: u64,
1904 pub pwzPeerId: super::super::Foundation::PWSTR,
1905 pub cAddresses: u32,
1906 pub pAddresses: *mut PEER_ADDRESS,
1907 pub pwzAttributes: super::super::Foundation::PWSTR,
1908 }
1909 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1910 impl ::core::marker::Copy for PEER_NODE_INFO {}
1911 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1912 impl ::core::clone::Clone for PEER_NODE_INFO {
1913 fn clone(&self) -> Self {
1914 *self
1915 }
1916 }
1917 #[repr(C)]
1918 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1919 pub struct PEER_OBJECT {
1920 pub id: ::windows_sys::core::GUID,
1921 pub data: PEER_DATA,
1922 pub dwPublicationScope: u32,
1923 }
1924 impl ::core::marker::Copy for PEER_OBJECT {}
1925 impl ::core::clone::Clone for PEER_OBJECT {
1926 fn clone(&self) -> Self {
1927 *self
1928 }
1929 }
1930 #[repr(C)]
1931 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
1932 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1933 pub struct PEER_PEOPLE_NEAR_ME {
1934 pub pwzNickName: super::super::Foundation::PWSTR,
1935 pub endpoint: PEER_ENDPOINT,
1936 pub id: ::windows_sys::core::GUID,
1937 }
1938 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1939 impl ::core::marker::Copy for PEER_PEOPLE_NEAR_ME {}
1940 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1941 impl ::core::clone::Clone for PEER_PEOPLE_NEAR_ME {
1942 fn clone(&self) -> Self {
1943 *self
1944 }
1945 }
1946 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
1947 pub const PEER_PNRP_ALL_LINK_CLOUDS: &'static str = "PEER_PNRP_ALL_LINKS";
1948 #[repr(C)]
1949 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
1950 #[cfg(feature = "Win32_Foundation")]
1951 pub struct PEER_PNRP_CLOUD_INFO {
1952 pub pwzCloudName: super::super::Foundation::PWSTR,
1953 pub dwScope: PNRP_SCOPE,
1954 pub dwScopeId: u32,
1955 }
1956 #[cfg(feature = "Win32_Foundation")]
1957 impl ::core::marker::Copy for PEER_PNRP_CLOUD_INFO {}
1958 #[cfg(feature = "Win32_Foundation")]
1959 impl ::core::clone::Clone for PEER_PNRP_CLOUD_INFO {
1960 fn clone(&self) -> Self {
1961 *self
1962 }
1963 }
1964 #[repr(C)]
1965 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
1966 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1967 pub struct PEER_PNRP_ENDPOINT_INFO {
1968 pub pwzPeerName: super::super::Foundation::PWSTR,
1969 pub cAddresses: u32,
1970 pub ppAddresses: *mut *mut super::super::Networking::WinSock::SOCKADDR,
1971 pub pwzComment: super::super::Foundation::PWSTR,
1972 pub payload: PEER_DATA,
1973 }
1974 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1975 impl ::core::marker::Copy for PEER_PNRP_ENDPOINT_INFO {}
1976 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1977 impl ::core::clone::Clone for PEER_PNRP_ENDPOINT_INFO {
1978 fn clone(&self) -> Self {
1979 *self
1980 }
1981 }
1982 #[repr(C)]
1983 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
1984 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1985 pub struct PEER_PNRP_REGISTRATION_INFO {
1986 pub pwzCloudName: super::super::Foundation::PWSTR,
1987 pub pwzPublishingIdentity: super::super::Foundation::PWSTR,
1988 pub cAddresses: u32,
1989 pub ppAddresses: *mut *mut super::super::Networking::WinSock::SOCKADDR,
1990 pub wPort: u16,
1991 pub pwzComment: super::super::Foundation::PWSTR,
1992 pub payload: PEER_DATA,
1993 }
1994 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1995 impl ::core::marker::Copy for PEER_PNRP_REGISTRATION_INFO {}
1996 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
1997 impl ::core::clone::Clone for PEER_PNRP_REGISTRATION_INFO {
1998 fn clone(&self) -> Self {
1999 *self
2000 }
2001 }
2002 #[repr(C)]
2003 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
2004 #[cfg(feature = "Win32_Foundation")]
2005 pub struct PEER_PRESENCE_INFO {
2006 pub status: PEER_PRESENCE_STATUS,
2007 pub pwzDescriptiveText: super::super::Foundation::PWSTR,
2008 }
2009 #[cfg(feature = "Win32_Foundation")]
2010 impl ::core::marker::Copy for PEER_PRESENCE_INFO {}
2011 #[cfg(feature = "Win32_Foundation")]
2012 impl ::core::clone::Clone for PEER_PRESENCE_INFO {
2013 fn clone(&self) -> Self {
2014 *self
2015 }
2016 }
2017 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2018 pub type PEER_PRESENCE_STATUS = i32;
2019 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2020 pub const PEER_PRESENCE_OFFLINE: PEER_PRESENCE_STATUS = 0i32;
2021 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2022 pub const PEER_PRESENCE_OUT_TO_LUNCH: PEER_PRESENCE_STATUS = 1i32;
2023 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2024 pub const PEER_PRESENCE_AWAY: PEER_PRESENCE_STATUS = 2i32;
2025 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2026 pub const PEER_PRESENCE_BE_RIGHT_BACK: PEER_PRESENCE_STATUS = 3i32;
2027 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2028 pub const PEER_PRESENCE_IDLE: PEER_PRESENCE_STATUS = 4i32;
2029 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2030 pub const PEER_PRESENCE_BUSY: PEER_PRESENCE_STATUS = 5i32;
2031 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2032 pub const PEER_PRESENCE_ON_THE_PHONE: PEER_PRESENCE_STATUS = 6i32;
2033 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2034 pub const PEER_PRESENCE_ONLINE: PEER_PRESENCE_STATUS = 7i32;
2035 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2036 pub type PEER_PUBLICATION_SCOPE = i32;
2037 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2038 pub const PEER_PUBLICATION_SCOPE_NONE: PEER_PUBLICATION_SCOPE = 0i32;
2039 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2040 pub const PEER_PUBLICATION_SCOPE_NEAR_ME: PEER_PUBLICATION_SCOPE = 1i32;
2041 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2042 pub const PEER_PUBLICATION_SCOPE_INTERNET: PEER_PUBLICATION_SCOPE = 2i32;
2043 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2044 pub const PEER_PUBLICATION_SCOPE_ALL: PEER_PUBLICATION_SCOPE = 3i32;
2045 #[repr(C)]
2046 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
2047 #[cfg(feature = "Win32_Foundation")]
2048 pub struct PEER_RECORD {
2049 pub dwSize: u32,
2050 pub r#type: ::windows_sys::core::GUID,
2051 pub id: ::windows_sys::core::GUID,
2052 pub dwVersion: u32,
2053 pub dwFlags: u32,
2054 pub pwzCreatorId: super::super::Foundation::PWSTR,
2055 pub pwzModifiedById: super::super::Foundation::PWSTR,
2056 pub pwzAttributes: super::super::Foundation::PWSTR,
2057 pub ftCreation: super::super::Foundation::FILETIME,
2058 pub ftExpiration: super::super::Foundation::FILETIME,
2059 pub ftLastModified: super::super::Foundation::FILETIME,
2060 pub securityData: PEER_DATA,
2061 pub data: PEER_DATA,
2062 }
2063 #[cfg(feature = "Win32_Foundation")]
2064 impl ::core::marker::Copy for PEER_RECORD {}
2065 #[cfg(feature = "Win32_Foundation")]
2066 impl ::core::clone::Clone for PEER_RECORD {
2067 fn clone(&self) -> Self {
2068 *self
2069 }
2070 }
2071 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2072 pub type PEER_RECORD_CHANGE_TYPE = i32;
2073 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2074 pub const PEER_RECORD_ADDED: PEER_RECORD_CHANGE_TYPE = 1i32;
2075 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2076 pub const PEER_RECORD_UPDATED: PEER_RECORD_CHANGE_TYPE = 2i32;
2077 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2078 pub const PEER_RECORD_DELETED: PEER_RECORD_CHANGE_TYPE = 3i32;
2079 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2080 pub const PEER_RECORD_EXPIRED: PEER_RECORD_CHANGE_TYPE = 4i32;
2081 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2082 pub type PEER_RECORD_FLAGS = i32;
2083 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2084 pub const PEER_RECORD_FLAG_AUTOREFRESH: PEER_RECORD_FLAGS = 1i32;
2085 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2086 pub const PEER_RECORD_FLAG_DELETED: PEER_RECORD_FLAGS = 2i32;
2087 #[repr(C)]
2088 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
2089 #[cfg(feature = "Win32_Foundation")]
2090 pub struct PEER_SECURITY_INTERFACE {
2091 pub dwSize: u32,
2092 pub pwzSspFilename: super::super::Foundation::PWSTR,
2093 pub pwzPackageName: super::super::Foundation::PWSTR,
2094 pub cbSecurityInfo: u32,
2095 pub pbSecurityInfo: *mut u8,
2096 pub pvContext: *mut ::core::ffi::c_void,
2097 pub pfnValidateRecord: PFNPEER_VALIDATE_RECORD,
2098 pub pfnSecureRecord: PFNPEER_SECURE_RECORD,
2099 pub pfnFreeSecurityData: PFNPEER_FREE_SECURITY_DATA,
2100 pub pfnAuthFailed: PFNPEER_ON_PASSWORD_AUTH_FAILED,
2101 }
2102 #[cfg(feature = "Win32_Foundation")]
2103 impl ::core::marker::Copy for PEER_SECURITY_INTERFACE {}
2104 #[cfg(feature = "Win32_Foundation")]
2105 impl ::core::clone::Clone for PEER_SECURITY_INTERFACE {
2106 fn clone(&self) -> Self {
2107 *self
2108 }
2109 }
2110 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2111 pub type PEER_SIGNIN_FLAGS = i32;
2112 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2113 pub const PEER_SIGNIN_NONE: PEER_SIGNIN_FLAGS = 0i32;
2114 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2115 pub const PEER_SIGNIN_NEAR_ME: PEER_SIGNIN_FLAGS = 1i32;
2116 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2117 pub const PEER_SIGNIN_INTERNET: PEER_SIGNIN_FLAGS = 2i32;
2118 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2119 pub const PEER_SIGNIN_ALL: PEER_SIGNIN_FLAGS = 3i32;
2120 #[repr(C)]
2121 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2122 pub struct PEER_VERSION_DATA {
2123 pub wVersion: u16,
2124 pub wHighestVersion: u16,
2125 }
2126 impl ::core::marker::Copy for PEER_VERSION_DATA {}
2127 impl ::core::clone::Clone for PEER_VERSION_DATA {
2128 fn clone(&self) -> Self {
2129 *self
2130 }
2131 }
2132 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2133 pub type PEER_WATCH_PERMISSION = i32;
2134 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2135 pub const PEER_WATCH_BLOCKED: PEER_WATCH_PERMISSION = 0i32;
2136 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2137 pub const PEER_WATCH_ALLOWED: PEER_WATCH_PERMISSION = 1i32;
2138 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2139 pub type PFNPEER_FREE_SECURITY_DATA = ::core::option::Option<unsafe extern "system" fn(hgraph: *const ::core::ffi::c_void, pvcontext: *const ::core::ffi::c_void, psecuritydata: *const PEER_DATA) -> ::windows_sys::core::HRESULT>;
2140 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2141 pub type PFNPEER_ON_PASSWORD_AUTH_FAILED = ::core::option::Option<unsafe extern "system" fn(hgraph: *const ::core::ffi::c_void, pvcontext: *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT>;
2142 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
2143 #[cfg(feature = "Win32_Foundation")]
2144 pub type PFNPEER_SECURE_RECORD = ::core::option::Option<unsafe extern "system" fn(hgraph: *const ::core::ffi::c_void, pvcontext: *const ::core::ffi::c_void, precord: *const PEER_RECORD, changetype: PEER_RECORD_CHANGE_TYPE, ppsecuritydata: *mut *mut PEER_DATA) -> ::windows_sys::core::HRESULT>;
2145 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation'*"]
2146 #[cfg(feature = "Win32_Foundation")]
2147 pub type PFNPEER_VALIDATE_RECORD = ::core::option::Option<unsafe extern "system" fn(hgraph: *const ::core::ffi::c_void, pvcontext: *const ::core::ffi::c_void, precord: *const PEER_RECORD, changetype: PEER_RECORD_CHANGE_TYPE) -> ::windows_sys::core::HRESULT>;
2148 #[repr(C)]
2149 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2150 pub struct PNRPCLOUDINFO {
2151 pub dwSize: u32,
2152 pub Cloud: PNRP_CLOUD_ID,
2153 pub enCloudState: PNRP_CLOUD_STATE,
2154 pub enCloudFlags: PNRP_CLOUD_FLAGS,
2155 }
2156 impl ::core::marker::Copy for PNRPCLOUDINFO {}
2157 impl ::core::clone::Clone for PNRPCLOUDINFO {
2158 fn clone(&self) -> Self {
2159 *self
2160 }
2161 }
2162 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2163 pub const PNRPINFO_HINT: u32 = 1u32;
2164 #[repr(C)]
2165 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock'*"]
2166 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
2167 pub struct PNRPINFO_V1 {
2168 pub dwSize: u32,
2169 pub lpwszIdentity: super::super::Foundation::PWSTR,
2170 pub nMaxResolve: u32,
2171 pub dwTimeout: u32,
2172 pub dwLifetime: u32,
2173 pub enResolveCriteria: PNRP_RESOLVE_CRITERIA,
2174 pub dwFlags: u32,
2175 pub saHint: super::super::Networking::WinSock::SOCKET_ADDRESS,
2176 pub enNameState: PNRP_REGISTERED_ID_STATE,
2177 }
2178 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
2179 impl ::core::marker::Copy for PNRPINFO_V1 {}
2180 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))]
2181 impl ::core::clone::Clone for PNRPINFO_V1 {
2182 fn clone(&self) -> Self {
2183 *self
2184 }
2185 }
2186 #[repr(C)]
2187 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock', 'Win32_System_Com'*"]
2188 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock", feature = "Win32_System_Com"))]
2189 pub struct PNRPINFO_V2 {
2190 pub dwSize: u32,
2191 pub lpwszIdentity: super::super::Foundation::PWSTR,
2192 pub nMaxResolve: u32,
2193 pub dwTimeout: u32,
2194 pub dwLifetime: u32,
2195 pub enResolveCriteria: PNRP_RESOLVE_CRITERIA,
2196 pub dwFlags: u32,
2197 pub saHint: super::super::Networking::WinSock::SOCKET_ADDRESS,
2198 pub enNameState: PNRP_REGISTERED_ID_STATE,
2199 pub enExtendedPayloadType: PNRP_EXTENDED_PAYLOAD_TYPE,
2200 pub Anonymous: PNRPINFO_V2_0,
2201 }
2202 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock", feature = "Win32_System_Com"))]
2203 impl ::core::marker::Copy for PNRPINFO_V2 {}
2204 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock", feature = "Win32_System_Com"))]
2205 impl ::core::clone::Clone for PNRPINFO_V2 {
2206 fn clone(&self) -> Self {
2207 *self
2208 }
2209 }
2210 #[repr(C)]
2211 #[doc = "*Required features: 'Win32_NetworkManagement_P2P', 'Win32_Foundation', 'Win32_Networking_WinSock', 'Win32_System_Com'*"]
2212 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock", feature = "Win32_System_Com"))]
2213 pub union PNRPINFO_V2_0 {
2214 pub blobPayload: super::super::System::Com::BLOB,
2215 pub pwszPayload: super::super::Foundation::PWSTR,
2216 }
2217 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock", feature = "Win32_System_Com"))]
2218 impl ::core::marker::Copy for PNRPINFO_V2_0 {}
2219 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock", feature = "Win32_System_Com"))]
2220 impl ::core::clone::Clone for PNRPINFO_V2_0 {
2221 fn clone(&self) -> Self {
2222 *self
2223 }
2224 }
2225 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2226 pub type PNRP_CLOUD_FLAGS = i32;
2227 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2228 pub const PNRP_CLOUD_NO_FLAGS: PNRP_CLOUD_FLAGS = 0i32;
2229 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2230 pub const PNRP_CLOUD_NAME_LOCAL: PNRP_CLOUD_FLAGS = 1i32;
2231 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2232 pub const PNRP_CLOUD_RESOLVE_ONLY: PNRP_CLOUD_FLAGS = 2i32;
2233 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2234 pub const PNRP_CLOUD_FULL_PARTICIPANT: PNRP_CLOUD_FLAGS = 4i32;
2235 #[repr(C)]
2236 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2237 pub struct PNRP_CLOUD_ID {
2238 pub AddressFamily: i32,
2239 pub Scope: PNRP_SCOPE,
2240 pub ScopeId: u32,
2241 }
2242 impl ::core::marker::Copy for PNRP_CLOUD_ID {}
2243 impl ::core::clone::Clone for PNRP_CLOUD_ID {
2244 fn clone(&self) -> Self {
2245 *self
2246 }
2247 }
2248 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2249 pub type PNRP_CLOUD_STATE = i32;
2250 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2251 pub const PNRP_CLOUD_STATE_VIRTUAL: PNRP_CLOUD_STATE = 0i32;
2252 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2253 pub const PNRP_CLOUD_STATE_SYNCHRONISING: PNRP_CLOUD_STATE = 1i32;
2254 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2255 pub const PNRP_CLOUD_STATE_ACTIVE: PNRP_CLOUD_STATE = 2i32;
2256 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2257 pub const PNRP_CLOUD_STATE_DEAD: PNRP_CLOUD_STATE = 3i32;
2258 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2259 pub const PNRP_CLOUD_STATE_DISABLED: PNRP_CLOUD_STATE = 4i32;
2260 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2261 pub const PNRP_CLOUD_STATE_NO_NET: PNRP_CLOUD_STATE = 5i32;
2262 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2263 pub const PNRP_CLOUD_STATE_ALONE: PNRP_CLOUD_STATE = 6i32;
2264 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2265 pub type PNRP_EXTENDED_PAYLOAD_TYPE = i32;
2266 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2267 pub const PNRP_EXTENDED_PAYLOAD_TYPE_NONE: PNRP_EXTENDED_PAYLOAD_TYPE = 0i32;
2268 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2269 pub const PNRP_EXTENDED_PAYLOAD_TYPE_BINARY: PNRP_EXTENDED_PAYLOAD_TYPE = 1i32;
2270 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2271 pub const PNRP_EXTENDED_PAYLOAD_TYPE_STRING: PNRP_EXTENDED_PAYLOAD_TYPE = 2i32;
2272 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2273 pub const PNRP_MAX_ENDPOINT_ADDRESSES: u32 = 10u32;
2274 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2275 pub const PNRP_MAX_EXTENDED_PAYLOAD_BYTES: u32 = 4096u32;
2276 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2277 pub type PNRP_REGISTERED_ID_STATE = i32;
2278 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2279 pub const PNRP_REGISTERED_ID_STATE_OK: PNRP_REGISTERED_ID_STATE = 1i32;
2280 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2281 pub const PNRP_REGISTERED_ID_STATE_PROBLEM: PNRP_REGISTERED_ID_STATE = 2i32;
2282 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2283 pub type PNRP_RESOLVE_CRITERIA = i32;
2284 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2285 pub const PNRP_RESOLVE_CRITERIA_DEFAULT: PNRP_RESOLVE_CRITERIA = 0i32;
2286 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2287 pub const PNRP_RESOLVE_CRITERIA_REMOTE_PEER_NAME: PNRP_RESOLVE_CRITERIA = 1i32;
2288 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2289 pub const PNRP_RESOLVE_CRITERIA_NEAREST_REMOTE_PEER_NAME: PNRP_RESOLVE_CRITERIA = 2i32;
2290 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2291 pub const PNRP_RESOLVE_CRITERIA_NON_CURRENT_PROCESS_PEER_NAME: PNRP_RESOLVE_CRITERIA = 3i32;
2292 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2293 pub const PNRP_RESOLVE_CRITERIA_NEAREST_NON_CURRENT_PROCESS_PEER_NAME: PNRP_RESOLVE_CRITERIA = 4i32;
2294 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2295 pub const PNRP_RESOLVE_CRITERIA_ANY_PEER_NAME: PNRP_RESOLVE_CRITERIA = 5i32;
2296 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2297 pub const PNRP_RESOLVE_CRITERIA_NEAREST_PEER_NAME: PNRP_RESOLVE_CRITERIA = 6i32;
2298 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2299 pub type PNRP_SCOPE = i32;
2300 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2301 pub const PNRP_SCOPE_ANY: PNRP_SCOPE = 0i32;
2302 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2303 pub const PNRP_GLOBAL_SCOPE: PNRP_SCOPE = 1i32;
2304 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2305 pub const PNRP_SITE_LOCAL_SCOPE: PNRP_SCOPE = 2i32;
2306 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2307 pub const PNRP_LINK_LOCAL_SCOPE: PNRP_SCOPE = 3i32;
2308 pub const SVCID_PNRPCLOUD: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 3257113830, data2: 192, data3: 20415, data4: [186, 214, 24, 19, 147, 133, 164, 154] };
2309 pub const SVCID_PNRPNAME_V1: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 3257113829, data2: 192, data3: 20415, data4: [186, 214, 24, 19, 147, 133, 164, 154] };
2310 pub const SVCID_PNRPNAME_V2: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 3257113831, data2: 192, data3: 20415, data4: [186, 214, 24, 19, 147, 133, 164, 154] };
2311 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2312 pub const WSA_PNRP_CLIENT_INVALID_COMPARTMENT_ID: u32 = 11506u32;
2313 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2314 pub const WSA_PNRP_CLOUD_DISABLED: u32 = 11502u32;
2315 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2316 pub const WSA_PNRP_CLOUD_IS_DEAD: u32 = 11509u32;
2317 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2318 pub const WSA_PNRP_CLOUD_IS_SEARCH_ONLY: u32 = 11505u32;
2319 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2320 pub const WSA_PNRP_CLOUD_NOT_FOUND: u32 = 11501u32;
2321 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2322 pub const WSA_PNRP_DUPLICATE_PEER_NAME: u32 = 11508u32;
2323 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2324 pub const WSA_PNRP_ERROR_BASE: u32 = 11500u32;
2325 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2326 pub const WSA_PNRP_INVALID_IDENTITY: u32 = 11503u32;
2327 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2328 pub const WSA_PNRP_TOO_MUCH_LOAD: u32 = 11504u32;
2329 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2330 pub const WSZ_SCOPE_GLOBAL: &'static str = "GLOBAL";
2331 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2332 pub const WSZ_SCOPE_LINKLOCAL: &'static str = "LINKLOCAL";
2333 #[doc = "*Required features: 'Win32_NetworkManagement_P2P'*"]
2334 pub const WSZ_SCOPE_SITELOCAL: &'static str = "SITELOCAL";