Download User Manual
Transcript
AIDA64 Extreme Preferences For reading the contents of the shared memory, a code similar to the following Delphi procedure can be used: Const sharedmem_name = 'AIDA64_SensorValues'; Function ExtApp_SharedMem_ReadBuffer(bu:PChar;bu_size:DWord):Boolean; Var mappedData : PChar; th : THandle; Begin Result:=False; th:=OpenFileMapping(FILE_MAP_READ,False,sharedmem_name); If th<>INVALID_HANDLE_VALUE Then Begin mappedData:=MapViewOfFile(th,FILE_MAP_READ,0,0,0); If mappedData<>Nil Then Begin StrLCopy(bu,mappedData,bu_size); If UnmapViewOfFile(mappedData) Then Result:=True; End; CloseHandle(th); End; End; Here is a shared memory output example: 30