This topic has not yet been rated - Rate this topic

InternetTimeToSystemTime function

Applies to: desktop apps only

Converts an HTTP time/date string to a SYSTEMTIME structure.

Syntax

BOOL InternetTimeToSystemTime(
  __in   LPCTSTR lpszTime,
  __out  SYSTEMTIME *pst,
  __in   DWORD dwReserved
);

Parameters

lpszTime [in]

Pointer to a null-terminated string that specifies the date/time to be converted.

pst [out]

Pointer to a SYSTEMTIME structure that receives the converted time.

dwReserved [in]

This parameter is reserved and must be 0.

Return value

Returns TRUE if the string was converted, or FALSE otherwise. To get extended error information, call GetLastError.

Remarks

Note  WinINet does not support server implementations. In addition, it should not be used from a service. For server implementations or services use Microsoft Windows HTTP Services (WinHTTP).

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Wininet.h

Library

Wininet.lib

DLL

Wininet.dll

Unicode and ANSI names

InternetTimeToSystemTimeW (Unicode) and InternetTimeToSystemTimeA (ANSI)

See also

Common Functions
WinINet Functions

 

 

Send comments about this topic to Microsoft

Build date: 2/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