# Deprecated API

## Contents

- Deprecated Methods

- Deprecated Methods
  Method and Description
  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.Native.getPreserveLastError() Last error is always preserved
  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.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
  com.sun.jna.Pointer.setString(long, String, boolean) use `Pointer.setWideString(long,String)` instead.

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