BeginUpdateResource function Null safety kernel32

int BeginUpdateResource(
  1. Pointer<Utf16> pFileName,
  2. int bDeleteExistingResources

Retrieves a handle that can be used by the UpdateResource function to add, delete, or replace resources in a binary module.

HANDLE BeginUpdateResourceW(
  LPCWSTR pFileName,
  BOOL    bDeleteExistingResources


int BeginUpdateResource(
    Pointer<Utf16> pFileName, int bDeleteExistingResources) {
  final _BeginUpdateResource = _kernel32.lookupFunction<
      IntPtr Function(Pointer<Utf16> pFileName, Int32 bDeleteExistingResources),
      int Function(Pointer<Utf16> pFileName,
          int bDeleteExistingResources)>('BeginUpdateResourceW');
  return _BeginUpdateResource(pFileName, bDeleteExistingResources);