Hi ,
I have been trying to use the win32::API:Struct for a while and mostly it works fine :)
However i have ran into trouble with using structs within structs ... I dont know how to retrieve values from the nested struct ..
example:
Win32::API::Struct->typedef('MDS_Forwarding', qw(
char Address[257];
char Host[64];
char SendAs[128];
char Port[8];
)) or die "Typedef error $!\n";
Win32::API::Struct->typedef('MDS_Block', qw(
MDS_Forwarding User;
char Name[64];
)) or die "Typedef error $!\n";
if i define a MDS_Block struct like this:
my $Block = Win32::API::Struct->new( 'MDS_Block' );
How do i retrieve the nested Address value for the $Block struct??
Thanks in advance!
Patrik K