What if you don't know how much space you need? I could create another function that returns a DWORD telling how much space you'd need but it's possible that this value could change between calls (not likely though, as there wouldn't be much of a time gap
)...