LookupIconIdFromDirectory function user32
Searches through icon or cursor data for the icon or cursor that best fits the current display device.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-lookupiconidfromdirectory.
Implementation
Win32Result<int> LookupIconIdFromDirectory(
Pointer<Uint8> presbits,
bool fIcon,
) {
resolveGetLastError();
final result_ = _LookupIconIdFromDirectory(presbits, fIcon ? TRUE : FALSE);
return .new(value: result_, error: GetLastError());
}