Task icon in Windows

BlitzMax Forums/BlitzMax Programming/Task icon in Windows

I suposuse you have to pass the memory address of the long variable, not the value itself. It may be interpretating the value of the LONG as an address to a unsigned long value. Use pointers or even the memory address of your LONG variable when calling the API.