Modifies information in one name space using a path from another name space
#include <nwnamspc.h>
or
#include <nwcalls.h>
NWCCODE N_API NWSetNSEntryDOSInfo (
NWCONN_HANDLE conn,
nuint8 dirHandle,
const nstr8 N_FAR *path,
nuint8 namSpc,
nuint16 searchAttrs,
nuint32 modifyDOSMask,
MODIFY_DOS_INFO N_FAR *dosInfo);
uses calwin32
Function NWSetNSEntryDOSInfo
(conn : NWCONN_HANDLE;
dirHandle : nuint8;
path : pnstr8;
namSpc : nuint8;
searchAttrs : nuint16;
modifyDOSMask : nuint32;
Var dosInfo : MODIFY_DOS_INFO
) : NWCCODE;
(IN) Specifies the NetWare server connection handle.
(IN) Specifies the directory handle of the parent directory.
(IN) Points to the path.
(IN) Specifies the name space of dirHandle and path (see Section 20.5, Name Space Flag Values).
(IN) Specifies the search attributes to use.
(IN) Specifies the information to set.
(IN) Points to MODIFY_DOS_INFO containing the information specified by luModifyDOSMask.
These are common return values; see Return Values (Return Values for C) for more information.
suSrchAttr can have the following values:
|
C Value |
Delphi Value |
Value Name |
|---|---|---|
|
0x0002 |
$0002 |
SA_HIDDEN |
|
0x0004 |
$0004 |
SA_SYSTEM |
|
0x0010 |
$0010 |
SA_SUBDIR_ONLY |
|
0x8000 |
$8000 |
SA_SUBDIR_FILES |
luModifyDOSMask can have the following values:
DM_MODIFIER_ID and DM_LAST_ACCESS_DATE cannot be used when the suSrchAttr parameter contains SA_SUBDIR_ONLY. The server masks off DM_MODIFIER_ID and DM_LAST_ACCESS_DATE on subdirectories. If the resultant mask is 0x0000, the server will return NO_FILES_FOUND_ERROR indicating DM_MODIFIER_ID and DM_LAST_ACCESS_DATE were not set. If the resultant mask still contains a return value other than SUCCESSFUL, NWSetNSEntryDOSInfo will set the remaining bits and return SUCCESSFUL even though DM_MODIFIER_ID and DM_LAST_ACCESS_DATE were not set.