Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

dynres.c File Reference

#include "precomp.h"
#include "ntuser.h"
#include <winsta.h>
#include <wstmsg.h>

Go to the source code of this file.

Functions

NTSTATUS DrChangeDisplaySettings (WINSTATIONDORECONNECTMSG *pDoReconnectMessage)
NTSTATUS DrGetDeviceName (OUT PUNICODE_STRING pustrDeviceName, WINSTATIONDORECONNECTMSG *pDoReconnectMessage)
NTSTATUS DrSetDevMode (WINSTATIONDORECONNECTMSG *pDoReconnectMessage, PDEVMODEW pDevmodew)


Function Documentation

NTSTATUS DrChangeDisplaySettings WINSTATIONDORECONNECTMSG *  pDoReconnectMessage  ) 
 

NTSTATUS DrGetDeviceName OUT PUNICODE_STRING  pustrDeviceName,
WINSTATIONDORECONNECTMSG *  pDoReconnectMessage
 

Definition at line 76 of file dynres.c.

References DbgPrint, NTSTATUS(), RtlInitUnicodeString(), and Status.

Referenced by DrChangeDisplaySettings().

00079 { 00080 NTSTATUS Status = STATUS_SUCCESS; 00081 00082 pDoReconnectMessage; 00083 00084 // Get Device name from reconnect message ( LATTER ) 00085 // for now, just use a static name for device 00086 00087 RtlInitUnicodeString(pustrDeviceName, DR_RECONNECT_DEVICE_NAMEW); 00088 00089 #if DBG 00090 DbgPrint("DrGetDeviceName - Device name is : %ws\n", pustrDeviceName->Buffer); 00091 #endif 00092 00093 return Status; 00094 }

NTSTATUS DrSetDevMode WINSTATIONDORECONNECTMSG *  pDoReconnectMessage,
PDEVMODEW  pDevmodew
 

Definition at line 97 of file dynres.c.

References NTSTATUS(), and Status.

Referenced by DrChangeDisplaySettings().

00100 { 00101 NTSTATUS Status = STATUS_SUCCESS; 00102 00103 // Initialize unused fields 00104 00105 RtlZeroMemory(pDevmodew, sizeof(DEVMODEW)); 00106 00107 // Get Display resolution data from reconnect data 00108 00109 pDevmodew->dmPelsHeight = pDoReconnectMessage->VRes; 00110 pDevmodew->dmPelsWidth = pDoReconnectMessage->HRes; 00111 pDevmodew->dmBitsPerPel = pDoReconnectMessage->ColorDepth; 00112 pDevmodew->dmFields = DM_BITSPERPEL | DM_PELSWIDTH | DM_PELSHEIGHT; 00113 pDevmodew->dmSize = sizeof(DEVMODEW); 00114 00115 return Status; 00116 }


Generated on Sat May 15 19:43:31 2004 for test by doxygen 1.3.7