--- os2sdk/demos/examples/setmaxfh/setmaxfh.c 2018/08/09 12:25:13 1.1.1.1 +++ os2sdk/demos/examples/setmaxfh/setmaxfh.c 2018/08/09 12:26:14 1.1.1.2 @@ -1,4 +1,4 @@ -/*** SetMaxFH +/*** SetMaxFH * * This call sets the maximum number of file handles that may be * opened at one time. The only indicator you have that the @@ -8,7 +8,7 @@ * the handles are currently available. The only way to check * is to use them all up. * - * The system default may be increased by using the DOSSETMAXFH + * The system default may be increased by using the DosSetMaxFH * call. It may NOT be decreased. * * This function does NOT work in Family API mode. @@ -19,16 +19,18 @@ * decrease the limit, and really big values which should fail due * to system resource limits. * - * Copyright (C) Microsoft Corp. 1986 + * Created by Microsoft Corp. 1986 */ -#include "doscalls.h" + +#include +#include main(argc, argv) int argc; char *argv[]; { - int max_files; + USHORT max_files; int rc; if(argc == 2) @@ -36,10 +38,10 @@ char *argv[]; else max_files = 30; - rc = DOSSETMAXFH(max_files); + rc = DosSetMaxFH(max_files); if(rc == 0) - printf("DOSSETMAXFH(%d) succeeded.\n", max_files); + printf("DosSetMaxFH(%d) succeeded.\n", max_files); else - printf("DOSSETMAXFH(%d) failed, error = %d\n", max_files, rc); + printf("DosSetMaxFH(%d) failed, error = %d\n", max_files, rc); }