public DHCP_IP_RESERVATION_V4_Managed(DHCP_IP_ADDRESS reservedIpAddress, DHCP_CLIENT_UID_Managed reservedForClient, DHCP_CLIENT_TYPE allowedClientTypes) { ReservedIpAddress = reservedIpAddress; AllowedClientTypes = allowedClientTypes; ReservedForClientPointer = Marshal.AllocHGlobal(Marshal.SizeOf(reservedForClient)); Marshal.StructureToPtr(reservedForClient, ReservedForClientPointer, false); }
public DHCP_CLIENT_INFO_VQ_Managed(DHCP_IP_ADDRESS clientIpAddress, DHCP_IP_MASK subnetMask, DHCP_BINARY_DATA_Managed clientHardwareAddress, string clientName, string clientComment, DATE_TIME clientLeaseExpires, DHCP_HOST_INFO_Managed ownerHost, DHCP_CLIENT_TYPE clientType, byte addressState, QuarantineStatus status, DATE_TIME probationEnds, bool quarantineCapable) { ClientIpAddress = clientIpAddress; SubnetMask = subnetMask; ClientHardwareAddress = clientHardwareAddress; ClientName = clientName; ClientComment = clientComment; ClientLeaseExpires = clientLeaseExpires; OwnerHost = ownerHost; ClientType = clientType; AddressState = addressState; Status = status; ProbationEnds = probationEnds; QuarantineCapable = quarantineCapable; }