• ¡Welcome to Square Theme!
  • This news are in header template.
  • Please ignore this message.
مهمان عزیز خوش‌آمدید. ورود عضــویت


امتیاز موضوع:
  • 2 رای - 3 میانگین
  • 1
  • 2
  • 3
  • 4
  • 5
Title: Get the name of this computer
حالت موضوعی
#1
کد:
Public Declare Function GetLocalComputerName Lib "kernel32" Alias "GetComputerNameA" (ByVal lpBuffer As String, nsize As Long) As Long
    Public Function GetComputerName() As String
    '==================================
    '==================================
    Dim strComputerName As String
    Dim lngResult As Long
    '-- Set up buffer.
    strComputerName = String$(255, 0)
    '-- Make the call.
    lngResult = GetLocalComputerName(strComputerName, 255)
    '-- Clean up and assign the value.
    If lngResult = 1 Then GetComputerName = Left$(strComputerName, InStr(1, strComputerName, vbNullChar) - 1)
    End Function
گروه دور همی پارسی کدرز
https://t.me/joinchat/GxVRww3ykLynHFsdCvb7eg
 
پاسخ
  


موضوعات مشابه ...
موضوع نویسنده پاسخ بازدید آخرین ارسال
  Computer Name Changer BAHMANNN 0 2,654 04-30-2011، 09:47 PM
آخرین ارسال: BAHMANNN

پرش به انجمن:


Browsing: 1 مهمان