G
Guest
Hi there,
I would like to retrieve the computer name in C#, here is the piece of code
in VB:
Private Declare Function GetComputerNameAPI Lib "kernel32" Alias
"GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long
How do I translate to C#? thanks!
I would like to retrieve the computer name in C#, here is the piece of code
in VB:
Private Declare Function GetComputerNameAPI Lib "kernel32" Alias
"GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long
How do I translate to C#? thanks!