User32GetDisplayConfigBufferSizes Method

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", ExactSpelling = true)]
public static Win32ErrorCode GetDisplayConfigBufferSizes(
	QueryDisplayConfigFlags flags,
	out uint refPathInfoArrayCount,
	out uint refModeInfoArrayCount
)

Parameters

flags  QueryDisplayConfigFlags
The type of information to retrieve.
refPathInfoArrayCount  UInt32
The number of elements in the path information table.

The refPathInfoArrayCount parameter value is then used by a subsequent call to the QueryDisplayConfig(QueryDisplayConfigFlags, UInt32, DisplayConfigPathInfo, UInt32, DisplayConfigModeInfo, DisplayConfigTopologyId) function.

This parameter cannot be see .

refModeInfoArrayCount  UInt32
The number of elements in the mode information table.

The refModeInfoArrayCount parameter value is then used by a subsequent call to the QueryDisplayConfig(QueryDisplayConfigFlags, UInt32, DisplayConfigPathInfo, UInt32, DisplayConfigModeInfo, DisplayConfigTopologyId) function.

This parameter cannot be see .

Return Value

Win32ErrorCode
The function returns one of the following return codes.

ERROR_SUCCESS: The function succeeded.

ERROR_INVALID_PARAMETER: The combination of parameters and flags specified is invalid.

ERROR_NOT_SUPPORTED: The system is not running a graphics driver that was written according to the Windows Display Driver Model (WDDM). The function is only supported on a system with a WDDM driver running.

ERROR_ACCESS_DENIED: The caller does not have access to the console session. This error occurs if the calling process does not have access to the current desktop or is running on a remote session.

ERROR_GEN_FAILURE: An unspecified error occurred.

Remarks

See Also