local $Data::Dumper::Useqq = 1;
to:my $DsGetDcName = Win32::API->new('Netapi32', 'DsGetDcName', 'PPSPNS', + 'N') or die Win32::FormatMessage(Win32::GetLastError);
my $DsGetDcName_declare = <<'END_OF_DECLARE'; DWORD DsGetDcName( LPCTSTR ComputerName, LPCTSTR DomainName, LPGUID DomainGuid, LPCTSTR SiteName, ULONG Flags, LPDOMAIN_CONTROLLER_INFO DomainControllerInfo ); END_OF_DECLARE my $DsGetDcName = Win32::API->new( Netapi32 => $DsGetDcName_declare ) or die Win32::FormatMessage(Win32::GetLastError);
In reply to Re: Win32::API: deciphering a returned pointer to a struct
by Util
in thread Win32::API: deciphering a returned pointer to a struct
by ggariepy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |