Servertec
Jenie
1.0.1 09/04/2005

See:
          Description

Packages
stec.jenie  

 

Servertec Jenie 1.0.1 09/04/2005

Servertec Jenie allows developers to directly access native libraries without having to use Java Native Interface (JNI) and without having to write C/C++ code.

Jenie can be used with any Java implementation that supports Java version 1.1.x or later and Java Native Interface (JNI).


The following table shows the C/C++ data types, the Jenie equivalent, any C/C++ aliases and the value ranges.

C/C++ Data Types

Name Jenie Class Bytes Other Names Value Range
__int8 INT8 1 char
signed char
–128 to 127
__int16 INT16 2 short
short int
signed short int
–32,768 to 32,767
__int32 INT32 4 long
long int
signed long int
–2,147,483,648 to 2,147,483,647
__int64 INT64 8 long long
signed long long
–9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
bool BOOL 1 none false or true
char CHAR 1 signed char –128 to 127
enum INT
LONG
4
8
none –2,147,483,648 to 2,147,483,647 on 32-bit systems
–9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 on 64-bit systems
float FLOAT 4 none 3.4E +/- 38 (7 digits)
double DOUBLE 8 none 1.7E +/- 308 (15 digits)
int INT 4
8
signed
signed int
–2,147,483,648 to 2,147,483,647 on 32-bit systems
–9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 on 64-bit systems
long INT32 4 long int
signed long int
–2,147,483,648 to 2,147,483,647
long double DOUBLE 8 none 1.7E +/- 308 (15 digits)
long long LONG 8 none –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
short SHORT 2 short int
signed short int
–32,768 to 32,767
unsigned __int8 UINT8 1 unsigned char 0 to 255
unsigned __int16 UINT16 2 unsigned short
unsigned short int
0 to 65,535
unsigned __int32 UINT32 4 unsigned
unsigned int
0 to 4,294,967,295
unsigned __int64 UINT64 8 none 0 to 18,446,744,073,709,551,615
unsigned char UCHAR 1 none 0 to 255
unsigned int UINT 4
8
unsigned 0 to 4,294,967,295 on 32-bit systems
0 to 18,446,744,073,709,551,615 on 64-bit systems
unsigned long UINT32 4 unsigned long int 0 to 4,294,967,295
unsigned short USHORT 2 unsigned short int 0 to 65,535
wchar_t WCHAR 2 __wchar_t 0 to 65,535

