ReactOS  0.4.13-dev-259-g5ca9c9c
NtUserEnumDisplaySettings.c File Reference
#include <win32nt.h>
Include dependency graph for NtUserEnumDisplaySettings.c:

Go to the source code of this file.

Functions

 START_TEST (NtUserEnumDisplaySettings)
 

Variables

struct {
   DEVMODEW   devmode
 
   CHAR   buffer [0xffff]
 
data
 

Function Documentation

◆ START_TEST()

START_TEST ( NtUserEnumDisplaySettings  )

Definition at line 18 of file NtUserEnumDisplaySettings.c.

19 {
20  UNICODE_STRING usDeviceName;
21  WCHAR szName[] = L"DISPLAY";
23  INT i;
24 
29 
30  data.devmode.dmDriverExtra = 0;
31  for (i = 0; i < 2 * sizeof(DEVMODEW); i++)
32  {
33  data.devmode.dmSize = i;
35  if (i != sizeof(DEVMODEW))
36  {
38  }
39  }
41 
42  usDeviceName.Buffer = NULL;
43  usDeviceName.Length = 0;
44  usDeviceName.MaximumLength = 0;
47  Status = NtUserEnumDisplaySettings(&usDeviceName, -4, (DEVMODEW*)&data, 0);
49 
50  data.devmode.dmSize = sizeof(DEVMODEW);
51  data.devmode.dmDriverExtra = 0xffff;
54 
55  data.devmode.dmSize = sizeof(DEVMODEW);
56  data.devmode.dmDriverExtra = 0;
59 
60  usDeviceName.Buffer = NULL;
61  usDeviceName.Length = 0;
62  usDeviceName.MaximumLength = 0;
65  Status = NtUserEnumDisplaySettings(&usDeviceName, -4, (DEVMODEW*)&data, 0);
67 
78 
83 
92 
95 
96  usDeviceName.Buffer = szName;
97  usDeviceName.Length = (USHORT)wcslen(szName);
98  usDeviceName.MaximumLength = usDeviceName.Length;
101 
102  Status = NtUserEnumDisplaySettings(&usDeviceName, 1000, (DEVMODEW*)&data, 123456);
104 
106 
107 }
#define ERROR_SUCCESS
Definition: deptool.c:10
USHORT MaximumLength
Definition: env_spec_w32.h:370
LONG NTSTATUS
Definition: precomp.h:26
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1059
int32_t INT
Definition: typedefs.h:56
#define ENUM_CURRENT_SETTINGS
Definition: winuser.h:179
#define STATUS_BUFFER_TOO_SMALL
Definition: shellext.h:64
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
smooth NULL
Definition: ftsmooth.c:416
#define STATUS_INVALID_PARAMETER_2
Definition: ntstatus.h:462
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define TEST(x)
Definition: precomp.h:20
#define SetLastError(x)
Definition: compat.h:409
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
static const WCHAR L[]
Definition: oid.c:1250
#define STATUS_INVALID_PARAMETER_1
Definition: ntstatus.h:461
Status
Definition: gdiplustypes.h:24
#define STATUS_ACCESS_VIOLATION
Definition: ntstatus.h:228
unsigned short USHORT
Definition: pedump.c:61
static const WCHAR szName[]
Definition: msipriv.h:1194
struct _devicemodeW DEVMODEW
return STATUS_SUCCESS
Definition: btrfs.c:2745
size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
NTSTATUS NTAPI NtUserEnumDisplaySettings(PUNICODE_STRING lpszDeviceName, DWORD iModeNum, LPDEVMODEW lpDevMode, DWORD dwFlags)

Variable Documentation

◆ buffer

CHAR buffer[0xffff]

Definition at line 15 of file NtUserEnumDisplaySettings.c.

◆ data

struct { ... } data

◆ devmode