Edit

Share via


DnsIsZtEnabled function (windns.h)

Gets a value that specifies whether Zero Trust DNS (ZTDNS) is enabled on the current device.

Syntax

BOOL DnsIsZtEnabled();

Return value

True if ZTDNS is enabled; otherwise, false.

Remarks

Because there is no import library for this function, you must call LoadLibrary, specifying the dll name "dnsapi.dll", and then GetProcAddress, specifying the function name "DnsIsZtEnabled".

Requirements

Requirement Value
Header windns.h