Microsoft DirectX 8.1 (C++) |
The SetEnabled method enables and disables video modes.
Syntax
HRESULT SetEnabled(
long Mode,
long bEnabled
);
Parameters
Mode
[in] Mode to be enabled or disabled (see the following table).
bEnabled
[out] Can be set to one of the following values.
Value | Description |
OATRUE | Enable mode. |
OAFALSE | Disable mode. |
Return Value
Returns an HRESULT value.
Remarks
Available DirectShow modes are defined as follows. The ordering of these modes is subject to change, so use IFullScreenVideo::CountModes and IFullScreenVideo::GetModeInfo interface methods to enumerate modes.
Mode | Width | Height | RGB depth (in bits) |
0 | 320 | 200 | 16 |
1 | 320 | 200 | 8 |
2 | 320 | 240 | 16 |
3 | 320 | 240 | 8 |
4 | 640 | 400 | 16 |
5 | 640 | 400 | 8 |
6 | 640 | 480 | 16 |
7 | 640 | 480 | 8 |
8 | 800 | 600 | 16 |
9 | 800 | 600 | 8 |
10 | 1024 | 768 | 16 |
11 | 1024 | 768 | 8 |
12 | 1152 | 864 | 16 |
13 | 1152 | 864 | 8 |
14 | 1280 | 1024 | 16 |
15 | 1280 | 1024 | 8 |
See Also