Thread: GetPerformanceInfo

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    37

    GetPerformanceInfo

    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!!
    Last edited by punkywow; 10-26-2009 at 04:19 AM.

Popular pages Recent additions subscribe to a feed