Simple one: Retrieving the workstation's name 
Author Message
 Simple one: Retrieving the workstation's name

Hi:

Could some post some sample code showing how to retrieve the workstation
name of a Win95 PC using VB4?

Thanks!
Brian



Tue, 07 Mar 2000 03:00:00 GMT  
 Simple one: Retrieving the workstation's name


Fri, 19 Jun 1992 00:00:00 GMT  
 Simple one: Retrieving the workstation's name

Hi,

simply use

Declare Function GetComputerName Lib "kernel32" Alias =
"GetComputerNameA"
(ByVal lpBuffer As String, nSize As Long) As Long

    Dim sName As String
    sName =3D Space$(255)
    l =3D GetComputerName(sName, Len(sName))
    i =3D InStr(sName, Chr$(0))
    sName =3D Left(sName, i - 1)

Thomas Klein

Quote:
> -----Urspr=FCngliche Nachricht-----

> Ver=F6ffentlicht am:       Freitag, 19. September 1997 20:44
> Im Ordner: networks
> Unterhaltung:      Simple one: Retrieving the workstation's name
> Betreff:   Simple one: Retrieving the workstation's name
>=20
> Hi:
>=20
> Could some post some sample code showing how to retrieve the
> workstation
> name of a Win95 PC using VB4?
>=20
>=20
> Thanks!
> Brian



Fri, 10 Mar 2000 03:00:00 GMT  
 Simple one: Retrieving the workstation's name

Yes, I know, in Windows 95. But how do you do it in Windows 3.11 Can you
please help me!

I'd love to know this one for VB4 16 bit apps.



Sun, 12 Mar 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Need to determine a workstation's Workgroup name

2. Retrieve all database name under one SQL Server

3. Self-referencing a control's name within one of it's event procedures

4. getting users name and workstation name Urgent

5. Retrieve a person's first and last Name in GAL using CDO

6. Retrieving File Names and Web Links (URL's) from Windows\Favorites (Internet Explorer)

7. How to retrieve a SQL Server user's name from a VB app

8. Retrieving attached domain name running Win'95

9. How to retrieve user's name

10. Retrieving ALL user's names

11. Retrieve attached Domain Name under Win'95

12. Help - It's a simple one?

 

 
Powered by phpBB® Forum Software