| 267 | } |
| 268 | |
| 269 | func QueryWorkingSet(handle windows.Handle, ws *MemoryWorkingSetExInformation, size uint32) (err error) { |
| 270 | r1, _, e1 := syscall.Syscall(procQueryWorkingSetEx.Addr(), 3, uintptr(handle), uintptr(unsafe.Pointer(ws)), uintptr(size)) |
| 271 | if r1 == 0 { |
| 272 | err = errnoErr(e1) |
| 273 | } |
| 274 | return |
| 275 | } |
| 276 | |
| 277 | func SHGetStockIconInfo(id int32, flags uint32, icon *ShStockIcon) (err error) { |
| 278 | r1, _, e1 := syscall.Syscall(procSHGetStockIconInfo.Addr(), 3, uintptr(id), uintptr(flags), uintptr(unsafe.Pointer(icon))) |