Fork me on GitHub

LibX11.

XOpenDisplay(IntPtr) Method

Summary

To open a connection to the X server that controls a display
Namespace
SharpInputSystem
Containing Type
LibX11

Syntax

[DllImportAttribute(LibraryName)]
public static extern IntPtr XOpenDisplay(IntPtr displayName)

Attributes

Type Description
DllImportAttribute

Parameters

Name Type Description
displayName IntPtr Specifies the hardware display name, which determines the display and communications domain to be used. On a POSIX-conformant system, if the display_name is NULL, it defaults to the value of the DISPLAY environment variable.

Return Value

Type Description
IntPtr returns a Display structure that serves as the connection to the X server and that contains all the information about that X server.