in reply to How to create a File Handle Struct with Win32::API::Struct

What are you trying to do?

See http://cpansearch.perl.org/src/COSIMO/Win32-API-0.59/t/03_undef.t instead of GetOsFHandle you can use fileno

  • Comment on Re: How to create a File Handle Struct with Win32::API::Struct

Replies are listed 'Best First'.
Re^2: How to create a File Handle Struct with Win32::API::Struct
by ikegami (Patriarch) on Dec 24, 2009 at 07:21 UTC
    Backwards. GetOsFHandle returns the file handle. fileno is returns a C lib emulation of unix file descriptors.
Re^2: How to create a File Handle Struct with Win32::API::Struct
by way (Sexton) on Dec 24, 2009 at 15:23 UTC

    I'm trying of load and use a dll on Perl, the function itself needed a struct of file handle because read a file and pass it to it, that was a good point to start.

    Thank