of_getlongfilename


pfcapsrv.pbl   >   pfc_n_cst_filesrvwin32   >   of_getlongfilename   

Full name pfc_n_cst_filesrvwin32.of_getlongfilename
Access public
Extend of string
Return value string
Prototype public function string of_getlongfilename(string)

Name Datatype
No Data

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
//						5.0   Initial version
//						5.0.03	Changed long variables to Ulong for NT4.0 compatibility
//////////////////////////////////////////////////////////////////////////////
//	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

     
Name Owner
No Data

     
Name Owner
pfc_n_cst_filesrvwin32.FindFirstFileA pfc_n_cst_filesrvwin32
pfc_n_cst_filesrvwin32.FindClose pfc_n_cst_filesrvwin32

     
Full name
pfc_n_cst_filesrvwin32.os_finddata

     
Name Scope
No Data