#define INCL_DOSFILEMGR USHORT rc = DosDelete(FileName, Reserved); PSZ FileName; /* File name path */ ULONG 0; /* Reserved (must be zero) */ USHORT rc; /* return code */
Example
This example deletes a file in the current directory named test.dat.
#define INCL_DOSFILEMGR #define FILE_DELETE "test.dat" #define RESERVED 0L USHORT rc; rc = DosDelete(FILE_DELETE, /* File path name */ RESERVED); /* Reserved (must be zero) */