CoQueryAuthenticationServices

[DllImport("ole32.dll", SetLastError = true)]
public static extern int CoQueryAuthenticationServices(
   out uint pcAuthSvc,
   out SOLE_AUTHENTICATION_SERVICE[] asAuthSvc
);

Microsoft documentation: Link

Last updated