NOME DO COMPUTADOR
ola pessoal.
alguem teria uma rotina pra me retorno o nome do computador?
alguem teria uma rotina pra me retorno o nome do computador?
essa rola
Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Public wChave As String
Public wTbtempCH As New ADODB.Recordset
Public wComputador As String
Function sGetComputerName() As String
Dim sBuffer As String
Dim lBufSize As Long
Dim lStatus As Long
lBufSize = 255
sBuffer = String$(lBufSize, " ")
lStatus = GetComputerName(sBuffer, lBufSize)
sGetComputerName = ""
If lStatus 0 Then
sGetComputerName = Left(sBuffer, lBufSize)
End If
End Function
falow
Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Public wChave As String
Public wTbtempCH As New ADODB.Recordset
Public wComputador As String
Function sGetComputerName() As String
Dim sBuffer As String
Dim lBufSize As Long
Dim lStatus As Long
lBufSize = 255
sBuffer = String$(lBufSize, " ")
lStatus = GetComputerName(sBuffer, lBufSize)
sGetComputerName = ""
If lStatus 0 Then
sGetComputerName = Left(sBuffer, lBufSize)
End If
End Function
falow
Tópico encerrado , respostas não são mais permitidas