Read it as text, then use strtol (or wcstol for UNICODE) with the base = 16.
BTW, what are you going to do with such a "pointer address"?