SQLExpress - Xb2.NET
ot4xb
Search
Start
>
Forums
>
ot4xb.examples (readonly)
>
Retrieving the computer name from the NETBIOS
ot4xb.examples (readonly)
Retrieving the computer name from the NETBIOS
Thread Starter:
Pablo Botella
Started:
6/13/2008 9:11 AM UTC
Replies:
0
6/13/2008 9:11 AM UTC
Retrieving the computer name from the NETBIOS
Pablo Botella
#include "ot4xb.ch"
// ---------------------------------------------------------------------------
function Main()
? cPrintf( "Computer Name : [%s]", cGetComputerName() )
inkey(0)
return NIL
// ---------------------------------------------------------------------------
function cGetComputerName()
local cn := ChrR(0,256)
local cb := 255
@kernel32:GetComputerNameA(@cn,@cb)
return TrimZ(cn)
// ---------------------------------------------------------------------------
This message includes the following attachments:
ComputerName.zip