Code Review: Win32APIPlatformCheck

tfpt review “/shelveset:Win32APIPlatformCheck;REDMOND\tomat”
Comment :
Adds Win32 platform check to Win32API.rb.


Ok. That gets me a little bit further.
gems use the tty? method on IO. which in turn calls

    private extern static IntPtr GetStdHandle(int nStdHandle);

    private extern static int GetFileType(IntPtr hFile);

obviously kernel32 doesn’t exist. Will look at making finding the unix
equivalent for that.
But Win32Api does behave properly now

Met vriendelijke groeten - Best regards - Salutations
Ivan Porto C.
Author of IronRuby in Action (

On Sat, Oct 3, 2009 at 10:55 PM, Tomas M. <