Examples of WString


Examples of com.sun.jna.WString

            dataOut.write();
           
            synchronized (library) {
                boolean ok = library.CryptProtectData(
                        dataIn.getPointer(),
                        new WString("auth_svn.simple.wincrypt"),
                        null, null, null, new NativeLong(1),
                        dataOut.getPointer());
                if (!ok) {
                    return rawData;
                }
View Full Code Here

Examples of com.sun.jna.WString

      return longPathName;
    }

    if (unicodeChars) {
      try {
        WString pathname = new WString(longPathName);

        char test[] = new char[2 + pathname.length() * 2];
        int r = Kernel32.INSTANCE.GetShortPathNameW(pathname, test, test.length);
        if (r > 0) {
          LOGGER.debug("Forcing short path name on " + pathname);
          return Native.toString(test);
        } else {
View Full Code Here

Examples of com.sun.jna.WString

  }

  public synchronized boolean open(File file) {
    return file.isFile()
        && MediaInfoLibrary.INSTANCE.Open(handle,
            new WString(file.getAbsolutePath())) > 0;
  }
View Full Code Here

Examples of com.sun.jna.WString

  public String option(String option) {
    return option(option, "");
  }

  public synchronized String option(String option, String value) {
    return MediaInfoLibrary.INSTANCE.Option(handle, new WString(option),
        new WString(value)).toString();
  }
View Full Code Here

Examples of com.sun.jna.WString

  }

  public synchronized String get(StreamKind streamKind, int streamNumber,
      String parameter, InfoKind infoKind, InfoKind searchKind) {
    return MediaInfoLibrary.INSTANCE.Get(handle, streamKind.ordinal(),
        streamNumber, new WString(parameter), infoKind.ordinal(),
        searchKind.ordinal()).toString();
  }
View Full Code Here

Examples of com.sun.jna.WString

  public static String staticOption(String option) {
    return staticOption(option, "");
  }

  public static String staticOption(String option, String value) {
    return MediaInfoLibrary.INSTANCE.Option(null, new WString(option),
        new WString(value)).toString();
  }
View Full Code Here

Examples of com.sun.jna.WString

            // use ugly way.
            return false;
        }
        synchronized (library) {
            try {
                int rc = library.SetFileAttributesW(new WString(file.getAbsolutePath()), new NativeLong(ISVNKernel32Library.FILE_ATTRIBUTE_NORMAL));
                return rc != 0;
            } catch (Throwable th) {
            }
        }
        return false;
View Full Code Here

Examples of com.sun.jna.WString

            // use ugly way.
            return false;
        }
        synchronized (library) {
            try {
                int rc = library.SetFileAttributesW(new WString(file.getAbsolutePath()), new NativeLong(ISVNKernel32Library.FILE_ATTRIBUTE_HIDDEN));
                return rc != 0;
            } catch (Throwable th) {
            }
            return false;
        }
View Full Code Here

Examples of com.sun.jna.WString

            SVNFileUtil.setReadonly(dst, false);
            SVNFileUtil.setReadonly(src, true);
        }
        synchronized (library) {
            try {
                int rc = library.MoveFileExW(new WString(src.getAbsoluteFile().getAbsolutePath()), new WString(dst.getAbsoluteFile().getAbsolutePath()), new NativeLong(3));
                return rc != 0;
            } catch (Throwable th) {
            }
        }
        return false;
View Full Code Here

Examples of com.sun.jna.WString

            dataOut.write();
           
            synchronized (library) {
                boolean ok = library.CryptProtectData(
                        dataIn.getPointer(),
                        new WString("auth_svn.simple.wincrypt"),
                        null, null, null, new NativeLong(1),
                        dataOut.getPointer());
                if (!ok) {
                    return rawData;
                }
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.