finding network login from web page 
Author Message
 finding network login from web page

i'm writing an intranet app and need to use our LAN to authenticate the user i.e. i need to find out who the user is logged in as on the LAN.

in VB i can do this using MPR.DLL as follows:

Declare Function WNetGetUser& Lib "Mpr" Alias "WNetGetUserA" (lpName As Any, ByVal lpUserName$, lpnLength&)

Function GetWorkstationInfo() As String

   Dim ret As Long, cbusername As Long, username As String
   username = Space(256)
   cbusername = Len(username)
   ret = WNetGetUser(ByVal 0&, username, cbusername)
   If ret = 0 Then
      username = Left(username, InStr(username, Chr(0)) - 1)
   Else
   ...

Does anyone know how to call this DLL from HTML/VBScript ?

thanks muchly



Tue, 28 Aug 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Mapping Web Folders (Network Places via login script or wsh

2. Automate Login to web page (pop up dialog box)

3. login from web page.... Opzioni

4. Login from web page Exchange 2000

5. Further Question: Automating IE Login to Web Page with VBScript

6. Automating IE Login to Web Page with VBScript

7. How to login to a HTTPS Web Page

8. IIS how to find http:// entry for web pages

9. Find user info on a pc when a web page is viewed

10. No Web References were found on this page.

11. web page to execute Windows find file feature

12. HELP NEEDS: How to initiate openinig a WEB-page (or find out location of default browser)

 

 
Powered by phpBB® Forum Software