Examples of PointerByReference


Examples of com.sun.jna.ptr.PointerByReference

   * @param sid
   *            SID bytes.
   * @return String SID.
   */
  public static String convertSidToStringSid(PSID sid) {
    PointerByReference stringSid = new PointerByReference();
    if (!Advapi32.INSTANCE.ConvertSidToStringSid(sid, stringSid)) {
      throw new Win32Exception(Kernel32.INSTANCE.GetLastError());
    }
    String result = stringSid.getValue().getWideString(0);
    Kernel32.INSTANCE.LocalFree(stringSid.getValue());
    return result;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.