The signature is completely wrong
Well, not completely I would say.
Changing the D -> N for the dwReserved (nice catch), does the trick for me on the formerly crashing (as in system/OS popup) 5.8.8.
As for the 2 pointers (1st and 5th argument). Using P is O. K. of course, but since these have to be given as Null anyway, going whith longs (N) is fine too, with the additional convenience to choose between either 0 or undef as a valid initialization value.
It's a bit confusing that all 5.8.6 installations I tried were far more forgiving and ran the OP code successfully for me.
In reply to Re^2: Win32::API help
by pKai
in thread Win32::API help
by Zukoff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |