plSaveToNewFile

    The plSaveToNewFile function saves the Pe File to new one.

plSaveToNewFile(
   DWORD  plStyle,       	 // Save style
   LPTSTR plFileNameBuffer       // Address of buffer for text      
);


Parameters

plStyle

   Specifies the style of the openning.There are to styles:

 

    Style                                            Meaning

 

    PL_USE_SAVE_DIALOG               When this is selected, the library will

                                                        create a save dialog with filter string "*.*".

                                                        

    PL_NO_SAVE_DIALOG                 If you use this there won't be a save

                                                        dialog.

 

 

plFileNameBuffer

    Containts the address of a buffer with the filename string or the address, where the filename string will be put.If you use PL_USE_SAVE_DIALOG the library will fill the memory pointed by this address with the filename string.If you use PL_NO_SAVE_DIALOG the address *must* point to a filename string, which will be used as file to save.Take a look at the example.

 

Return Value

    If the function succeeds, the return value is TRUE.

Examples

PL_USE_SAVE_DIALOG
 
.data?
     StrFileName db 512 dup(?)
 
.code
     invoke plSaveToNewFile,PL_USE_SAVE_DIALOG,addr strFileName
 

 

PL_NO_SAVE_DIALOG
 
.data
     StrFileName db "C:\My Documents\Pe File.exe",0
 
.code
     invoke plSaveToNewFile,PL_NO_SAVE_DIALOG,addr strFileName
 

See Also

plOpenFile, plCloseFile, plSetFileSize

Pumqara <programs@mail.bg> 2004. All rights reserved.