All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.jna.win32.W32APIOptions Maven / Gradle / Ivy

There is a newer version: 3.5.2
Show newest version
package com.sun.jna.win32;

import java.util.HashMap;
import java.util.Map;
import com.sun.jna.Library;

public interface W32APIOptions extends StdCallLibrary {
    /** Standard options to use the unicode version of a w32 API. */
    Map UNICODE_OPTIONS = new HashMap() {
        {
            put(OPTION_TYPE_MAPPER, W32APITypeMapper.UNICODE);
            put(OPTION_FUNCTION_MAPPER, W32APIFunctionMapper.UNICODE);
        }
    };
    /** Standard options to use the ASCII/MBCS version of a w32 API. */
    Map ASCII_OPTIONS = new HashMap() {
        {
            put(OPTION_TYPE_MAPPER, W32APITypeMapper.ASCII);
            put(OPTION_FUNCTION_MAPPER, W32APIFunctionMapper.ASCII);
        }
    };
    Map DEFAULT_OPTIONS = Boolean.getBoolean("w32.ascii") ? ASCII_OPTIONS : UNICODE_OPTIONS;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy