[tex-k] New tl build process (fwd)

Peter Breitenlohner peb at mppmu.mpg.de
Wed Mar 4 13:41:46 CET 2009


On Wed, 4 Mar 2009, Taco Hoekwater wrote:

> DWORD comes from Microsoft (as is ReadFile), and is an unsigned long.
>
> BOOL WINAPI ReadFile(
>  __in         HANDLE hFile,
>  __out        LPVOID lpBuffer,
>  __in         DWORD nNumberOfBytesToRead,
>  __out_opt    LPDWORD lpNumberOfBytesRead,
>  __inout_opt  LPOVERLAPPED lpOverlapped
> );
>
> (LPDWORD is a DWORD *)

Does that mean the same thing as usual, i.e. 32Bit for ix86 and 64Bit for
x86_64?

In any case, the code:
 	while (ReadFile(..., ..., ..., &num, NULL) != 0 && num > 0) {
 	  if (num <= 0) {
doesn't make much sense to me. How can the value of num be both >0 and <=0!

PB


More information about the tex-k mailing list