Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

MoveFileFlags (Enums)
 
.
Summary

C# Definition:

[Flags]
enum MoveFileFlags
{
    MOVEFILE_REPLACE_EXISTING           = 0x00000001,
    MOVEFILE_COPY_ALLOWED               = 0x00000002,
    MOVEFILE_DELAY_UNTIL_REBOOT         = 0x00000004,
    MOVEFILE_WRITE_THROUGH              = 0x00000008,
    MOVEFILE_CREATE_HARDLINK            = 0x00000010,
    MOVEFILE_FAIL_IF_NOT_TRACKABLE      = 0x00000020
}

VB.Net Definition:

Enum MoveFileFlags As UInteger
Enum MoveFileFlags As Integer
    MOVEFILE_REPLACE_EXISTING           = &H1
    MOVEFILE_COPY_ALLOWED               = &H2
    MOVEFILE_DELAY_UNTIL_REBOOT         = &H4
    MOVEFILE_WRITE_THROUGH              = &H8
    MOVEFILE_CREATE_HARDLINK            = &H10
    MOVEFILE_FAIL_IF_NOT_TRACKABLE      = &H20
End Enum

Notes:

This is the command you would use for an uninstaller program, a program to delete itself. If you set the first parameter to a directory everything inside of the directory can be (re)moved. To delete set the second parameter to null.

None.

Documentation
 

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it!

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions