Functions for throwing exceptions on WinAPI errors.
Exception thrown on WinAPI errors.
Convinient template to call WinAPI function and throw WinAPIException on error.
HANDLE processHeap = enforceWinAPI!GetProcessHeap(); assert(processHeap); // Will always pass.