Printing a ULARGE_INTEGER to a console

c, types, winapi, windows

Solution

Going by http://msdn.microsoft.com/en-us/library/windows/desktop/aa383742(v=vs.85).aspx, I'm pretty sure it'd be something like this:

printf("%llu\n", some_ularge_integer.QuadPart);

Problem

I would like to print the size of the root volume set by GetDiskFreeSpaceEx(...), but the value it gives me is a ULARGE_INTEGER. What is the best way to go about printing this to a console as a decimal number? I am using plain C and Windows API functions.

Original source