| 1 |
::windows_targets::link!("dhcpcsvc.dll" "system" fn McastApiCleanup() -> ()); |
| 2 |
::windows_targets::link!("dhcpcsvc.dll" "system" fn McastApiStartup(version : *mut u32) -> u32); |
| 3 |
#[cfg(feature = "Win32_Foundation")] |
| 4 |
::windows_targets::link!("dhcpcsvc.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn McastEnumerateScopes(addrfamily : u16, requery : super::super::Foundation:: BOOL, pscopelist : *mut MCAST_SCOPE_ENTRY, pscopelen : *mut u32, pscopecount : *mut u32) -> u32); |
| 5 |
::windows_targets::link!("dhcpcsvc.dll" "system" fn McastGenUID(prequestid : *mut MCAST_CLIENT_UID) -> u32); |
| 6 |
::windows_targets::link!("dhcpcsvc.dll" "system" fn McastReleaseAddress(addrfamily : u16, prequestid : *mut MCAST_CLIENT_UID, preleaserequest : *mut MCAST_LEASE_REQUEST) -> u32); |
| 7 |
::windows_targets::link!("dhcpcsvc.dll" "system" fn McastRenewAddress(addrfamily : u16, prequestid : *mut MCAST_CLIENT_UID, prenewrequest : *mut MCAST_LEASE_REQUEST, prenewresponse : *mut MCAST_LEASE_RESPONSE) -> u32); |
| 8 |
::windows_targets::link!("dhcpcsvc.dll" "system" fn McastRequestAddress(addrfamily : u16, prequestid : *mut MCAST_CLIENT_UID, pscopectx : *mut MCAST_SCOPE_CTX, paddrrequest : *mut MCAST_LEASE_REQUEST, paddrresponse : *mut MCAST_LEASE_RESPONSE) -> u32); |
| 9 |
pub const MCAST_API_CURRENT_VERSION: i32 = 1i32; |
| 10 |
pub const MCAST_API_VERSION_0: i32 = 0i32; |
| 11 |
pub const MCAST_API_VERSION_1: i32 = 1i32; |
| 12 |
pub const MCAST_CLIENT_ID_LEN: u32 = 17u32; |
| 13 |
#[repr(C)] |
| 14 |
pub union IPNG_ADDRESS { |
| 15 |
pub IpAddrV4: u32, |
| 16 |
pub IpAddrV6: [u8; 16], |
| 17 |
} |
| 18 |
impl ::core::marker::Copy for IPNG_ADDRESS {} |
| 19 |
impl ::core::clone::Clone for IPNG_ADDRESS { |
| 20 |
fn clone(&self) -> Self { |
| 21 |
*self |
| 22 |
} |
| 23 |
} |
| 24 |
#[repr(C)] |
| 25 |
pub struct MCAST_CLIENT_UID { |
| 26 |
pub ClientUID: *mut u8, |
| 27 |
pub ClientUIDLength: u32, |
| 28 |
} |
| 29 |
impl ::core::marker::Copy for MCAST_CLIENT_UID {} |
| 30 |
impl ::core::clone::Clone for MCAST_CLIENT_UID { |
| 31 |
fn clone(&self) -> Self { |
| 32 |
*self |
| 33 |
} |
| 34 |
} |
| 35 |
#[repr(C)] |
| 36 |
pub struct MCAST_LEASE_REQUEST { |
| 37 |
pub LeaseStartTime: i32, |
| 38 |
pub MaxLeaseStartTime: i32, |
| 39 |
pub LeaseDuration: u32, |
| 40 |
pub MinLeaseDuration: u32, |
| 41 |
pub ServerAddress: IPNG_ADDRESS, |
| 42 |
pub MinAddrCount: u16, |
| 43 |
pub AddrCount: u16, |
| 44 |
pub pAddrBuf: *mut u8, |
| 45 |
} |
| 46 |
impl ::core::marker::Copy for MCAST_LEASE_REQUEST {} |
| 47 |
impl ::core::clone::Clone for MCAST_LEASE_REQUEST { |
| 48 |
fn clone(&self) -> Self { |
| 49 |
*self |
| 50 |
} |
| 51 |
} |
| 52 |
#[repr(C)] |
| 53 |
pub struct MCAST_LEASE_RESPONSE { |
| 54 |
pub LeaseStartTime: i32, |
| 55 |
pub LeaseEndTime: i32, |
| 56 |
pub ServerAddress: IPNG_ADDRESS, |
| 57 |
pub AddrCount: u16, |
| 58 |
pub pAddrBuf: *mut u8, |
| 59 |
} |
| 60 |
impl ::core::marker::Copy for MCAST_LEASE_RESPONSE {} |
| 61 |
impl ::core::clone::Clone for MCAST_LEASE_RESPONSE { |
| 62 |
fn clone(&self) -> Self { |
| 63 |
*self |
| 64 |
} |
| 65 |
} |
| 66 |
#[repr(C)] |
| 67 |
pub struct MCAST_SCOPE_CTX { |
| 68 |
pub ScopeID: IPNG_ADDRESS, |
| 69 |
pub Interface: IPNG_ADDRESS, |
| 70 |
pub ServerID: IPNG_ADDRESS, |
| 71 |
} |
| 72 |
impl ::core::marker::Copy for MCAST_SCOPE_CTX {} |
| 73 |
impl ::core::clone::Clone for MCAST_SCOPE_CTX { |
| 74 |
fn clone(&self) -> Self { |
| 75 |
*self |
| 76 |
} |
| 77 |
} |
| 78 |
#[repr(C)] |
| 79 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 80 |
#[cfg(feature = "Win32_Foundation")] |
| 81 |
pub struct MCAST_SCOPE_ENTRY { |
| 82 |
pub ScopeCtx: MCAST_SCOPE_CTX, |
| 83 |
pub LastAddr: IPNG_ADDRESS, |
| 84 |
pub TTL: u32, |
| 85 |
pub ScopeDesc: super::super::Foundation::UNICODE_STRING, |
| 86 |
} |
| 87 |
#[cfg(feature = "Win32_Foundation")] |
| 88 |
impl ::core::marker::Copy for MCAST_SCOPE_ENTRY {} |
| 89 |
#[cfg(feature = "Win32_Foundation")] |
| 90 |
impl ::core::clone::Clone for MCAST_SCOPE_ENTRY { |
| 91 |
fn clone(&self) -> Self { |
| 92 |
*self |
| 93 |
} |
| 94 |
} |