-
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
-
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
>
>
-
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
>
>
-
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
>
>
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks