Get rid of a couple of non-portable long long constants.
This commit is contained in:
parent
1cdffb26c9
commit
903e0b9fc5
|
@ -238,8 +238,6 @@ typedef struct tagMSIPREVIEW
|
||||||
#define MSIHANDLE_MAGIC 0x4d434923
|
#define MSIHANDLE_MAGIC 0x4d434923
|
||||||
#define MSIMAXHANDLES 0xf0
|
#define MSIMAXHANDLES 0xf0
|
||||||
|
|
||||||
#define MSISUMINFO_OFFSET 0x30LL
|
|
||||||
|
|
||||||
DEFINE_GUID(CLSID_IMsiServer, 0x000C101C,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
|
DEFINE_GUID(CLSID_IMsiServer, 0x000C101C,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
|
||||||
DEFINE_GUID(CLSID_IMsiServerX1, 0x000C103E,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
|
DEFINE_GUID(CLSID_IMsiServerX1, 0x000C103E,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
|
||||||
DEFINE_GUID(CLSID_IMsiServerX2, 0x000C1090,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
|
DEFINE_GUID(CLSID_IMsiServerX2, 0x000C1090,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
|
||||||
|
|
|
@ -106,7 +106,7 @@ static SYSTEMTIME lazy_timeout_time;
|
||||||
filetime.dwHighDateTime = ularge.HighPart )
|
filetime.dwHighDateTime = ularge.HighPart )
|
||||||
#endif /* NONAMELESSSTRUCT */
|
#endif /* NONAMELESSSTRUCT */
|
||||||
|
|
||||||
#define TEN_MIL 10000000LL
|
#define TEN_MIL ((ULONGLONG)10000000)
|
||||||
|
|
||||||
/* returns time remaining in seconds */
|
/* returns time remaining in seconds */
|
||||||
long RPCSS_GetLazyTimeRemaining(void)
|
long RPCSS_GetLazyTimeRemaining(void)
|
||||||
|
|
|
@ -205,17 +205,13 @@ void ProcessPageOnNotify(WPARAM wParam, LPARAM lParam)
|
||||||
DWORD dwHours;
|
DWORD dwHours;
|
||||||
DWORD dwMinutes;
|
DWORD dwMinutes;
|
||||||
DWORD dwSeconds;
|
DWORD dwSeconds;
|
||||||
|
ULONGLONG secs;
|
||||||
|
|
||||||
time = PerfDataGetCPUTime(Index);
|
time = PerfDataGetCPUTime(Index);
|
||||||
#ifdef _MSC_VER
|
secs = time.QuadPart / 10000000;
|
||||||
dwHours = (DWORD)(time.QuadPart / 36000000000L);
|
dwHours = secs / 3600;
|
||||||
dwMinutes = (DWORD)((time.QuadPart % 36000000000L) / 600000000L);
|
dwMinutes = (secs % 3600) / 60;
|
||||||
dwSeconds = (DWORD)(((time.QuadPart % 36000000000L) % 600000000L) / 10000000L);
|
dwSeconds = (secs % 3600) % 60;
|
||||||
#else
|
|
||||||
dwHours = (DWORD)(time.QuadPart / 36000000000LL);
|
|
||||||
dwMinutes = (DWORD)((time.QuadPart % 36000000000LL) / 600000000LL);
|
|
||||||
dwSeconds = (DWORD)(((time.QuadPart % 36000000000LL) % 600000000LL) / 10000000LL);
|
|
||||||
#endif
|
|
||||||
wsprintf(pnmdi->item.pszText, _T("%d:%02d:%02d"), dwHours, dwMinutes, dwSeconds);
|
wsprintf(pnmdi->item.pszText, _T("%d:%02d:%02d"), dwHours, dwMinutes, dwSeconds);
|
||||||
}
|
}
|
||||||
if (ColumnDataHints[ColumnIndex] == COLUMN_MEMORYUSAGE)
|
if (ColumnDataHints[ColumnIndex] == COLUMN_MEMORYUSAGE)
|
||||||
|
|
Loading…
Reference in New Issue