public bool ReadSector(int sector, IntPtr Buffer) { uint BytesRead = 0; Win32Functions.SetFilePointer(cdHandle, 2048 * sector, 0, Win32Functions.EMoveMethod.Begin); if (Win32Functions.ReadFile(cdHandle, Buffer, 2048, out BytesRead, IntPtr.Zero) == true) { return(true); } else { return(false); } }