HvpProtectBin

NTSTATUS __stdcall HvpProtectBin(
        _HHIVE *Hive,
        UINT64 BinSize,
        _HSTORAGE_TYPE Type,
        UINT64 BinStart,
        _HBIN *Bin,
        UINT8 IsTemporary){
  NTSTATUS v6; 

  v6 = 0;
  if( (_BYTE)BinStart )
  {
    if( !(unsigned int)ExProtectPool(*(VOID **)&Type, (unsigned int)BinSize, 4ui64) )
      return -1073741670;
  }
  else
  {
    ExProtectPool(*(VOID **)&Type, (unsigned int)BinSize, 2ui64);
  }
  return v6;
}

Referenced by:

HvpAddBin
HvpRemapAndEnlistHiveBins