Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

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

Feedback

Was this page helpful?

Additional resources