# Deprecated API

## Contents

- Deprecated Fields
- Deprecated Methods

- Deprecated Fields
  Field and Description
  com.sun.jna.platform.win32.Variant.COM_DAYS_ADJUSTMENT
  com.sun.jna.platform.win32.Variant.MICRO_SECONDS_PER_DAY

- Deprecated Methods
  Method and Description
  com.sun.jna.platform.win32.Ole32.CLSIDFromString(WString, Guid.CLSID.ByReference) use the String version
  com.sun.jna.platform.win32.Ole32.CoCreateGuid(Guid.GUID.ByReference) use `Ole32.CoCreateGuid(Guid.GUID)`.
  com.sun.jna.platform.win32.Kernel32Util.formatMessageFromHR(WinNT.HRESULT) use `Kernel32Util.formatMessage(WinNT.HRESULT)` instead.
  com.sun.jna.platform.win32.Variant.VARIANT.fromJavaDate(Date)
  com.sun.jna.Native.getDirectByteBuffer(long, long) Use `Pointer.getByteBuffer(long, long)` (since 4.3.0)
  com.sun.jna.Native.getPreserveLastError() Last error is always preserved and available via `Native.getLastError()`
  com.sun.jna.Pointer.getString(long, boolean) use `Pointer.getString(long,String)` or `Pointer.getWideString(long)` instead.
  com.sun.jna.Pointer.getStringArray(long, boolean) use `Pointer.getStringArray(long,String)` or `Pointer.getWideStringArray(long)` instead.
  com.sun.jna.Pointer.getStringArray(long, int, boolean) use `Pointer.getStringArray(long,int,String)` or `Pointer.getWideStringArray(long,int)` instead.
  com.sun.jna.Platform.isAix()
  com.sun.jna.platform.win32.OleAuto.LoadTypeLib(WString, PointerByReference) use the String version
  com.sun.jna.Native.parseVersion(String)
  com.sun.jna.Structure.setFieldOrder(String[]) Use the required method getFieldOrder() instead to indicate the order of fields in this structure.
  com.sun.jna.Native.setPreserveLastError(boolean) Last error is always preserved and available via `Native.getLastError()`
  com.sun.jna.Pointer.setString(long, String, boolean) use `Pointer.setWideString(long,String)` instead.
  com.sun.jna.platform.win32.Variant.VARIANT.toJavaDate(OaIdl.DATE)
  com.sun.jna.platform.win32.WinBase.FILETIME.toLong() Replaced by `WinBase.FILETIME.toTime()`

Copyright © 2007-2016 Timothy Wall. All Rights Reserved.