of_getwindowsdirectory


pfcapsrv.pbl   >   pfc_n_cst_platformunicode   >   of_getwindowsdirectory   

Full name pfc_n_cst_platformunicode.of_getwindowsdirectory
Access public
Extend of string
Return value string
Prototype public function string of_getwindowsdirectory()

Name Datatype
No Data

Name Datatype
ls_dir string
lul_rc ulong
lul_size ulong

public function string of_getwindowsdirectory ();//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_GetWindowsDirectory
//
//	Access:  public
//
//	Arguments: none
//
//
//	Returns:  string 
//					windows directoy
//					"" if error
//
//	Description:  Return the window's directory
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	5.0   Initial version
//	5.0.03	Changed int variables 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.
//
//////////////////////////////////////////////////////////////////////////////
ulong 	lul_size = 260 // MAX_PATH
ulong		lul_rc
string 	ls_dir 

ls_dir = space(lul_size)

lul_rc = GetWindowsDirectoryW(ls_dir, lul_size)

if lul_rc > 0 THEN
	return ls_dir
else
	return ""
end if

end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.space systemfunctions
pfc_n_cst_platformunicode.GetWindowsDirectoryW pfc_n_cst_platformunicode

     
Full name
No Data

     
Name Scope
No Data