From: "Damman Pascal" <[EMAIL PROTECTED]>
> From: "Damman Pascal" <[EMAIL PROTECTED]>
> >> I am trying to use the runtime library "netapi32" (using
> >> Win32::API) to enumerate the groups on a domain. I get the result
> >> ERROR_MORE_DATA and 85 groups returned, so the function works well.
> >> 
> >> BUT: You have to let allocate memory by the runtime
> >> (NetApiBufferAllocate), not the script, so the buffer is actually
> >> "outside the script".
> >> 
> >> Does anybody know how to reference memory that is NOT declared or
> >> allocated by Perl?
> 
> >perldoc -f unpack
> >
> >I believe Win32::Lanman will do all you need from netapi32.
> >(May be installed by ppm from http://Jenda.Krynicky.cz/perl)
> >
> >Jenda
> 
> 
> That indeed will do what I need. Thank you!
> 
> -- Though I'm still curious of how to reference memory which is not
> allocated in Perl itself ...

With the unpack() function.

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to