One way to do this is indeed using variable that has constant value assigned to it. Not sure about your assembler but for nasm you can do the following:
Some_Variable equ 0x0F00F0F0
global _somevar
_somevar dd Some_Variable
And then in C:
extern int somevar
Most assemblers have similar keywords so I hope this helps.