aboutsummaryrefslogtreecommitdiff
path: root/win32/lazyload.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* win32: use lazy loading for certain DLLsRon Yorston2020-06-021-14/+2
| | | | | | | | | Only a handful of functions are used from shell32.dll, userenv.dll and psapi.dll. Mostly these functions are in out of the way places. By loading the functions only when required we can avoid the startup cost of linking the three DLLs in the common case that they aren't needed.
* win32: reduce static storage needed for lazy loadingRon Yorston2019-01-041-15/+11
| | | | | | Only the generic function pointer and initialisation flag need to be in static storage. The DLL and function names and the specialised function pointer can be local.
* ps: add support for CPU and elapsed time columnsRon Yorston2017-09-011-0/+43
It may be necessary to run ps as administrator to get information about processes belonging to other users. The code to detect GetTickCount64 at run-time was imported from Git for Windows.