Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Getting the Windows NT/2000 Username

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-05-25 : 08:44:36
Chris writes "I am creating some ASPs for an intranet which uses IE5.5 on Windows NT4(SP6)/2000(SP1).

I want to be able to determine who is accessing a page based on their NT username. In VB, I use this function:

Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" _
(ByVal lpBuffer As String, nSize As Long) As Long

Can I use this from an ASP? If not, what can I do from an ASP?"
   

- Advertisement -