no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Next revision | |||
— | en:docs:fapi:dosfindclose [2018/08/30 13:37] – created prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | This call closes the association between a directory handle and a [[DosFindFirst (FAPI)|DosFindFirst]] or [[DosFindNext (FAPI)|DosFindNext]] directory search function. | ||
+ | |||
+ | ==Syntax== | ||
+ | | ||
+ | |||
+ | ==Parameters== | ||
+ | ;DirHandle ([[HDIR]]) - input : bHandle previously associated with a DosFindFirst by the system, or used with a DosFindNext directory search function. | ||
+ | |||
+ | ==Return Code== | ||
+ | rc (USHORT) - return | ||
+ | Return code descriptions are: | ||
+ | * 0 NO_ERROR | ||
+ | * 6 ERROR_INVALID_HANDLE Remarks | ||
+ | |||
+ | ==Remarks== | ||
+ | When '' | ||
+ | |||
+ | ==Bindings== | ||
+ | ===C Binding=== | ||
+ | <PRE> | ||
+ | #define INCL_DOSFILEMGR | ||
+ | |||
+ | USHORT | ||
+ | |||
+ | HDIR DirHandle; | ||
+ | USHORT | ||
+ | </ | ||
+ | |||
+ | ===MASM Binding=== | ||
+ | <PRE> | ||
+ | EXTRN DosFindClose: | ||
+ | INCL_DOSFILEMGR | ||
+ | |||
+ | PUSH | ||
+ | CALL | ||
+ | |||
+ | Returns WORD | ||
+ | </ | ||
+ | |||
+ | ==Example== | ||
+ | This example searches for a file, then closes the search. | ||
+ | <PRE> | ||
+ | #define INCL_DOSFILEMGR | ||
+ | #define SEARCH_PATTERN " | ||
+ | #define FILE_ATTRIBUTE 0 | ||
+ | #define RESERVED 0L | ||
+ | |||
+ | HDIR FindHandle; | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | rc = DosFindFirst(SEARCH_PATTERN, | ||
+ | & | ||
+ | | ||
+ | & | ||
+ | | ||
+ | & | ||
+ | | ||
+ | rc = DosFindClose(FindHandle); | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ====== Note ====== | ||
+ | |||
+ | Text based on [[http:// | ||
+ | |||
+ | {{page> |