Article View: be.comp.programming
Article #5754Re: CreateFile
From: Pieter Philippaerts
Date: Sat, 08 Mar 2003 20:03
Date: Sat, 08 Mar 2003 20:03
18 lines
2173 bytes
2173 bytes
"Ivan Van den Bossche" <ivan.van.den.bossche@pandora.be> wrote in message news:TSraa.2409$Vq.380@afrodite.telenet-ops.be... > Weet er iemand hoe > ik die positie in bytes kan opvragen? Je kan dat doen via SetFilePointer(). Wat je doet is die methode aanroepen met dwMoveMethod = FILE_CURRENT, lDistanceToMove = 0 en lpDistanceToMoveHigh = 0 [je kan hier ook NULL specifieren, maar dan kan je nooit de positie opvragen van files > 4.2Gb]. Nadat je die methode hebt aangeroepen geeft die je de huidige positie terug: "If the SetFilePointer function succeeds and lpDistanceToMoveHigh is NULL, the return value is the low-order DWORD of the new file pointer. If lpDistanceToMoveHigh is not NULL, the function returns the low order DWORD of the new file pointer, and puts the high-order DWORD of the new file pointer into the LONG pointed to by that parameter." Mvg, Pieter Philippaerts
Technical Details
Message-ID:
<1047153764.151478@seven.kulnet.kuleuven.ac.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!syros.belnet.be!naxos.belnet.be!news.belnet.be!not-for-mailReferences:
<TSraa.2409$Vq.380@afrodite.telenet-ops.be>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 107324,d7051ebf7a1600bb X-Google-Attributes: gid107324,public X-Google-Thread: fcea4,d7051ebf7a1600bb X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2003-03-08 12:02:59 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!syros.belnet.be!naxos.belnet.be!news.belnet.be!not-for-mail From: "Pieter Philippaerts" <pieter@no_spam.mentalis.org> Newsgroups: be.comp.programming,nl.comp.programmeren Subject: Re: CreateFile Date: Sat, 8 Mar 2003 21:03:37 +0100 Organization: KULeuvenNet Lines: 20 Message-ID: <1047153764.151478@seven.kulnet.kuleuven.ac.be> References: <TSraa.2409$Vq.380@afrodite.telenet-ops.be> NNTP-Posting-Host: seven.kulnet.kuleuven.ac.be X-Trace: naxos.belnet.be 1047153765 16211 134.58.127.12 (8 Mar 2003 20:02:45 GMT) X-Complaints-To: abuse@belnet.be NNTP-Posting-Date: Sat, 8 Mar 2003 20:02:45 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3718.0 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3718.0 Cache-Post-Path: seven.kulnet.kuleuven.ac.be!unknown@localhost X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/)