User32GetDisplayConfigBufferSizes Method
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("User32.dll", ExactSpelling := true>]
Public Shared Function GetDisplayConfigBufferSizes (
flags As QueryDisplayConfigFlags,
<OutAttribute> ByRef refPathInfoArrayCount As UInteger,
<OutAttribute> ByRef refModeInfoArrayCount As UInteger
) As Win32ErrorCode
Dim flags As QueryDisplayConfigFlags
Dim refPathInfoArrayCount As UInteger
Dim refModeInfoArrayCount As UInteger
Dim returnValue As Win32ErrorCode
returnValue = User32.GetDisplayConfigBufferSizes(flags,
refPathInfoArrayCount, refModeInfoArrayCount)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true)]
static Win32ErrorCode GetDisplayConfigBufferSizes(
QueryDisplayConfigFlags flags,
[OutAttribute] unsigned int% refPathInfoArrayCount,
[OutAttribute] unsigned int% refModeInfoArrayCount
)
[<DllImportAttribute("User32.dll", ExactSpelling = true)>]
static member GetDisplayConfigBufferSizes :
flags : QueryDisplayConfigFlags *
refPathInfoArrayCount : uint32 byref *
refModeInfoArrayCount : uint32 byref -> Win32ErrorCode
No code example is currently available or this language may not be supported.
- 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 .
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.