http://qs321.pair.com?node_id=11106581


in reply to [SOLVED] Win32::GuiTest::SendMessage/AllocateVirtualMemory and TCHAR**

But you were almost there:

# print "SendMessage status: ", my $ret = SendMessage( $hwnd, NPPM_G +ETOPENFILENAMES, $tcharpp, 0); print "SendMessage status: ", my $ret = SendMessage( $hwnd, NPPM_G +ETOPENFILENAMES, $tcharpp->{ptr}, $nFiles);