in reply to Re: How to create a File Handle Struct with Win32::API::Struct
in thread How to create a File Handle Struct with Win32::API::Struct
If i use Win32::File to create a file handle, Perl complain about can't packetize
So i created a struct like the example becouse the dll was made with visual c++ and appear work
Win32::API::Struct->typedef( 'HANDLE', qw( LPCTSTR lpFileName; DWORD dwDesiredAccess; DWORD dwShareMode; LPSECURITY_ATTRIBUTES lpSecurityAttributes; DWORD dwCreationDisposition; DWORD dwFlagsAndAttributes; HANDLE hTemplateFile; )); my $handle = Win32::API::Struct->new( 'HANDLE' );
Unfortunately without documentation, i receive a Dll Runtime Error, so i guest that i missed other parameter but this's another history
Thank and Merry Christmas
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to create a File Handle Struct with Win32::API::Struct
by ikegami (Patriarch) on Dec 24, 2009 at 16:02 UTC | |
by way (Sexton) on Dec 24, 2009 at 20:31 UTC | |
by ikegami (Patriarch) on Dec 24, 2009 at 23:37 UTC |