A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://java-native-access.github.io/jna/5.17.0/javadoc/com/sun/jna/platform/win32/WTypes.BSTR.html below:

WTypes.BSTR (JNA API)

Alle implementierten Schnittstellen:
NativeMapped
Umschließende Schnittstelle:
WTypes

BSTR wrapper.

From MSDN:

A BSTR (Basic string or binary string) is a string data type that is used by COM, Automation, and Interop functions. Use the BSTR data type in all interfaces that will be accessed from script.

The memory structure:

Length prefix
Length of the data array holding the string data and does not include the final two NULL characters.
Data string
UTF-16LE encoded bytes for the string.
Terminator
Two null characters

The "value" of the BSTR is the pointer to the start of the Data String, the length prefix is the four bytes before that.

The MSDN states, that a BSTR derived from a Nullpointer is treated as a string containing zero characters.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4