如何在程序中判断guest帐户是否启用及属于那个组?
以及允许该帐户登陆的时间段?google了,也baidu了,还是没结果.请高手解答.不胜感激!!

解决方案 »

  1.   

    NetUserGetGroupsThe NetUserGetGroups function retrieves a list of global groups to which a specified user belongs.
    NET_API_STATUS NetUserGetGroups(
      LPCWSTR servername,
      LPCWSTR username,
      DWORD level,
      LPBYTE* bufptr,
      DWORD prefmaxlen,
      LPDWORD entriesread,
      LPDWORD totalentries
    );
      

  2.   

    The NetUserGetInfo function retrieves information about a particular user account on a server.
    NET_API_STATUS NetUserGetInfo(
      LPCWSTR servername,
      LPCWSTR username,
      DWORD level,
      LPBYTE* bufptr
    );
      

  3.   

    非常感谢 kugou123(酷狗)(君看一叶舟,出没风波里) 搭车再问一个问题,分不够再加!!如何获得某个server上的域信息呢?比如域名,可用或禁用的IP地址列表?