if i call GetPerformanceInfo
directly out from the psapi.dll it returns
Code:
error 24, The Programm puts out an Command but the Command length is wrong!
whats wrong?
#### Just for additional information
the Performance struct is defined!!
Code:
HANDLE PSAPI;
PSAPI=LoadLibrary("PSAPI.DLL");
if(!PSAPI){
ErrorExit("<EF> LoadLibrary");
}
GetPerformanceInfo=(GetPerformanceInfoPtr)GetProcAddress(PSAPI,"GetPerformanceInfo");
if(!GetPerformanceInfo){
ErrorExit("<EF> Cant do GetPerformanceInfo [psapi.dll]!\n");
}
it loads well there is no probolem Loading the Function!!