move the defines in resource.h
use UNREFERENCED_PARAMETER for consistency