CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2004
    Location
    Cebu Philippines
    Posts
    131

    Question on MoveFileEx

    Hi,

    Where can I see the value equivalent on MoveFileEx dwFlag Parameter.
    what is the value of the ff:
    MOVEFILE_COPY_ALLOWED
    MOVEFILE_DELAY_UNTIL_REBOOT
    MOVEFILE_REPLACE_EXISTING
    MOVEFILE_WRITE_THROUGH

    I would like to use this API in a language where I can not use those predefined variables.

    THanks,
    Neil
    neilg_cebu@yahoo.com

  2. #2
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    Re: Question on MoveFileEx

    You can find these constants defined in WINBASE.H
    Code:
    #define MOVEFILE_REPLACE_EXISTING       0x00000001
    #define MOVEFILE_COPY_ALLOWED           0x00000002
    #define MOVEFILE_DELAY_UNTIL_REBOOT     0x00000004
    #define MOVEFILE_WRITE_THROUGH          0x00000008
    To use them in other programming languages just define with the values above.
    This is an example for VB:
    Code:
    Const MOVEFILE_REPLACE_EXISTING As Integer = 1
    Const MOVEFILE_COPY_ALLOWED As Integer = 2
    Const MOVEFILE_DELAY_UNTIL_REBOOT As Integer = 4
    Const MOVEFILE_WRITE_THROUGH As Integer = 8
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  3. #3
    Join Date
    Jun 2004
    Location
    Cebu Philippines
    Posts
    131

    Re: Question on MoveFileEx

    Thanks a lot.
    Neil
    neilg_cebu@yahoo.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured