Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly Language > Re: _fillbuf
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 14 Topic 3451 of 5097
Post > Topic >>

Re: _fillbuf

by "¬a\\/b" <al@[EMAIL PROTECTED] > Jul 3, 2006 at 06:35 PM

On Mon, 03 Jul 2006 14:50:11 +0200, "¬a\\/b" <al@[EMAIL PROTECTED]
> wrote:
>On Mon, 03 Jul 2006 09:23:55 +0200, "¬a\\/b" <al@[EMAIL PROTECTED]
> wrote:
>>.c2: [i+@[EMAIL PROTECTED]
 r=@[EMAIL PROTECTED]
 c=s; ReadFile(r, a, j, c, 0);
>                  ^^^^^
>this should be r=[i+@[EMAIL PROTECTED]
>
>i wrote a function for to write in the files
>if in b there is the int_file_descrittor, and any function return its
>value in "a" in your opinione something of this kind can work in a
>windows OS?
>
>int __stdcall write_m(int fd, char*  base, int len)
>{int   a, b, k, mm, *s=&mm, b=fd;
>     a=GetFileType(b); if(a==FILE_TYPE_DISK) {k=-1; goto .c2;}
                        if(a!=

>     a=SetFilePointer(b, 0, 0, FILE_END); 
>     if(a==-1) {CF=1; a=0; goto .cf;}
>     k=a; a+=len; a=LockFile(b, k, 0, a, 0);
>     if(a==0) {CF=1; goto .cf;}
>.c2: c=base; r=len; a=s; a=WriteFile(b, c, r, a, 0);
>     if(k==-1) goto .c3;
>     a=k; a+=len; a=UnlockFile(b, k, 0, a, 0);
>     if(a==0) {CF=1; a=*s; goto .cf;} 
>.c3: a=*s; if(a!=len) {CF=1; goto .cf;}
>     CF=0;
>.cf: return a;
>}
 




 14 Posts in Topic:
_fillbuf
"¬a\\/b" <al  2006-07-03 09:23:55 
Re: _fillbuf
"¬a\\/b" <al  2006-07-03 14:50:11 
Re: _fillbuf
"f0dder" <f0  2006-07-03 16:12:12 
Re: _fillbuf
"¬a\\/b" <al  2006-07-03 18:35:15 
Re: _fillbuf
"¬a\\/b" <al  2006-07-04 18:23:50 
Re: _fillbuf
"santosh" <s  2006-07-03 07:30:02 
Re: _fillbuf
"¬a\\/b" <al  2006-07-03 18:35:10 
Re: _fillbuf
"¬a\\/b" <al  2006-07-03 20:28:32 
Re: _fillbuf
Frank Kotler <fbkotler  2006-07-03 15:08:10 
Re: _fillbuf
"Julienne Walker&quo  2006-07-03 08:26:10 
Re: _fillbuf
"santosh" <s  2006-07-03 09:03:59 
Re: _fillbuf
rhyde@[EMAIL PROTECTED]   2006-07-03 13:53:46 
Re: _fillbuf
"santosh" <s  2006-07-03 14:19:48 
Re: _fillbuf
"¬a\\/b" <al  2006-07-04 18:24:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Aug 20 12:56:11 CDT 2008.