inline ResourceId GenerateNextId();
GenerateNextId generates next resource id for the IdType_Bit_Static and IdType_Bit_Export types.
Resource id to use.