Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:docs:fapi:dosfindclose [2018/08/30 13:37] – created prokushev | en:docs:fapi:dosfindclose [2021/09/18 04:33] (current) – prokushev | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{page> | ||
| - | This call closes the association between a directory handle and a [[DosFindFirst (FAPI)|DosFindFirst]] or [[DosFindNext (FAPI)|DosFindNext]] directory search function. | + | ====== DosFindClose ====== | 
| - | ==Syntax== | + | This call closes the association between a directory handle and a [[DosFindFirst]] or [[DosFindNext]] directory search function. | 
| - |   | + | |
| - | ==Parameters== | + | ===== Syntax ===== | 
| - | ;DirHandle ([[HDIR]]) - input : bHandle previously associated with a DosFindFirst by the system, or used with a DosFindNext directory search function. | + | |
| + | <code c> | ||
| + | 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 26: | 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 35: | 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 60: | Line 76: | ||
|                       |                       | ||
|    rc = DosFindClose(FindHandle);  |    rc = DosFindClose(FindHandle);  | ||
| - | </PRE> | + | </code> | 
| - | + | ||
| - | + | ||
| - | ====== Note ====== | + | ===== Note ===== | 
| Text based on [[http:// | Text based on [[http:// | ||
| {{page> | {{page> | ||




