News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

DeleteFile and SHFileOperation

Started by Magnum, January 28, 2014, 03:15:03 AM

Previous topic - Next topic

Magnum

I am curious as to why there are different error messages when a file does not exist.

If an application attempts to delete a file that does not exist, the DeleteFile function fails with ERROR_FILE_NOT_FOUND

While SHFileOperation returns

ERROR_INVALID_HANDLE

    6 (0x6)

    The handle is invalid.
Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org


Magnum

Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org