Test CodeBox:
Code: Select all
global OSBuild := GetVersionEx()
ownPID := DllCall("GetCurrentProcessId")
MsgBox, % Round(GetProcessMemoryInfo(ownPID) / 1024, 0) " K"
GetProcessMemoryInfo(PID) {
size := (A_PtrSize = 8 ? 80 : 44)
VarSetCapacity(PMCEX, size, 0), NumPut(size, PMCEX)
pu := ""
hProcess := DllCall("OpenProcess", "UInt", 0x001F0FFF, "Int", 0, "UInt", PID)
if (hProcess) {
if (OSBuild >= "7600") {
if (DllCall("psapi.dll\GetProcessMemoryInfo", "Ptr", hProcess, "UInt", &PMCEX, "UInt", size)) {
pu := NumGet(PMCEX, (A_PtrSize = 8 ? 72 : 40), "Int64")
}
else
pu := "old OS"
}
DllCall("CloseHandle", "UInt", hProcess)
}
return % pu
}
GetVersionEx() {
VarSetCapacity(OSVerEX, 284, 0), Numput(284, OSVerEX)
DllCall("GetVersionEx", "Ptr", &OSVerEX)
return, NumGet(OSVerEX, 12, "UInt")
}
==> It select nothing and goes top on page
==> change the link from viewtopic.php?f=14&t=325&p=2778 to viewtopic.php?f=14&t=325&p=2778#
Expand/Collapse
==> Expand only to default 14 lines and Collaps all