Ok, I solved the problem by calling GlobalMemoryStatus() inside the DLL and then using references to the PHP variables... Some things I noticed during this playing: - It seems like this code doesn't set the values of $a: $a=$api->InitType("MEMORYSTATUS"); $api->GlobalMemoryStatus($a); or php doesn't pass the object on next time, 'cause inside the DLL all values of it was 0 when I passed it as arg... Could also possibly be the fact that I didn't have any free memory, but that seems little wierd as I tried more than one time... - It crashed as soon as I passed 4 arguments or more... Could be my bad coding though... But the same code worked with only two arguments... The four arguments were "long &a1,long &a2,long &a3,long &a4" and inside the function they were assigned values from my MEMORYSTATUS variable... Testing two at a time worked like I said...
I was wondering, who is the coder(s) of this extension? Does anybody know? // DvDmanDT -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php