EndUpdateResource function Null safety kernel32

int EndUpdateResource(
  1. int hUpdate,
  2. int fDiscard
)

Commits or discards changes made prior to a call to UpdateResource.

BOOL EndUpdateResourceW(
  HANDLE hUpdate,
  BOOL   fDiscard
);

Implementation

int EndUpdateResource(int hUpdate, int fDiscard) {
  final _EndUpdateResource = _kernel32.lookupFunction<
      Int32 Function(IntPtr hUpdate, Int32 fDiscard),
      int Function(int hUpdate, int fDiscard)>('EndUpdateResourceW');
  return _EndUpdateResource(hUpdate, fDiscard);
}