library/src/datastructures/BP-HashTable.cc
// Display the hive within a registry.
Display the hive within a registry.
Display the hive within a registry .
BP_ERROR_T BP_HashRegDisplayHive
(
	P_BP_HASH_TABLE_REGISTRY hreg,
	BP_BOOL                  display_header,
	BP_BOOL                  display_entries
)
{
	BP_GLOBAL_HASH_TABLE_OVERRIDE(ERR_FAILURE);
	if(!hreg->hive)
		return ERR_FAILURE;
	if(display_header)
	{
		printf("\n\t [+] Registry Hive %p", hreg->hive);
		printf("\n\t  total_tables_in_hive:       %u", hreg->total_tables_in_hive);
		printf("\n\t  total_data_entries_in_hive: %u", hreg->total_data_entries_in_hive);
		printf("\n");
	}
	if(display_entries)
	{
		BP_HashRegDisplayTables(hreg, BP_TRUE, BP_TRUE);
	}
	return ERR_SUCCESS;
}
BP_ERROR_T BP_HashRegDisplayHive ( P_BP_HASH_TABLE_REGISTRY hreg , BP_BOOL display_header , BP_BOOL display_entries ) { BP_GLOBAL_HASH_TABLE_OVERRIDE ( ERR_FAILURE ) ; if ( ! hreg -> hive ) return ERR_FAILURE ; if ( display_header ) { printf ( " \n \t " , hreg -> hive ) ; printf ( " \n \t " , hreg -> total_tables_in_hive ) ; printf ( " \n \t " , hreg -> total_data_entries_in_hive ) ; printf ( " \n " ) ; } if ( display_entries ) { BP_HashRegDisplayTables ( hreg , BP_TRUE , BP_TRUE ) ; } return ERR_SUCCESS ; }
Display the hive within a registry.
Display the hive within a registry .
// macro to override hreg on null // ensure we have  ahive // display the hive // display the tables // return indicating success