Wednesday, April 7, 2010

How to Get Computer Name (Visual Basic 6)

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

Function Get_CompName() As String
    ' Returns the name of the local computer.
    Dim BUFFER As String * 512, length As Long
    length = Len(BUFFER)
    If GetComputerName(BUFFER, length) Then
        ' this API returns non-zero if successful,
        ' and modifies the length argument
        Get_CompName = Left(BUFFER, length)
    End If
End Function

12 comments:

Cebu City Jobs said...

Thank you, I am now able to get the computer name.

Waynee said...

bitlis
urfa
mardin
tokat
çorum
FLGTY

QuantumVoyager123 said...

yalova
yozgat
elazığ
van
sakarya
F6EWJ

GalacticCipheress said...

istanbul evden eve nakliyat
balıkesir evden eve nakliyat
şırnak evden eve nakliyat
kocaeli evden eve nakliyat
bayburt evden eve nakliyat
G4D3

325D2Edwin9089B said...

D4191
Malatya Lojistik
Urfa Evden Eve Nakliyat
Zonguldak Lojistik
Mardin Lojistik
Muş Parça Eşya Taşıma

D2BF5TiannaF0F00 said...

880DD
Çorum Şehirler Arası Nakliyat
Osmaniye Lojistik
Karapürçek Boya Ustası
Sivas Lojistik
Karapürçek Parke Ustası
Düzce Lojistik
Pursaklar Fayans Ustası
Yozgat Şehirler Arası Nakliyat
Şırnak Şehirler Arası Nakliyat

78288Immanuel1F845 said...

51051
Elazığ Canlı Sohbet Sitesi
sohbet
uşak yabancı canlı sohbet
Tekirdağ Canlı Sohbet
ardahan yabancı görüntülü sohbet
sesli sohbet mobil
mobil sohbet bedava
canlı sohbet
tunceli görüntülü sohbet canlı

Kick Rail | Manufacturer from China | Aotons said...

Aotons Kick Rail can prevent the forklift truck from passing through and colliding from the bottom, and can be used as the ground pallet storage or the limiter of forklift truck. It can also be integrated into the traffic barrier or pedestrian safety barrier system. According to the impact test, it can resist the impact of 6-ton forklift at the speed of 5km/h without damage.

Custom Packaging Tubes for Electronics from China said...

As a cylinder packaging manufacturer with over 10 years of experience, Hopak custom electronic packaging with high-quality paper tubes. Whether you sell electronics or electronics parts, Hopak packaging tubes for electronics will represent the value of your brand. Different from other suppliers, Hopak only utilizes first-class paper material to keep your fragile electronic products safe from scratches and damage in general. Create a functional and good-looking electronic packaging solution that will display your advanced tech

Bump Test Machine Manufacturer from China said...

Linkotest offers PC-controlled pneumatic shock testers known as Bump Test Machines. These machines are designed to ensure accurate and repeatable shock testing for both laboratory and production environments. They are capable of testing samples weighing up to 1000 kg (depending on the model).
Equipped with shock pulse programmers, these machines can generate short and long duration half sine shock pulses. This functionality allows them to meet strict automotive, military, and industrial specifications, as well as customized testing requirements. The generated waveforms comply with various military standards, such as MIL-STD-202, MIL-STD-750, MIL-STD-810, and MIL-STD-883.

Low Voltage Motor Control Center said...

The low voltage motor control center (MCC) is an integrated electrical control equipment used to start, stop, and protect motors. It provides centralized control and power distribution for motors in industrial and commercial applications. The low voltage MCC consists of a frame, busbars, circuit breakers, starters, control devices, interlocking devices, cable ducts, etc.

Máquina para fabricar cajas de cartón corrugado BM2508-SE said...

BM2508-SE es un fabricante de cajas multifuncional Máquina de caja corrugada
completamente automático con ranurado y marcado horizontal, corte y plegado vertical, corte horizontal, todo en una máquina compacta. En comparación con el modelo BM2508-Plus, el modelo BM2508-SE es una máquina de versión económica, que es de gran importancia para todos los usuarios bajo la epidemia. Para reducir el presupuesto y los gastos, está equipada con un alimentador de borde delantero de 900 mm, 2 ruedas de hendido verticales y un módulo de troquelado de orificio de mano retirado.

Post a Comment

 
Powered by Blogger