
29.06.2012, 15:07
|
 |
Sir Richard Abramson
|
|
Регистрация: 05.04.2008
Сообщения: 5,505
Версия Delphi: XE10
Репутация: выкл
|
|
Цитата:
Сообщение от ined
Вот так я написал
|
Так эта штукень результаты помещает в "B:TMemoryBasicInformation;".
http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx
Вот из MSDN
Цитата:
Syntax
Код:
SIZE_T WINAPI VirtualQuery(
__in_opt LPCVOID lpAddress,
__out PMEMORY_BASIC_INFORMATION lpBuffer,
__in SIZE_T dwLength
);
Parameters
lpAddress [in, optional]
A pointer to the base address of the region of pages to be queried. This value is rounded down to the next page boundary. To determine the size of a page on the host computer, use the GetSystemInfo function.
If lpAddress specifies an address above the highest memory address accessible to the process, the function fails with ERROR_INVALID_PARAMETER.
lpBuffer [out]
A pointer to a MEMORY_BASIC_INFORMATION structure in which information about the specified page range is returned.
dwLength [in]
The size of the buffer pointed to by the lpBuffer parameter, in bytes.
Return value
The return value is the actual number of bytes returned in the information buffer.
If the function fails, the return value is zero. To get extended error information, call GetLastError. Possible error values include ERROR_INVALID_PARAMETER.
|
|