Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WsDateTimeToFileTime function

Converts a WS_DATETIME object into a FILETIME object. A reference to the FILETIME object is returned by output parameter.

Syntax


HRESULT WINAPI  WsDateTimeToFileTime(
  _In_     const WS_DATETIME* dateTime,
  _Out_    FILETIME*          fileTime,
  _In_opt_ WS_ERROR*          error
);

Parameters

dateTime [in]

A pointer to the WS_DATETIME structure to convert.

fileTime [out]

A pointer to the new FILETIME object that contains the converted time.

error [in, optional]

A pointer to a WS_ERROR object where additional information about the error should be stored if the function fails.

Return value

This function can return one of these values.

Return codeDescription
E_INVALIDARG

One or more arguments are invalid.

WS_E_INVALID_FORMAT

The input data was not in the expected format or did not have the expected value.

 

Remarks

A FILETIME cannot represent dates between January 1, 0001 and January 1, 1601. A WS_DATETIME within this range causes the function to return WS_E_INVALID_FORMAT. (See Windows Web Services Return Values.)

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

WebServices.h

Library

WebServices.lib

DLL

WebServices.dll

 

 

Community Additions

Show:
© 2017 Microsoft