Skip to content

Synergex/windir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

windir

Created Date: 8/22/2005
Last Updated: 10/19/2010
Description: Example of using the DLL API to retrieve file information (like a dir command) (Update for Synergy 9.5 compatibility)
Platforms: Windows; Unix; OpenVMS
Products: Synergy DBL; DLL API
Minimum Version: 7.5
Author: Steve Ives


Additional Information: USAGE NOTES:

The WinDir function accepts between three and five parameters:

;Required parameters

a_spec ,a ;Search spec

The search spec could be something like C:\WINDOWS*.EXE

a_handle ,n ;Returned handle containing results

WinDir allocates and returns a dynamic memory handle containing the details of the matching files. The layout of the data is defined by the structure WINDIR$DATA in WinDir.def, which also defines several macros to allow you to easily access the return data.

a_count ,n ;Returned number of matches

This is the number of file records returned in the memory handle

;Optional parameters

a_case ,n ;Return filenames in upper or lower case

WinDir can optionally convert all file names to upper or lower case. Optionally pass WINDIR$UPPERCASE or WINDIR$LOWERCASE

a_sort ,n ;Sort return data

WinDir can optionally sort the return data in either ascending or descending sequence of file name or size. Pass one of:

WINDIR$SORT_NAME (default) WINDIR$SORT_NAMEDESC WINDIR$SORT_SIZE WINDIR$SORT_SIZEDESC

IMPORTANT:

The dynamic memory handle returned by WinDir is a STATIC memory handle. The WinDir function allocates the memory (you just pass an i4 handle), but it is the responsibility of the calling routine to deallocate the memory.

About

Example of using the DLL API to retrieve file information (like a dir command) (Update for Synergy 9.5 compatibility)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors