Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:docs:fapi:dosfindclose [2020/12/05 10:39] – prokushev | en:docs:fapi:dosfindclose [2021/09/18 04:33] (current) – prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{logos:os2.gif? | + | {{page>en:templates:fapiint}} |
====== DosFindClose ====== | ====== DosFindClose ====== | ||
- | This call closes the association between a directory handle and a [[DosFindFirst (FAPI)|DosFindFirst]] or [[DosFindNext (FAPI)|DosFindNext]] directory search function. | + | This call closes the association between a directory handle and a [[DosFindFirst]] or [[DosFindNext]] directory search function. |
- | ==Syntax== | + | ===== Syntax ===== |
- | | + | |
- | ==Parameters== | + | <code c> |
- | ;DirHandle ([[HDIR]]) - input : bHandle previously associated with a DosFindFirst by the system, or used with a DosFindNext directory search function. | + | DosFindClose (DirHandle) |
+ | </ | ||
+ | |||
+ | ===== Parameters ===== | ||
+ | |||
+ | | ||
+ | |||
+ | ===== Return Code ===== | ||
+ | |||
+ | rc ([[USHORT]]) - return | ||
- | ==Return Code== | ||
- | rc (USHORT) - return | ||
Return code descriptions are: | Return code descriptions are: | ||
- | * 0 NO_ERROR | ||
- | * 6 ERROR_INVALID_HANDLE Remarks | ||
- | ==Remarks== | + | * 0 NO_ERROR |
- | When '' | + | * 6 ERROR_INVALID_HANDLE Remarks |
+ | |||
+ | ===== Remarks ===== | ||
+ | |||
+ | When DosFindClose is issued, a subsequent | ||
+ | |||
+ | ===== Bindings ===== | ||
+ | |||
+ | ==== C Binding ==== | ||
- | ==Bindings== | + | <code c> |
- | ===C Binding=== | + | |
- | <PRE> | + | |
#define INCL_DOSFILEMGR | #define INCL_DOSFILEMGR | ||
Line 29: | Line 39: | ||
HDIR DirHandle; | HDIR DirHandle; | ||
USHORT | USHORT | ||
- | </PRE> | + | </code> |
- | ===MASM Binding=== | + | ==== MASM Binding ==== |
- | <PRE> | + | |
+ | <code asn> | ||
EXTRN DosFindClose: | EXTRN DosFindClose: | ||
INCL_DOSFILEMGR | INCL_DOSFILEMGR | ||
Line 38: | Line 49: | ||
PUSH | PUSH | ||
CALL | CALL | ||
+ | |||
+ | </ | ||
Returns WORD | Returns WORD | ||
- | </ | ||
- | ==Example== | + | ==== Example ==== |
This example searches for a file, then closes the search. | This example searches for a file, then closes the search. | ||
- | <PRE> | + | <code c> |
#define INCL_DOSFILEMGR | #define INCL_DOSFILEMGR | ||
#define SEARCH_PATTERN " | #define SEARCH_PATTERN " | ||
Line 63: | Line 76: | ||
| | ||
rc = DosFindClose(FindHandle); | rc = DosFindClose(FindHandle); | ||
- | </PRE> | + | </code> |
- | + | ||
- | + | ||
- | ====== Note ====== | + | ===== Note ===== |
Text based on [[http:// | Text based on [[http:// | ||
{{page> | {{page> |