LPSTR holding a hex number -> DWORD

I have a LPSTR value holding a numeric value in Hex, such as "00001a9d". How can I easily convert this into a DWORD variable?

atoi and atof won't help me.

Any ideas?
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

cyark1Connect With a Mentor Commented:
Use strtol function. The function gets a base as its third parameter.
All Courses

From novice to tech pro — start learning today.