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