This function detects modifications of a file or directory.
#define INCL_WTKUTLFILE
#include <wpstk.h>
PSZ pszName; /* Address of the ASCIIZ path name of the file or directory, which is to be checked for modifications. */
PFILESTATUS3 pfs3; /* Address of a FILESTATUS3 structure previously being filled by DosQueryPathInfo or WtkFileModified for the same file. Every call to WtkFileModified will update that structure, if the file has modified. */
Address of the ASCIIZ path name of the file or directory.
The path name may contain ?: for the drive in order to open the file or
directory on the boot drive.
The name may not include wildcards.
pszEaName (PSZ) - input
Address of the ASCIIZ name of the extended attribute.
phea (PHEA) - output
The address of a variable containing the handle to the extended attribute
ulrc (APIRET) - returns
Return Code.
WtkReadEa returns one of the following return codes:
0 NO_ERROR
8 ERROR_NOT_ENOUGH_MEMORY
87 ERROR_INVALID_PARAMETER
or return codes of the following functions
DosQueryPathInfo
ΓòÉΓòÉΓòÉ <hidden> WtkReadEa Return Value - ulrc ΓòÉΓòÉΓòÉ
ulrc (APIRET) - returns
Return Code.
WtkReadEa returns one of the following return codes:
0 NO_ERROR
8 ERROR_NOT_ENOUGH_MEMORY
87 ERROR_INVALID_PARAMETER
or return codes of the following functions
DosQueryPathInfo
ΓòÉΓòÉΓòÉ <hidden> WtkReadEa - Remarks ΓòÉΓòÉΓòÉ
This function allocates resources for handling the value of the given extended
attribute, which must be freeed by calling WtkCloseEa, when not longer needed.
This function supports boot drive recognition. Specify ?: for the drive in
order to open the file or directory on the boot drive.
ΓòÉΓòÉΓòÉ <hidden> WtkReadEa - Related functions ΓòÉΓòÉΓòÉ
Related Functions
none
ΓòÉΓòÉΓòÉ 8.68. WtkReadFile ΓòÉΓòÉΓòÉ
Select an item:
Syntax
Parameters
Returns
Remarks
Related Functions
ΓòÉΓòÉΓòÉ <hidden> WtkReadFile - Syntax ΓòÉΓòÉΓòÉ
This function reads a file completely into memory.
#define INCL_WTKUTLFILE
#include <wpstk.h>
PSZ pszName; /* Address of the ASCIIZ pathname, which is to be read into memory. */
PSZ *ppszBuffer; /* The address of a pointer variable to a buffer, into which the full file is being read into. The memory allocated by WtkReadFile must be freed by the caller using free(). */
PULONG pulBuflen; /* The address of a variable containing the length of the file, and thus the buffer. */