# File lib\Win32/Console.rb, line 578 def WriteConsoleOutputAttribute( hConsoleOutput, lpAttribute, col, row ) if @@m_WriteConsoleOutputAttribute == nil @@m_WriteConsoleOutputAttribute = Win32API.new( "kernel32", "WriteConsoleOutputAttribute", ['l', 'p', 'l', 'l', 'p'], 'l' ) end nLength = lpAttribute.length() dwWriteCoord = (row << 16) + col lpNumberOfAttrsWritten = ' ' * 4 @@m_WriteConsoleOutputAttribute.call( hConsoleOutput, lpAttribute, nLength, dwWriteCoord, lpNumberOfAttrsWritten ) return lpNumberOfAttrsWritten.unpack('L') end