When building for x64, the compiler complains: warning C4267: 'argument': conversion from 'size_t' to 'ULONG', possible loss of data In practice, the number string will not exceed a ULONG in length.