|
of_GetSystemDirectory
|
|
Full name
|
pfc_n_cst_platformsol2.of_GetSystemDirectory
|
Access
|
public
|
Extend of
|
string
|
Return value
|
string
|
Prototype
|
public function string of_GetSystemDirectory()
|
Name
|
Datatype
|
li_rc
|
int
|
li_size
|
int
|
ls_dir
|
string
|
public function string of_GetSystemDirectory ();//////////////////////////////////////////////////////////////////////////////
//
// Function: of_GetSystemDirectory
//
// Access: public
//
// Arguments: none
//
//
// Returns: string
// system directory
// "" if error
//
// Description: Return the window's system directory
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0.02 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.
//
//////////////////////////////////////////////////////////////////////////////
int li_size = 260 // MAX_PATH
string ls_dir
int li_rc
ls_dir = space(li_size)
li_rc = GetSystemDirectoryA(ls_dir, li_size)
if li_rc > 0 THEN
return ls_dir
else
return ""
end if
end function