in reply to How to make Win32::API easy to use
I think that Win32::API::Prototype makes it easier than the Win32::API.
use Win32::API::Prototype; ApiLink( 'Kernel32', q[ HANDLE CreateIoCompletionPort( HANDLE FileHandle, HANDLE ExistingCompletionPort, ULONG_PTR CompletionKey, DWORD NumberOfConcurrentThreads )] ); my $hIOCP = CreateIoCompletionPort( $hSocket, 0, 0, 0 );
Maybe a combination of that and your import function would simplify it further?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to make Win32::API easy to use (::Prototype)
by tye (Sage) on Jun 02, 2004 at 20:03 UTC | |
by BrowserUk (Patriarch) on Jun 02, 2004 at 20:13 UTC | |
by tye (Sage) on Jun 02, 2004 at 20:21 UTC |