+ LARGE_INTEGER CollectDataTime;
+
+ /* Convert time and return it */
+ RemoteInfo.CollectDataTime.QuadPart *= -1;
+ CollectDataTime = RtlExtendedLargeIntegerDivide(RemoteInfo.CollectDataTime, 10000, NULL);
+ /* In case of overflow, just return MAX - 1 */
+ if (CollectDataTime.HighPart != 0)
+ {
+ *lpCollectDataTimeout = -2;
+ }
+ else
+ {
+ *lpCollectDataTimeout = CollectDataTime.LowPart;
+ }