⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 9.1.1 信任成员的管理.htm

📁 Windows2000后台服务程序开发手册
💻 HTM
📖 第 1 页 / 共 4 页
字号:
                  style="LINE-HEIGHT: 25px">&nbsp;表9-2&nbsp;</B></FONT>pdwParamErr参数中可能被传回的值</FONT></TD></TR></TBODY></TABLE></CENTER>
            <CENTER style="LINE-HEIGHT: 25px">
            <TABLE border=1>
              <TBODY style="LINE-HEIGHT: 25px">
              <TR>
                <TH style="LINE-HEIGHT: 25px"><FONT style="LINE-HEIGHT: 25px" 
                  size=2>值</FONT> </TH>
                <TH style="LINE-HEIGHT: 25px"><FONT style="LINE-HEIGHT: 25px" 
                  size=2>叙述</FONT></TH></TR>
              <TR>
                <TD><FONT style="LINE-HEIGHT: 25px" 
                  size=2>LOCALGROUP_NAME_PARMNUM</FONT></TD>
                <TD><FONT style="LINE-HEIGHT: 25px" 
                  size=2>这个值表示您指定了一个无效的群组名称给新的群组。</FONT></TD></TR>
              <TR>
                <TD><FONT style="LINE-HEIGHT: 25px" 
                  size=2>LOCALGROUP_COMMENT_PARMNUM</FONT></TD>
                <TD><FONT style="LINE-HEIGHT: 25px" 
                  size=2>这个值表示呼叫NetLocalGroupAdd中的注解值是无效的。</FONT></TD></TR></TBODY></TABLE></CENTER>
            <P><FONT style="LINE-HEIGHT: 25px" face=arial color=#000000 
            size=2>您应该经常检查NetLocalGroupAdd的传回值以确保系统已经传回NERR_Success。否则表示系统在建立的新本机群组时执行失败。</FONT></P>
            <HR style="LINE-HEIGHT: 25px">

            <P><FONT style="LINE-HEIGHT: 25px" face=Arial color=#3e77d7 size=3 
            Black><B style="LINE-HEIGHT: 25px">说明</B></FONT> </P>
            <P><FONT style="LINE-HEIGHT: 25px" face=arial color=#000000 
            size=2>ADSI套件也可以用来建立群组帐户。Active 
            Directory被组织成层级物件,可以在任何的容器物件中建立群组物件。您可以使用IADsContainer介面的Create方法建立一个群组物件。一旦建立物件后,您可以使用QueryInterface方法获得IADsGroup介面的指标,它可以用来更进一步地管理新的群组物件。要取得更多的细节,请参阅《Platform 
            SDK》文件。</FONT></P>
            <HR style="LINE-HEIGHT: 25px">

            <P><FONT style="LINE-HEIGHT: 25px" face=arial color=#000000 
            size=2>建立使用者帐户与建立群组帐户的方法类似;然而,您可以提供更多使用者帐户的资讯给系统。您可以使用NetUserAdd函数在Windows 
            2000系统上建立新的使用者。</FONT></P>
            <DIV style="LINE-HEIGHT: 25px; BACKGROUND-COLOR: #d7d7d7"><FONT 
            style="LINE-HEIGHT: 25px" face=Arial size=3><PRE style="LINE-HEIGHT: 25px">NET_API_STATUS NetUserAdd(&nbsp;&nbsp;<BR> PCWSTR pstrServername,&nbsp;&nbsp;<BR> DWORD dwLevel,&nbsp;&nbsp;<BR> PBYTE pbBuf,&nbsp;&nbsp;<BR> PDWORD pdwParmErr);</PRE></FONT></DIV>
            <P><FONT style="LINE-HEIGHT: 25px" face=arial color=#000000 
            size=2>请注意到NetUserAdd与NetLocalGroupAdd的参数清单完全相同,差别在于传递到pbBuf参数的结构类型。您可以传递指标到level 
            1、2或3的USER_INFO_* 
            结构,以建立新的使用者。这里是USER_INFO_1(可以与NetUserAdd一起使用的最简单结构)及USER_INFO_3(您可以使用的最广泛结构)的定义。</FONT></P>
            <DIV style="LINE-HEIGHT: 25px; BACKGROUND-COLOR: #d7d7d7"><FONT 
            style="LINE-HEIGHT: 25px" face=Arial size=3><PRE style="LINE-HEIGHT: 25px">typedef struct _USER_INFO_1 {&nbsp;&nbsp;<BR> PWSTR usri1_name;&nbsp;&nbsp;<BR> PWSTR usri1_password;&nbsp;&nbsp;<BR> DWORD usri1_password_age;&nbsp;&nbsp;<BR> DWORD usri1_priv;&nbsp;&nbsp;<BR> PWSTR usri1_home_dir;&nbsp;&nbsp;<BR> PWSTR usri1_comment;&nbsp;&nbsp;<BR> DWORD usri1_flags;&nbsp;&nbsp;<BR> PWSTR usri1_script_path;&nbsp;&nbsp;<BR>}USER_INFO_1 ;&nbsp;&nbsp;<BR>typedef struct _USER_INFO_3 {&nbsp;&nbsp;<BR> PWSTR usri3_name;&nbsp;&nbsp;<BR> PWSTR usri3_password;&nbsp;&nbsp;<BR> DWORD usri3_password_age;&nbsp;&nbsp;<BR> DWORD usri3_priv;&nbsp;&nbsp;<BR> PWSTR usri3_home_dir;&nbsp;&nbsp;<BR> PWSTR usri3_comment;&nbsp;&nbsp;<BR> DWORD usri3_flags;&nbsp;&nbsp;<BR> PWSTR usri3_script_path;&nbsp;&nbsp;<BR> DWORD usri3_auth_flags;&nbsp;&nbsp;<BR> PWSTR usri3_full_name;&nbsp;&nbsp;<BR> PWSTR usri3_usr_comment;&nbsp;&nbsp;<BR> PWSTR usri3_parms;&nbsp;&nbsp;<BR> PWSTR usri3_workstations;&nbsp;&nbsp;<BR> DWORD usri3_last_logon;&nbsp;&nbsp;<BR> DWORD usri3_last_logoff;&nbsp;&nbsp;<BR> DWORD usri3_acct_expires;&nbsp;&nbsp;<BR> DWORD usri3_max_storage;&nbsp;&nbsp;<BR> DWORD usri3_units_per_week;&nbsp;&nbsp;<BR> PBYTE usri3_logon_hours;&nbsp;&nbsp;<BR> DWORD usri3_bad_pw_count;&nbsp;&nbsp;<BR> DWORD usri3_num_logons;&nbsp;&nbsp;<BR> PWSTR usri3_logon_server;&nbsp;&nbsp;<BR> DWORD usri3_country_code;&nbsp;&nbsp;<BR> DWORD usri3_code_page;&nbsp;&nbsp;<BR> DWORD usri3_user_id;&nbsp;&nbsp;<BR> DWORD usri3_primary_group_id;&nbsp;&nbsp;<BR> PWSTR usri3_profile;&nbsp;&nbsp;<BR> PWSTR usri3_home_dir_drive;&nbsp;&nbsp;<BR> DWORD usri3_password_expired;&nbsp;&nbsp;<BR>}USER_INFO_3 ;</PRE></FONT></DIV>
            <P><FONT style="LINE-HEIGHT: 25px" face=arial color=#000000 
            size=2>如您所见,当您在建立使用者时,可以选择传递大量的资讯给系统。有关USER_INFO_2及USER_INFO_3结构中每个成员的详细叙述,请参阅《Platform 
            SDK》文件。此处的讨论只需叙述在USER_INFO_1结构中出现的成员,这些成员会在表9-3中列出。</FONT></P>
            <CENTER style="LINE-HEIGHT: 25px">
            <P></P>
            <P class=content_page><STRONG><FONT 
            color=#ff0033>[1]</FONT></STRONG>&nbsp;<A 
            href="http://www.acejoy.com/Html/Article/network/6020061026092905_P2.html">[2]</A>&nbsp;<A 
            href="http://www.acejoy.com/Html/Article/network/6020061026092905_P3.html">[3]</A>&nbsp;&nbsp;<A 
            href="http://www.acejoy.com/Html/Article/network/6020061026092905_P2.html">下一页</A></P></DIV><BR><BR></CENTER></DIV></DIV></TD></TR></TBODY></TABLE>
      <TABLE style="CLEAR: both" cellSpacing=0 cellPadding=0 width="97%">
        <TBODY>
        <TR>
          <TD align=right>
            <TABLE>
              <TBODY>
              <TR>
                <TD>阅读:<SPAN id=news_hits></SPAN>
                  <SCRIPT src="9.1 信任成员的管理.files/GetHits.htm" 
                  type=text/JavaScript></SCRIPT>
                   次<BR>录入:<A 
                  href="http://www.acejoy.com/User/Info.Asp?UserName=admin">admin</A><BR><BR></TD></TR></TBODY></TABLE></TD></TR>
        <TR>
          <TD align=right>【 <A 
            href="http://www.acejoy.com/Comment.asp?ChannelID=1&amp;Action=Write&amp;InfoID=60">评论</A> 
            】 【 <A 
            href="http://www.acejoy.com/User/SendMail.asp?Title=Windows2000 服务器端应用程序开发设计指南-信任成员的管理(1)" 
            target=_blank>推荐</A> 】 【 <A href="javascript:window.print()">打印</A> 
            】 </TD></TR></TBODY></TABLE>
      <TABLE style="CLEAR: both" width="97%" align=center>
        <TBODY>
        <TR>
          <TD>上一篇:<A 
            title="标题:Windows2000 服务器端应用程序开发设计指南-Windows Management Instrumentation&#13;&#10;作者:Jeffrey Richter Jason D. Clark&#13;&#10;更新:2006-10-23 9:19:39&#13;&#10;点击:761" 
            href="http://www.acejoy.com/Html/Article/network/5920061023091939.html">Windows2000 
            服务器端应用程序开发设计指南-Windows Management Instrumentation</A><BR>下一篇:<A 
            title="标题:Windows2000 服务器端应用程序开发设计指南-信任成员的管理(2)&#13;&#10;作者:Jeffrey Richter Jason D. Clark&#13;&#10;更新:2006-10-26 9:34:56&#13;&#10;点击:485" 
            href="http://www.acejoy.com/Html/Article/network/6120061026093456.html">Windows2000 
            服务器端应用程序开发设计指南-信任成员的管理(2)</A> </TD></TR></TBODY></TABLE></TD>
    <TD class=mr></TD></TR></TBODY></TABLE></DIV></DIV>
<DIV class=mframe>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center>
  <TBODY>
  <TR>
    <TD class=tl></TD>
    <TD class=tm><SPAN class=tt>相关新闻</SPAN> </TD>
    <TD class=tr></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center>
  <TBODY>
  <TR>
    <TD class=ml></TD>
    <TD class=mm>
      <TABLE height="100%" cellSpacing=5 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD vAlign=top>
            <SCRIPT language=javascript 
            src="9.1 信任成员的管理.files/GetCorrelative.htm"></SCRIPT>
          </TD></TR></TBODY></TABLE></TD>
    <TD class=mr></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center>
  <TBODY>
  <TR>
    <TD class=tl></TD>
    <TD class=tm><SPAN class=tt>本文评论</SPAN> </TD>
    <TD class=tr></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center>
  <TBODY>
  <TR>
    <TD class=ml></TD>
    <TD class=mm>
      <P>&nbsp;</P>
      <TABLE height="100%" cellSpacing=5 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD vAlign=top>
            <SCRIPT language=javascript 
            src="9.1 信任成员的管理.files/Comment.htm"></SCRIPT>
          </TD></TR></TBODY></TABLE></TD>
    <TD class=mr></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center>
  <TBODY>
  <TR>
    <TD class=ml></TD>
    <TD class=mm></TD>
    <TD class=mr></TD></TR></TBODY></TABLE></DIV>
<TABLE id=footer cellSpacing=0 cellPadding=0 border=0>
  <TBODY>
  <TR style="LINE-HEIGHT: 130%" align=middle>
    <TD height=23>&nbsp;<A 
      href='javascript:window.external.addFavorite("http://www.acejoy.com","ACE开发者")'><FONT 
      color=#000000>加入收藏</FONT></A>&nbsp;- &nbsp;<A 
      href="http://www.acejoy.com/Help.asp?Action=aboutweb" target=_blank><FONT 
      color=#000000>关于本站</FONT></A>&nbsp;- &nbsp;<A class=Bottom 
      href="http://www.acejoy.com/Help.asp?Action=Copyright" target=_blank><FONT 
      color=#000000>版权申明</FONT></A>&nbsp;- &nbsp;<A class=Bottom 
      href="http://www.acejoy.com/Help.asp?Action=aboutweb" target=_blank><FONT 
      color=#000000>联系站长</FONT></A>&nbsp;- &nbsp;<A class=Bottom 
      href="http://www.acejoy.com/LinkSite.asp" target=_blank><FONT 
      color=#000000>友情链接</FONT></A>&nbsp;&nbsp; </TD></TR>
  <TR align=middle>
    <TD height=23>Copyright&copy; 2004-2006 <A 
      href="http://www.acejoy.com/">http://www.acejoy.com/</A> .All Rights 
      Reserved <A href="http://www.miibeian.gov.cn/" target=_blank>京ICP备06055248 
      </A>
      <SCRIPT language=JavaScript src="9.1 信任成员的管理.files/stat.htm" 
      charset=gb2312></SCRIPT>
    </TD></TR></TBODY></TABLE>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV><!--Powered by:CreateLive CMS Version 3.1(www.acejoy.com) CreateDate:2007-3-4 10:50:39--></DIV></DIV></DIV></DIV></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -