Suppose that instead of calling the ANSI version of the MessageBox function, you want to call the Unicode version. You can do this by using the unicode modifier with the @dll.import directive:
/** @dll.import("USER32",unicode) */
static native int MessageBox(int hwnd, String text, String title,
int style);
Since the unicode modifier is present, the Microsoft VM will go through the following steps: