public static extern ServiceError DNSServiceResolve(out ServiceRef sdRef, ServiceFlags flags, uint interfaceIndex, byte[] name, string regtype, string domain, DNSServiceResolveReply callBack, IntPtr context);
public static extern DNSServiceErrorType DNSServiceResolve(out IntPtr sdRef, DNSServiceFlags flags, UInt32 interfaceIndex, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8Marshaler))] String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8Marshaler))] String regtype, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8Marshaler))] String domain, DNSServiceResolveReply callBack, IntPtr context);
public static ServiceError DNSServiceResolve(out ServiceRef sdRef, ServiceFlags flags, uint interfaceIndex, byte[] name, string regtype, string domain, DNSServiceResolveReply callBack, IntPtr context) { switch (Native.GetCurrentOperatingSystem()) { case OperatingSystem.Windows: return(NativeWindows.DNSServiceResolve(out sdRef, flags, interfaceIndex, name, regtype, domain, callBack, context)); case OperatingSystem.OSX: return(NativeOSX.DNSServiceResolve(out sdRef, flags, interfaceIndex, name, regtype, domain, callBack, context)); default: throw new InvalidOperationException("The current OS is unsupported"); } }
public static extern DnsServiceErrorType DNSServiceResolve( out IntPtr handle, DnsServiceFlags flags, int ifIndex, string name, string regType, string domain, DNSServiceResolveReply callback, IntPtr context);
public static extern ServiceError DNSServiceResolve(out ServiceRef sdRef, ServiceFlags flags, uint interfaceIndex, string name, string regtype, string domain, DNSServiceResolveReply callBack, IntPtr context);