Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default GetSystemTimes

Hello,

How is the GetSystemTimes (not GetSystemTime) API coded with in VBA?
--
rjwilcox
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default 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?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:36 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"