in reply to Win32::API passing a parameter by reference issue

BTW: Please consider using  <readmore> ... code ... </readmore> tags around huge chunks of code when you include them in your posts.