MoveFileEx

Steven French sfrench at us.ibm.com
Fri Nov 8 18:24:01 GMT 2002


The translation of the remaining mystery move flags into SMBs turned out to
be pretty dull -

MoveFileEx(MOVEFILE_REPLACE_EXISTING) = SMBDelete then SMBRename
same for MoveFileEx(MOVEFILE_COPY_ALLOWED | MOVEFILE_REPLACE_EXISTING)

and MoveFileEx(MOVEFILE_COPY_ALLOWED) =  SMBRename

Interestingly all of them do a QPathInfo AND a NTCreateX open (with some
hard to decode flags that seem to be safely ignored) of the source prior to
the rename

MoveFileEx(DELAY_UNTIL_REBOOT) didn't really do anything remote just
generated QPathInfo calls so presumably only updates the local registry
(sounds like a Windows design flaw)





Steve French
Senior Software Engineer
Linux Technology Center - IBM Austin
phone: 512-838-2294
email: sfrench at us.ibm.com





More information about the samba-technical mailing list