// Get the time
wchar_t timeString[MAX_PATH];
GetTimeFormatEx(NULL, 0, NULL, L"hh'-'mm'-'ss'-'ms", timeString, _countof(timeString));
// File name will be KinectSnapshot-HH-MM-SS.bmp
StringCchPrintfW(screenshotName, screenshotNameSize, L"%s\\KinectSnapshot-%s.bmp", L"C:\\Users\\John\\Desktop\\KinectPhotos", timeString);
What I want do is not use the GetTimeFormatEx() because I need milliseconds and it can't output them so I want to use instead is: