Computer name, domain, user names,...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ondrej Sevecek

    #1

    Computer name, domain, user names,...

    Hello,
    there were Win32 API functions suchs as GetComputerName (), GetUserName(),
    NetUserEnum(), NetDomainEnum() , ...
    Where are those functions available through .NET framework?

    Ondra.



  • William Ryan

    #2
    Re: Computer name, domain, user names,...

    Environment.Mac hineName Environment.Use rname, Environment.Use rDomainName

    HTH,

    Bill
    "Ondrej Sevecek" <ondra@sevecek. com.thisisanunt ispamsuffix> wrote in message
    news:%235uwFz8n DHA.2772@TK2MSF TNGP10.phx.gbl. ..[color=blue]
    > Hello,
    > there were Win32 API functions suchs as GetComputerName (),[/color]
    GetUserName(),[color=blue]
    > NetUserEnum(), NetDomainEnum() , ...
    > Where are those functions available through .NET framework?
    >
    > Ondra.
    >
    >
    >[/color]


    Comment

    • Ondøej ©eveèek

      #3
      Re: Computer name, domain, user names,...

      what about FULL DNS name of the user?

      Onda.


      "William Ryan" <dotnetguru@com cast.nospam.net > wrote in message
      news:ebB7G28nDH A.2424@TK2MSFTN GP10.phx.gbl...[color=blue]
      > Environment.Mac hineName Environment.Use rname, Environment.Use rDomainName
      >
      > HTH,
      >
      > Bill
      > "Ondrej Sevecek" <ondra@sevecek. com.thisisanunt ispamsuffix> wrote in[/color]
      message[color=blue]
      > news:%235uwFz8n DHA.2772@TK2MSF TNGP10.phx.gbl. ..[color=green]
      > > Hello,
      > > there were Win32 API functions suchs as GetComputerName (),[/color]
      > GetUserName(),[color=green]
      > > NetUserEnum(), NetDomainEnum() , ...
      > > Where are those functions available through .NET framework?
      > >
      > > Ondra.
      > >
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • AlexS

        #4
        Re: Computer name, domain, user names,...

        Or through platform invoke. Check DllImport and related topics how to
        declare and use Win32 API in .Net

        HTH
        Alex

        "Ondrej Sevecek" <ondra@sevecek. com.thisisanunt ispamsuffix> wrote in message
        news:%235uwFz8n DHA.2772@TK2MSF TNGP10.phx.gbl. ..[color=blue]
        > Hello,
        > there were Win32 API functions suchs as GetComputerName (),[/color]
        GetUserName(),[color=blue]
        > NetUserEnum(), NetDomainEnum() , ...
        > Where are those functions available through .NET framework?
        >
        > Ondra.
        >
        >
        >[/color]


        Comment

        • William Ryan

          #5
          Re: Computer name, domain, user names,...

          Not sure, let me look around...
          "Ondøej ©eveèek" <ondra@sevecek. com.thisisanunt ispamsuffix> wrote in message
          news:edlq7$8nDH A.424@TK2MSFTNG P10.phx.gbl...[color=blue]
          > what about FULL DNS name of the user?
          >
          > Onda.
          >
          >
          > "William Ryan" <dotnetguru@com cast.nospam.net > wrote in message
          > news:ebB7G28nDH A.2424@TK2MSFTN GP10.phx.gbl...[color=green]
          > > Environment.Mac hineName Environment.Use rname, Environment.Use rDomainName
          > >
          > > HTH,
          > >
          > > Bill
          > > "Ondrej Sevecek" <ondra@sevecek. com.thisisanunt ispamsuffix> wrote in[/color]
          > message[color=green]
          > > news:%235uwFz8n DHA.2772@TK2MSF TNGP10.phx.gbl. ..[color=darkred]
          > > > Hello,
          > > > there were Win32 API functions suchs as GetComputerName (),[/color]
          > > GetUserName(),[color=darkred]
          > > > NetUserEnum(), NetDomainEnum() , ...
          > > > Where are those functions available through .NET framework?
          > > >
          > > > Ondra.
          > > >
          > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • Willy Denoyette [MVP]

            #6
            Re: Computer name, domain, user names,...

            Take a look at the DirectoryServic es namespace classes.

            Willy.

            "Ondrej Sevecek" <ondra@sevecek. com.thisisanunt ispamsuffix> wrote in message news:%235uwFz8n DHA.2772@TK2MSF TNGP10.phx.gbl. ..[color=blue]
            > Hello,
            > there were Win32 API functions suchs as GetComputerName (), GetUserName(),
            > NetUserEnum(), NetDomainEnum() , ...
            > Where are those functions available through .NET framework?
            >
            > Ondra.
            >
            >
            >[/color]


            Comment

            Working...