plSetFileSize

The plSetFileSize function increases/decreases the size of the opened file and also puts 00h at the end of it.
plSetFileSize( DWORD plFileSize, // The DWORD contains new size of file );
Parameters
plFileSize
A DWORD that contains the new size of the file.
Return Value
If the function succeeds, the return value is TRUE.
Remarks
After executing this function, because of the refreshing there could be changes in the PE Header so may be your filled PL_PEINFO and PL_POINTERS structures may get out of date.Use the plGetPeInfo to refresh your structures.
Example
invoke plSetFileSize,12345678h |
See Also

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