|
of_getlongfilename
|
|
Full name
|
pfc_n_cst_filesrvhpux.of_getlongfilename
|
Access
|
public
|
Extend of
|
string
|
Return value
|
string
|
Prototype
|
public function string of_getlongfilename(string)
|
Name
|
Datatype
|
lstr_FindData
|
os_finddata
|
lul_handle
|
ulong
|
public function string of_getlongfilename (string as_altfilename);//////////////////////////////////////////////////////////////////////////////
// Public Function: of_GetLongFilename
// Arguments: as_AltFileName The alternate (short) file name for which the long
// file name is desired; an absolute path may be
// specified or it will be relative to the current working
// directory.
// Returns: String The long file name (without the path).
// Returns an empty string if an error occurrs.
// Description: Get the Win32 long file name for an alternate file name.
//////////////////////////////////////////////////////////////////////////////
// Rev. History: Version
// 6.0 Initial version
//////////////////////////////////////////////////////////////////////////////
// Copyright © 1996-1999 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_handle
os_finddata lstr_FindData
// Find the alternate file
lul_handle = FindFirstFileA(as_AltFileName, lstr_FindData)
If lul_handle <= 0 Then Return ""
FindClose(lul_handle)
Return lstr_FindData.ch_filename
end function