iDevNum parameter of the User32#EnumDisplayDevices function.
The four string members are set based on the parameters passed to EnumDisplayDevices. If the lpDevice param is NULL, then
DISPLAY_DEVICE is filled in with information about the display adapter(s). If it is a valid device name, then it is filled in with information
about the monitor(s) for that device.
struct DISPLAY_DEVICE {
DWORD cb;
TCHAR DeviceName[32];
TCHAR DeviceString[128];
DWORD StateFlags;
TCHAR DeviceID[128];
TCHAR DeviceKey[128];
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | DISPLAY_DEVICE.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CB
The struct member offsets. |
| public static final int | DEVICEID
The struct member offsets. |
| public static final int | DEVICEKEY
The struct member offsets. |
| public static final int | DEVICENAME
The struct member offsets. |
| public static final int | DEVICESTRING
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STATEFLAGS
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | DISPLAY_DEVICE(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static DISPLAY_DEVICE | |
| public static DISPLAY_DEVICE. | calloc(int
the buffer capacity capacity)Returns a new |
| public static DISPLAY_DEVICE | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static DISPLAY_DEVICE. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static DISPLAY_DEVICE | |
| public static DISPLAY_DEVICE | |
| public static DISPLAY_DEVICE. | |
| public static DISPLAY_DEVICE. | |
| public int | |
| public DISPLAY_DEVICE | |
| protected DISPLAY_DEVICE | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static DISPLAY_DEVICE | |
| public static DISPLAY_DEVICE | |
| public static DISPLAY_DEVICE. | create(int
the buffer capacity capacity)Returns a new |
| public static DISPLAY_DEVICE. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static DISPLAY_DEVICE | |
| public static DISPLAY_DEVICE. | |
| public ByteBuffer | |
| public String | |
| public ByteBuffer | |
| public String | |
| public ByteBuffer | |
| public String | |
| public ByteBuffer | |
| public String | |
| public static DISPLAY_DEVICE | |
| public static DISPLAY_DEVICE. | malloc(int
the buffer capacity capacity)Returns a new |
| public static DISPLAY_DEVICE | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static DISPLAY_DEVICE. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static DISPLAY_DEVICE | |
| public static DISPLAY_DEVICE | |
| public static DISPLAY_DEVICE. | |
| public static DISPLAY_DEVICE. | |
| public static int | |
| public static void | |
| public static ByteBuffer | |
| public static String | |
| public static ByteBuffer | |
| public static String | |
| public static ByteBuffer | |
| public static String | |
| public static ByteBuffer | |
| public static String | |
| public static int | |
| public DISPLAY_DEVICE | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| CB | back to summary |
|---|---|
| public static final int CB The struct member offsets. | |
| DEVICEID | back to summary |
|---|---|
| public static final int DEVICEID The struct member offsets. | |
| DEVICEKEY | back to summary |
|---|---|
| public static final int DEVICEKEY The struct member offsets. | |
| DEVICENAME | back to summary |
|---|---|
| public static final int DEVICENAME The struct member offsets. | |
| DEVICESTRING | back to summary |
|---|---|
| public static final int DEVICESTRING The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| STATEFLAGS | back to summary |
|---|---|
| public static final int STATEFLAGS The struct member offsets. | |
| DISPLAY_DEVICE | back to summary |
|---|---|
| protected DISPLAY_DEVICE(long address, ByteBuffer container) | |
| DISPLAY_DEVICE | back to summary |
|---|---|
| public DISPLAY_DEVICE(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static DISPLAY_DEVICE calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static DISPLAY_DEVICE. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static DISPLAY_DEVICE calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static DISPLAY_DEVICE. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static DISPLAY_DEVICE callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static DISPLAY_DEVICE callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static DISPLAY_DEVICE. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static DISPLAY_DEVICE. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| cb | back to summary |
|---|---|
| public int cb() size, in bytes, of the
| |
| cb | back to summary |
|---|---|
| public DISPLAY_DEVICE cb(int value) Sets the specified value to the | |
| create | back to summary |
|---|---|
| protected DISPLAY_DEVICE create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static DISPLAY_DEVICE create() Returns a new | |
| create | back to summary |
|---|---|
| public static DISPLAY_DEVICE create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static DISPLAY_DEVICE. Returns a new
| |
| create | back to summary |
|---|---|
| public static DISPLAY_DEVICE. Create a
| |
| createSafe | back to summary |
|---|---|
| public static DISPLAY_DEVICE createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static DISPLAY_DEVICE. Like
| |
| DeviceID | back to summary |
|---|---|
| public ByteBuffer DeviceID() not used
| |
| DeviceIDString | back to summary |
|---|---|
| public String DeviceIDString() not used
| |
| DeviceKey | back to summary |
|---|---|
| public ByteBuffer DeviceKey() reserved
| |
| DeviceKeyString | back to summary |
|---|---|
| public String DeviceKeyString() reserved
| |
| DeviceName | back to summary |
|---|---|
| public ByteBuffer DeviceName() an array of characters identifying the device name. This is either the adapter device or the monitor device.
| |
| DeviceNameString | back to summary |
|---|---|
| public String DeviceNameString() an array of characters identifying the device name. This is either the adapter device or the monitor device.
| |
| DeviceString | back to summary |
|---|---|
| public ByteBuffer DeviceString() an array of characters containing the device context string. This is either a description of the display adapter or of the display monitor.
| |
| DeviceStringString | back to summary |
|---|---|
| public String DeviceStringString() an array of characters containing the device context string. This is either a description of the display adapter or of the display monitor.
| |
| malloc | back to summary |
|---|---|
| public static DISPLAY_DEVICE malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static DISPLAY_DEVICE. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static DISPLAY_DEVICE malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static DISPLAY_DEVICE. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static DISPLAY_DEVICE mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static DISPLAY_DEVICE mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static DISPLAY_DEVICE. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static DISPLAY_DEVICE. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| ncb | back to summary |
|---|---|
| public static int ncb(long struct) Unsafe version of | |
| ncb | back to summary |
|---|---|
| public static void ncb(long struct, int value) Unsafe version of | |
| nDeviceID | back to summary |
|---|---|
| public static ByteBuffer nDeviceID(long struct) Unsafe version of | |
| nDeviceIDString | back to summary |
|---|---|
| public static String nDeviceIDString(long struct) Unsafe version of | |
| nDeviceKey | back to summary |
|---|---|
| public static ByteBuffer nDeviceKey(long struct) Unsafe version of | |
| nDeviceKeyString | back to summary |
|---|---|
| public static String nDeviceKeyString(long struct) Unsafe version of | |
| nDeviceName | back to summary |
|---|---|
| public static ByteBuffer nDeviceName(long struct) Unsafe version of | |
| nDeviceNameString | back to summary |
|---|---|
| public static String nDeviceNameString(long struct) Unsafe version of | |
| nDeviceString | back to summary |
|---|---|
| public static ByteBuffer nDeviceString(long struct) Unsafe version of | |
| nDeviceStringString | back to summary |
|---|---|
| public static String nDeviceStringString(long struct) Unsafe version of | |
| nStateFlags | back to summary |
|---|---|
| public static int nStateFlags(long struct) Unsafe version of | |
| set | back to summary |
|---|---|
| public DISPLAY_DEVICE set(DISPLAY_DEVICE src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| StateFlags | back to summary |
|---|---|
| public int StateFlags() device state flags
| |
DISPLAY_DEVICE structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final DISPLAY_DEVICE |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public DISPLAY_DEVICE. | |
| public ByteBuffer | |
| public String | |
| public ByteBuffer | |
| public String | |
| public ByteBuffer | |
| public String | Returns: the null-terminated string stored in theDISPLAY_DEVICE#DeviceName field.
|
| public ByteBuffer | |
| public String | Returns: the null-terminated string stored in theDISPLAY_DEVICE#DeviceString field.
|
| protected DISPLAY_DEVICE | |
| protected DISPLAY_DEVICE. | |
| public int |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final DISPLAY_DEVICE ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| cb | back to summary |
|---|---|
public int cb()
| |
| cb | back to summary |
|---|---|
| public DISPLAY_DEVICE. Sets the specified value to the | |
| DeviceID | back to summary |
|---|---|
public ByteBuffer DeviceID()
| |
| DeviceIDString | back to summary |
|---|---|
public String DeviceIDString()
| |
| DeviceKey | back to summary |
|---|---|
public ByteBuffer DeviceKey()
| |
| DeviceKeyString | back to summary |
|---|---|
public String DeviceKeyString()
| |
| DeviceName | back to summary |
|---|---|
public ByteBuffer DeviceName()
| |
| DeviceNameString | back to summary |
|---|---|
public String DeviceNameString()
| |
| DeviceString | back to summary |
|---|---|
public ByteBuffer DeviceString()
| |
| DeviceStringString | back to summary |
|---|---|
public String DeviceStringString()
| |
| getElementFactory | back to summary |
|---|---|
| protected DISPLAY_DEVICE getElementFactory() Implements abstract org.
| |
| self | back to summary |
|---|---|
| protected DISPLAY_DEVICE. Implements abstract org.
| |
| StateFlags | back to summary |
|---|---|
public int StateFlags()
| |