A
Arnaldo Fuziy
We're trying to do a few things here without success and I would like to ask
for your help, please.
1) Disable and re-enable auto suspend
have found that we could P/Invoke
SystemParametersInfo(SPI_SETBATTERYIDLETIMEOUT, 0, NULL, TRUE) but haven't
found any working example and have no idea on how to start
2) Get free disk space
we could P/Invoke GetDiskFreeSpaceEx but no working example either
3) Get free memory
P/Invoke GlobalMemoryStatus, no working example either
4) Get remaining battery
- P/Invoke GetSystemPowerStatusEx - have found an example but couldn't get
it to work
- could use OpenNetCF.BatteryStatus but I still don't want to go that way...
I'd rather P/Invoke it myself...
Tks very much,
Arnaldo.
for your help, please.
1) Disable and re-enable auto suspend
have found that we could P/Invoke
SystemParametersInfo(SPI_SETBATTERYIDLETIMEOUT, 0, NULL, TRUE) but haven't
found any working example and have no idea on how to start
2) Get free disk space
we could P/Invoke GetDiskFreeSpaceEx but no working example either
3) Get free memory
P/Invoke GlobalMemoryStatus, no working example either
4) Get remaining battery
- P/Invoke GetSystemPowerStatusEx - have found an example but couldn't get
it to work
- could use OpenNetCF.BatteryStatus but I still don't want to go that way...
I'd rather P/Invoke it myself...
Tks very much,
Arnaldo.