ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   GetSystemTimes (https://www.excelbanter.com/excel-programming/331448-getsystemtimes.html)

rjwilcox

GetSystemTimes
 
Hello,

How is the GetSystemTimes (not GetSystemTime) API coded with in VBA?
--
rjwilcox

keepITcool

GetSystemTimes
 

cannot find it in my standard api files:
however i adapted from following:

Private Type FILETIME
dwLowDateTime As Long
dwHighDateTime As Long
End Type

Private Declare Sub GetSystemTimeAsFileTime Lib "kernel32.dll" ( _
ByRef lpSystemTimeAsFileTime As FILETIME)

...
+
http://msdn.microsoft.com/library/de.../en-us/sysinfo
/base/getsystemtimes.asp

Private Declare Sub GetSystemTimes Lib "kernel32.dll" ( _
ByRef lpIdleTime, as FILETIME,
ByRef lpKernelTime as FILETIME,
ByRef lpUserTime as FILETIME)

PLEASE NOTE
To compile an application that uses this function, define _WIN32_WINNT
as 0x0501 or later. For more information, see Using the Windows Headers.

Requirements
Client Requires Windows XP SP1.
Server Requires Windows Server 2003.

--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


rjwilcox wrote :

Hello,

How is the GetSystemTimes (not GetSystemTime) API coded with in VBA?



All times are GMT +1. The time now is 10:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com