WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Sponsors
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
Personal menu
Welcome Guest
User:
Pass:
Register!
Resend Validation Email
 
Forum
 

SetFilePointerEx, I am trying to get the SetFilePointerEx function to work, without luck - anyone have a working ASM example?

colinramsden
Quote Post


Active Member
***

Group: Members
Posts: 49
Member No.: 9469
Joined: 27-June 08


I am trying to get the SetFilePointerEx function to work, without luck!

The file has been opened correctly.

The file I want to seek into may exceed 4GB, therefore, I need to pass a 64bit value as the seek location.

When I try to assemble the code, using WinASM and MASM32, I get an error, 'too few arguments to invoke'.

Here is a little snippet of the code I am using.

Thanks in advance, Colin.

.data?
liDistanceToMove LARGE_INTEGER <>

.code
;;Eax contains the handle of the opened file.
invoke SetFilePointerEx,eax,addr liDistanceToMove,NULL,FILE_BEGIN
PMEmail Poster
Top
ragdog
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 874
Member No.: 5019
Joined: 13-May 07


Solved in Masm32 board wink.gif
PMUsers Website
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian
Google