Your first suggestion produced no errors. I really don't need to set a procedure pointer. I only needed to add these lines to the top of the program:
$set ilpinvoke"kernel32"
$set ilpinvoke"gdi32"
Your first suggestion produced no errors. I really don't need to set a procedure pointer. I only needed to add these lines to the top of the program:
$set ilpinvoke"kernel32"
$set ilpinvoke"gdi32"