in reply to Win32::API::Struct and GetCursorInfo with PCURSORINFO

The simplest fix is to set the size of the structure manually.

$pci->{cbSize} = 20; ## $pci->sizeof();

That allows the call to return successfully.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon

Replies are listed 'Best First'.
Re^2: Win32::API::Struct and GetCursorInfo with PCURSORINFO
by Anonymous Monk on Jun 26, 2004 at 02:49 UTC
    wasn't that clear from dominiqes post?