>>The app will be running on a W98 laptop anyway. It just won't test very well under NT. Thanks M$!
>
NT 4 did not implement ACPI support, and your vendor elected not to develop their own for NT. Thank the vendor. Win98 and Win2K both have a common interface for ACPI.
>I suspect that the reason for this would be that NT may have considered only workstations. This is purely a SWAG, however.
>
Consider the context of NT - MS sacrificed features for stability; NT 4 is coming from even pre-APM, in the Win95 context, and I don't know how much experience you had with the early APM stuff, but it was not stable and reliable.
>>I've just noticed that it may also help if I declare lpStatus as REPLICATE(SPACE(1), 12). Running it this way under NT does returns some values....it's just the first 4 bytes all return 32 and the last two 538976288 !?!?
>
>That makes sense. SPACE(1) = ASCII 32. I would be surprised if the other didn't equal what would be returned by ? StringToInteger(REPLICATE(SPACE(1), 4))< g >
>
>To tell if the function worked or not test the return value. Zero will indicate that it failed. Non-zero (one in all liklihood) indicates success.
>
>>Thanks again George.