'which Windows C/C++/API function for "net user <Username> /domain"?

Can anyone tell me, by which WINDOWS C/C++/API function I can fetch theAccount expires <date> and Password expires <date> or Nevervalues, just like the commands NET USER /DOMAIN(specially for a "Windows single signed on" user) or NET USER <Username> /DOMAIN does - without the knowledge of the password ?

Thanks a lot



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source