안녕하세요
제가 API 중에 ReadFile()를 사용하려는데
Var
  Count : Integer;
begin
.
.
.
    ReadFile(F, Buf[1], 512, Count, nil);
.
.
.
end;
이렇게 했거든요
근데      ReadFile(F, Buf[1], 512, Count, nil);
                                  ~~~~~
저 Count 부분에서 Types of actual and formal var parameters must be identical
에러가 납니다.
ReadFile()의 원형이
BOOL ReadFile(
   HANDLE hFile, // handle of file to read 
   LPVOID lpBuffer, // address of buffer that receives data  
   DWORD nNumberOfBytesToRead, // number of bytes to read 
   LPDWORD lpNumberOfBytesRead, // address of number of bytes read 
   LPOVERLAPPED lpOverlapped  // address of structure for data 
  );
이건데요
LPDWORD lpNumberOfBytesRead,
이부분이 Count 부분이쟎아요?
어떻게 바꿔야 할까요?