User and Local Groups authentication on Windows


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: User and Local Groups authentication on Windows

Hybrid View

  1. #1
    Ajith Guest

    User and Local Groups authentication on Windows


    I am having Excel (using VBA code) which makes NetLocalGetGroups() and GetUserNameW()
    calls to get the user name and the local groups to which user belongs. These
    calls actually look into the local system (or user desktop) for NetAPI32.dll
    and advapi32.dll which means user should be running Excel on WindowsNT w/s
    to get these info.
    Given possibility that user could be running the Excel on Windows 98 or 95,
    is it possible to make this authentication work independant of the user OS
    or possibly make VBA code to look in for these dlls from the NT server which
    holds the domain info (thro path settings).
    Thanks in advance
    Ajith



  2. #2
    Raul M. Fragoso Guest

    Re: User and Local Groups authentication on Windows

    No way. These functions are part of WinNT and you couldn't use them in
    Win95/98.

    Raul M. Fragoso
    raulf@zip.net


    "Ajith" <siponjava@hotmail.com> wrote in message
    news:3a75988c@news.devx.com...
    >
    > I am having Excel (using VBA code) which makes NetLocalGetGroups() and

    GetUserNameW()
    > calls to get the user name and the local groups to which user belongs.

    These
    > calls actually look into the local system (or user desktop) for

    NetAPI32.dll
    > and advapi32.dll which means user should be running Excel on WindowsNT w/s
    > to get these info.
    > Given possibility that user could be running the Excel on Windows 98 or

    95,
    > is it possible to make this authentication work independant of the user OS
    > or possibly make VBA code to look in for these dlls from the NT server

    which
    > holds the domain info (thro path settings).
    > Thanks in advance
    > Ajith
    >
    >




  3. #3
    L.J. Johnson Guest

    Re: User and Local Groups authentication on Windows

    Ajith,

    If you want to do the network *stuff* fairly trasparently between Win9x and
    NT/W2K, there aren't a lot of options. The way MS does it is (in Win9x) to
    thunk down to 16-bit code (yes, you heard me right <g>). One really nice
    wrapper for all of this is to use Microsoft's ADSI (Active Directory
    Services Interfaces). It comes built-in with Win2K, but versions are
    available to install in NT 4.0 and Win9x. You do, obviously, have to install
    it there, but it works (for the most part) identically across those
    platforms once installed.

    --
    L.J. Johnson, Slightly Tilted Software
    Microsoft MVP (Visual Basic)
    LJJohnson@SlightlyTiltedSoftware.com or LJJohnson@mvps.org
    <http://www.SlightlyTiltedSoftware.com>
    Ask The NT Pro at <http://www.devx.com/gethelp>

    "Ajith" <siponjava@hotmail.com> wrote in message
    news:3a75988c@news.devx.com...
    >
    > I am having Excel (using VBA code) which makes NetLocalGetGroups() and

    GetUserNameW()
    > calls to get the user name and the local groups to which user belongs.

    These
    > calls actually look into the local system (or user desktop) for

    NetAPI32.dll
    > and advapi32.dll which means user should be running Excel on WindowsNT w/s
    > to get these info.
    > Given possibility that user could be running the Excel on Windows 98 or

    95,
    > is it possible to make this authentication work independant of the user OS
    > or possibly make VBA code to look in for these dlls from the NT server

    which
    > holds the domain info (thro path settings).
    > Thanks in advance
    > Ajith
    >
    >




  4. #4
    Raul M. Fragoso Guest

    Re: User and Local Groups authentication on Windows

    No way. These functions are part of WinNT and you couldn't use them in
    Win95/98.

    Raul M. Fragoso
    raulf@zip.net


    "Ajith" <siponjava@hotmail.com> wrote in message
    news:3a75988c@news.devx.com...
    >
    > I am having Excel (using VBA code) which makes NetLocalGetGroups() and

    GetUserNameW()
    > calls to get the user name and the local groups to which user belongs.

    These
    > calls actually look into the local system (or user desktop) for

    NetAPI32.dll
    > and advapi32.dll which means user should be running Excel on WindowsNT w/s
    > to get these info.
    > Given possibility that user could be running the Excel on Windows 98 or

    95,
    > is it possible to make this authentication work independant of the user OS
    > or possibly make VBA code to look in for these dlls from the NT server

    which
    > holds the domain info (thro path settings).
    > Thanks in advance
    > Ajith
    >
    >




  5. #5
    L.J. Johnson Guest

    Re: User and Local Groups authentication on Windows

    Ajith,

    If you want to do the network *stuff* fairly trasparently between Win9x and
    NT/W2K, there aren't a lot of options. The way MS does it is (in Win9x) to
    thunk down to 16-bit code (yes, you heard me right <g>). One really nice
    wrapper for all of this is to use Microsoft's ADSI (Active Directory
    Services Interfaces). It comes built-in with Win2K, but versions are
    available to install in NT 4.0 and Win9x. You do, obviously, have to install
    it there, but it works (for the most part) identically across those
    platforms once installed.

    --
    L.J. Johnson, Slightly Tilted Software
    Microsoft MVP (Visual Basic)
    LJJohnson@SlightlyTiltedSoftware.com or LJJohnson@mvps.org
    <http://www.SlightlyTiltedSoftware.com>
    Ask The NT Pro at <http://www.devx.com/gethelp>

    "Ajith" <siponjava@hotmail.com> wrote in message
    news:3a75988c@news.devx.com...
    >
    > I am having Excel (using VBA code) which makes NetLocalGetGroups() and

    GetUserNameW()
    > calls to get the user name and the local groups to which user belongs.

    These
    > calls actually look into the local system (or user desktop) for

    NetAPI32.dll
    > and advapi32.dll which means user should be running Excel on WindowsNT w/s
    > to get these info.
    > Given possibility that user could be running the Excel on Windows 98 or

    95,
    > is it possible to make this authentication work independant of the user OS
    > or possibly make VBA code to look in for these dlls from the NT server

    which
    > holds the domain info (thro path settings).
    > Thanks in advance
    > Ajith
    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center