Sorry, but no. The closest you are going to get is to write a COM wrapper
around whatever Win32 API functions you would like to have available, and
then create an instance of that object wherever you want it to run.
Unfortunately, all of the difficulties in getting a custom component loaded
and registered at every location where its needed apply.
With that said, if you're going after the username, you might be able to get
the same information from ADSI, assuming your script was trusted (again, the
difficulties in creating trusted scripts on the client-side still apply).
--
Very respectfully,
Todd Lewis
-- remove the capital letters to contact me --
Quote:
> Is this posible in HTML VBScript Language?
> What i'm trying to do is auto populate or retrieve the user's login id.
> i am trying to declare this in:
> <SCRIPT LANGUAGE="VBScript">
> <!--
> Private Declare Function apiGetUserName Lib "advapi32.dll" Alias _
> & "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
> but sum how it keeps start debug in line 17: Function
> Any help... i mean ANY... would be greatly appreciated.
> Ronin