in reply to Win32::API - How to call an Imported function with Win32::API::Types ?
Yes. Just pass perl variables (NOT constants!) for each of the parameters.
... my $uname = 'USER1'; my $passw = 'PASS'; my $domain = 'DOMAIN'; ## use constant NICE_OPT_NAME => 128; etc. if you want symblic names my $options = 128 | 16 | 2; my $client; OMDClinetCreate( $uname, $passw, $domain, $options, $client ) or die $^E; ## Add this to your other calls also!.
The whole reason for using teh typedefs is that it allows the module to do the required conversion work for you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Win32::API - How to call an Imported function with Win32::API::Types ?
by fx (Pilgrim) on Jul 02, 2004 at 08:26 UTC | |
by BrowserUk (Patriarch) on Jul 02, 2004 at 08:37 UTC | |
by fx (Pilgrim) on Jul 02, 2004 at 11:24 UTC | |
by fx (Pilgrim) on Jul 02, 2004 at 11:29 UTC | |
by BrowserUk (Patriarch) on Jul 02, 2004 at 13:11 UTC |