Share via


VarDateFromUdate

This function packs a date.

HRESULT VarDateFromUdate( 
  UDATE* pudateIn, 
  unsigned long* dwFlags, 
  DATE* pdateOut 
);

Parameters

  • pudateIn
    [in] Unpacked date.
  • dwFlags
    [in] Returns VAR_VALIDDATE on valid date.
  • pdateOut
    [out] Packed date.

Return Values

The following table shows the HRESULT values that can be returned by this function.

Value Description
S_OK Success.
E_OUTOFMEMORY Out of memory.

Remarks

Passing invalid (and under some circumstances NULL) pointers to this function causes an unexpected termination of the application.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Oleauto.h.
Link Library: Oleaut32.lib.

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.