Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

How to pass a pointer to an array of 'unsigned char' C data type with Win32::API

by apeks_okad (Novice)
on Jul 27, 2016 at 16:00 UTC ( [id://1168655]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $Tx = Win32::API::More->new( 'AID.dll', 'KSENT_TX', 'CPN', 'C');
     #### $^E is non-Cygwin only
    ...
      #### or on Cygwin and non-Cygwin
    die "Error: ".(Win32::FormatMessage(Win32::GetLastError())) if ! $Tx;
    my $rettx = $Tx->Call(0, $data_ref, 1);
    
  2. or download this
    my @data = (129,85,0,224);
    my $data_ref = \@data;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1168655]
Approved by dorko
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-20 15:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found