The getname function has variants named _getname32 and _getname64 for use with 32-bit and 64-bit pointer sizes, respectively.