Re: How to write a DLL that can play with w32api?

From: Date: Sat, 14 Jun 2003 21:54:31 +0000
Subject: Re: How to write a DLL that can play with w32api?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-151517@lists.php.net to get a copy of this message
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

« previous php.general (#151517) next »