|
of_getcomputername
|
|
Full name
|
pfc_n_cst_platformaix.of_getcomputername
|
Access
|
public
|
Extend of
|
string
|
Return value
|
string
|
Prototype
|
public function string of_getcomputername()
|
Name
|
Datatype
|
lb_rc
|
boolean
|
ls_computer_name
|
string
|
lul_size
|
ulong
|
public function string of_getcomputername ();//////////////////////////////////////////////////////////////////////////////
//
// Function: of_GetComputerName
//
// Access: public
//
// Arguments: none
//
//
// Returns: string - computer name
//
//
// Description: Return the the computer name the user is using
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 6.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
string ls_computer_name
ulong lul_size = 16 // MAX_COMPUTERNAME_LENGTH + 1
boolean lb_rc
ls_computer_name = space(lul_size)
lb_rc = GetComputerNameA( ls_computer_name, lul_size)
if not lb_rc THEN
return ""
else
return ls_computer_name
end if
end function