F_GET_COMPUTER_NAME

///////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Function Name : f_get_computer_name
// Argument Name : (None)
// Return Type :       String
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Local External Functions :
// Function boolean GetComputerNameA (ref String lpBuffer, ref ulong nSize)
// Library "kernel32.dll"
///////////////////////////////////////////////////////////////////////////////////////////////////////////////

string ls_temp
ulong lul_value
boolean lb_rc

lul_value = 255
ls_temp = space(255)
lb_rc = GetComputerNameA (ls_temp, lul_value)

Return ls_temp

0 comments:

Post a Comment