The mktemp function has variants named _mktemp32 and _mktemp64 for use with 32-bit and 64-bit pointer sizes, respectively.