hash method
Creates a hash value using the internal state of the moniker.
Throws a WindowsException on failure.
To learn more, see learn.microsoft.com/windows/win32/api/objidl/nf-objidl-imoniker-hash.
Implementation
int hash() {
final pdwHash = adaptiveCalloc<Uint32>();
final hr$ = HRESULT(_HashFn(ptr, pdwHash));
if (hr$.isError) {
free(pdwHash);
throw WindowsException(hr$);
}
final result$ = pdwHash.value;
free(pdwHash);
return result$;
}