Windows Data Types

  • Most of the pointer-type names begin with a prefix of P or LP.
  • Handles refer to a resource that has been loaded into memory.

    Data Type Jenie Class Description
    ATOM UINT16 Atom.
    BOOL BOOL Boolean. true or false.
    BOOLEAN BOOL Boolean. true or false.
    BYTE BYTE Byte. 8 bits.
    CALLBACK Callback Callback.
    CHAR CHAR 8-bit ANSI character.
    COLORREF UINT32 Red, green, blue (RGB) color value. 32 bits.
    CRITICAL_SECTION Structure Critical-section. See Windows documentation.
    DWORD UINT32 32-bit unsigned integer.
    DWORD_PTR Pointer(UINT32) Pointer to a DWORD.
    DWORD32 UINT32 32-bit unsigned integer.
    DWORD64 UINT64 64-bit unsigned integer.
    FLOAT FLOAT Floating-point.
    HACCEL HANDLE Handle to an accelerator table.
    HANDLE HANDLE Handle to an object.
    HBITMAP HANDLE Handle to a bitmap.
    HBRUSH HANDLE Handle to a brush.
    HCONV HANDLE Handle to a dynamic data exchange (DDE) conversation.
    HCONVLIST HANDLE Handle to a DDE conversation list.
    HCURSOR HANDLE Handle to a cursor.
    HDC HANDLE Handle to a device context (DC).
    HDDEDATA HANDLE Handle to DDE data.
    HDESK HANDLE Handle to a desktop.
    HDROP HANDLE Handle to an internal drop structure.
    HDROP HANDLE Handle to an internal drop structure.
    HDWP HANDLE Handle to a deferred window position structure.
    HENHMETAFILE HANDLE Handle to an enhanced metafile.
    HFILE HANDLE Handle to a file opened by OpenFile.
    HFONT HANDLE Handle to a font.
    HGDIOBJ HANDLE Handle to a GDI object.
    HGLOBAL HANDLE Handle to a global memory block.
    HHOOK HANDLE Handle to a hook.
    HICON HANDLE Handle to an icon.
    HIMAGELIST HANDLE Handle to an image list.
    HIMC HANDLE Handle to input context.
    HINSTANCE HANDLE Handle to an instance.
    HKEY HANDLE Handle to a registry key.
    HKL HANDLE Input locale identifier.
    HLOCAL HANDLE Handle to a local memory block.
    HMENU HANDLE Handle to a menu.
    HMETAFILE HANDLE Handle to a metafile.
    HMODULE HANDLE Handle to a module.
    HMONITOR HANDLE Handle to a display monitor.
    HPALETTE HANDLE Handle to a palette.
    HPEN HANDLE Handle to a pen.
    HRGN HANDLE Handle to a region.
    HRSRC HANDLE Handle to a resource.
    HSZ HANDLE Handle to a DDE string.
    HWINSTA HANDLE Handle to a window station.
    HWND HANDLE Handle to a window.
    INT INT signed integer.
    INT_PTR INT Signed integer representation of a pointer.
    INT32 INT32 32-bit signed integer.
    INT64 INT64 64-bit signed integer.
    LANGID UINT16 Language identifier.
    LCID UINT32 Locale identifier.
    LCTYPE UINT32 Locale information type.
    LONG INT32 32-bit signed integer.
    LONG_PTR INT Signed integer representation of a pointer.
    LONG32 INT32 32-bit signed integer.
    LONG64 INT64 64-bit signed integer.
    LONGLONG INT64 64-bit signed integer.
    LPARAM INT Message parameter.
    LPBOOL Pointer(BOOL) Pointer to a BOOL.
    LPBYTE Pointer(BYTE) Pointer to a BYTE.
    LPCOLORREF Pointer(UINT32) Pointer to a COLORREF.
    LPCRITICAL_SECTION Pointer(Structure) Pointer to a CRITICAL_SECTION
    LPCSTR Pointer(AnsiString) Pointer to a constant null-terminated string of 8-bit ANSI characters.
    LPCTSTR Pointer(WideString)
    Pointer(AnsiString)
    An LPCWSTR if UNICODE is defined otherwise an LPCTSTR.
    LPCVOID Pointer Pointer to a constant of any type.
    LPCWSTR Pointer(WideString) Pointer to a constant null-terminated string of 16-bit Unicode characters.
    LPDWORD Pointer(INT32)
    LPHANDLE Pointer(HANDLE) Pointer to a HANDLE.
    LPINT Pointer(INT) Pointer to an INT.
    LPLONG Pointer(INT32) Pointer to a LONG.
    LPSTR Pointer(AnsiString) Pointer to a null-terminated string of 8-bit ANSI characters.
    LPTSTR Pointer(WideString)
    Pointer(AnsiString)
    An LPWSTR if UNICODE is defined otherwise an LPSTR.
    LPVOID Pointer Pointer to any type.
    LPWORD Pointer(INT16) Pointer to a WORD.
    LPWSTR Pointer(WideString) Pointer to a null-terminated string of 16-bit Unicode characters.
    LRESULT INT Signed result of message processing.
    LUID Structure Locally unique identifier.
    PBOOL Pointer(BOOL) Pointer to a BOOL.
    PBOOLEAN Pointer(BOOL) Pointer to a BOOL.
    PBYTE Pointer(BYTE) Pointer to a BYTE.
    PCHAR Pointer(CHAR) Pointer to a CHAR.
    PCRITICAL_SECTION Pointer(Structure) Pointer to a CRITICAL_SECTION.
    PCSTR Pointer(AnsiString) Pointer to a constant null-terminated string of 8-bit ANSI characters.
    PCTSTR Pointer(WideString)
    Pointer(AnsiString)
    An PCWSTR if UNICODE is defined otherwise an PCSTR.
    PCWCH Pointer(WCHAR) Pointer to a constant WCHAR.
    PCWSTR Pointer(WideString) Pointer to a constant null-terminated string of 16-bit Unicode characters.
    PDWORD Pointer(INT32) Pointer to a DWORD.
    PFLOAT Pointer(FLOAT) Pointer to a FLOAT.
    PHANDLE Pointer(HANDLE) Pointer to a HANDLE.
    PHKEY Pointer(HANDLE) Pointer to an HKEY.
    PINT Pointer(INT) Pointer to an INT.
    PLCID Pointer(UINT32) Pointer to an LCID.
    PLONG Pointer(INT32) Pointer to a LONG.
    PLUID Pointer(Structure) Pointer to a LUID.
    POINTER_32 Pointer 32-bit pointer.
    POINTER_64 Pointer 64-bit pointer.
    PSHORT Pointer(SHORT) Pointer to a SHORT.
    PSTR Pointer(AnsiString) Pointer to a null-terminated string of 8-bit ANSI characters.
    PTBYTE Pointer(WCHAR)
    Pointer(CHAR)
    A pointer to a WCHAR if UNICODE is defined otherwise a pointer to a CHAR.
    PTCHAR Pointer(WCHAR)
    Pointer(CHAR)
    A pointer to a WCHAR if UNICODE is defined otherwise a pointer to a CHAR.
    PTSTR Pointer(WideString)
    Pointer(AnsiString)
    An PWSTR if UNICODE is defined otherwise an PSTR.
    PUCHAR Pointer(UCHAR) Pointer to a UCHAR.
    PUINT Pointer(UINT) Pointer to a UINT.
    PULONG Pointer(UINT32) Pointer to a ULONG.
    PUSHORT Pointer(USHORT) Pointer to a USHORT.
    PVOID Pointer Pointer to any type.
    PWCHAR Pointer(WCHAR) Pointer to a WCHAR.
    PWORD Pointer(UINT16) Pointer to a WORD.
    PWSTR Pointer(WideString) Pointer to a null-terminated string of 16-bit Unicode characters.
    REGSAM UINT32 Security access mask for registry key.
    SC_HANDLE HANDLE Handle to a service control manager database.
    SC_LOCK HANDLE Handle to a service control manager database lock.
    SERVICE_STATUS_HANDLE HANDLE Handle to a service status value.
    SHORT SHORT Short integer. 16 bits.
    SIZE_T UINT Unsigned integer.
    SSIZE_ INT Signed SIZE_T.
    TBYTE WCHAR
    CHAR
    A WCHAR if UNICODE is defined otherwise a CHAR.
    TCHAR WCHAR
    CHAR
    A WCHAR if UNICODE is defined otherwise a CHAR.
    UCHAR UCHAR Unsigned CHAR.
    UINT UINT Unsigned INT.
    UINT_PTR UINT Unsigned integer representation of a pointer.
    UINT32 UINT32 Unsigned INT32.
    UINT64 UINT64 Unsigned INT64.
    ULONG UINT Unsigned LONG.
    ULONG_PTR UINT Unsigned integer representation of a pointer.
    ULONG32 UINT32 Unsigned LONG32.
    ULONG64 UINT64 Unsigned LONG64.
    ULONGLONG UINT64 64-bit unsigned integer.
    UNSIGNED UINT Unsigned integer.
    USHORT USHORT Unsigned SHORT.
    VOID NativeParameter Any type.
    WCHAR WCHAR 16-bit Unicode character.
    WINAPI Function stdcall calling convention.
    WORD USHORT 16-bit unsigned integer.
    WPARAM UINT Message parameter.

    The Microsoft Platform SDK can be found at: Microsoft Platform SDK

    Win32 API Error codes can be found at: MSDN System Error Codes


    Servertec
    Jenie
    1.0.1 09/04/2005

    Copyright © 2004-2005 Servertec. All rights reserved.