of_getcomputername


pfcapsrv.pbl   >   pfc_n_cst_platformwin32   >   of_getcomputername   

Full name pfc_n_cst_platformwin32.of_getcomputername
Access public
Extend of string
Return value string
Prototype public function string of_getcomputername()

Name Datatype
No Data

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
//	5.0   Initial version
//	5.0.03	Changed Uint size variable to Ulong for NT4.0 compatibility
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////
boolean	lb_rc
ulong		lul_size = 16 // MAX_COMPUTERNAME_LENGTH + 1
string 	ls_computer_name

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

     
Name Owner
No Data

     
Name Owner
systemfunctions.space systemfunctions
pfc_n_cst_platformwin32.GetComputerNameA pfc_n_cst_platformwin32

     
Full name
No Data

     
Name Scope
No Data