mapi32/tests: Centralize utility function pointer initialization.