~ubuntu-branches/ubuntu/raring/scilab/raring-proposed

« back to all changes in this revision

Viewing changes to modules/windows_tools/help/en_US/getsystemmetrics.xml

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-30 14:42:38 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20120830144238-c1y2og7dbm7m9nig
Tags: 5.4.0-beta-3-1~exp1
* New upstream release
* Update the scirenderer dep
* Get ride of libjhdf5-java dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 *
12
12
 -->
13
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="getsystemmetrics" xml:lang="en">
14
 
  <refnamediv>
15
 
    <refname>getsystemmetrics</refname>
16
 
    <refpurpose>Retrieves the specified system metric or system configuration
17
 
      setting (Windows only)
18
 
    </refpurpose>
19
 
  </refnamediv>
20
 
  <refsynopsisdiv>
21
 
    <title>Calling Sequence</title>
22
 
    <synopsis>res = getsystemmetrics(key)</synopsis>
23
 
  </refsynopsisdiv>
24
 
  <refsection>
25
 
    <title>Arguments</title>
26
 
    <variablelist>
27
 
      <varlistentry>
28
 
        <term>res</term>
29
 
        <listitem>
30
 
          <para>a value (integer)</para>
31
 
        </listitem>
32
 
      </varlistentry>
33
 
      <varlistentry>
34
 
        <term>key</term>
35
 
        <listitem>
36
 
          <para>a string (see below)</para>
37
 
        </listitem>
38
 
      </varlistentry>
39
 
    </variablelist>
40
 
  </refsection>
41
 
  <refsection>
42
 
    <title>Description</title>
43
 
    <para>Retrieves the specified system metric or system configuration
44
 
      setting.
45
 
    </para>
46
 
    <informaltable border="1">
47
 
      <tr>
48
 
        <td>SM_ARRANGE</td>
49
 
        <td>The flags that specify how the system arranged minimized windows.
50
 
          For more information, see the Remarks section in this topic.
51
 
        </td>
52
 
      </tr>
53
 
      <tr>
54
 
        <td>SM_CLEANBOOT</td>
55
 
        <td>The value that specifies how the system is started: 0 Normal boot
56
 
          1 Fail-safe boot 2 Fail-safe with network boot A fail-safe boot (also
57
 
          called SafeBoot, Safe Mode, or Clean Boot) bypasses the user startup
58
 
          files.
59
 
        </td>
60
 
      </tr>
61
 
      <tr>
62
 
        <td>SM_CMONITORS</td>
63
 
        <td>The number of display monitors on a desktop. For more information,
64
 
          see the Remarks section in this topic.
65
 
        </td>
66
 
      </tr>
67
 
      <tr>
68
 
        <td>SM_CMOUSEBUTTONS</td>
69
 
        <td>The number of buttons on a mouse, or zero if no mouse is
70
 
          installed.
71
 
        </td>
72
 
      </tr>
73
 
      <tr>
74
 
        <td>SM_CXBORDER</td>
75
 
        <td>The width of a window border, in pixels. This is equivalent to the
76
 
          SM_CXEDGE value for windows with the 3-D look.
77
 
        </td>
78
 
      </tr>
79
 
      <tr>
80
 
        <td>SM_CXCURSOR</td>
81
 
        <td>The width of a cursor, in pixels. The system cannot create cursors
82
 
          of other sizes.
83
 
        </td>
84
 
      </tr>
85
 
      <tr>
86
 
        <td>SM_CXDLGFRAME</td>
87
 
        <td>This value is the same as SM_CXFIXEDFRAME.</td>
88
 
      </tr>
89
 
      <tr>
90
 
        <td>SM_CXDOUBLECLK</td>
91
 
        <td>The width of the rectangle around the location of a first click in
92
 
          a double-click sequence, in pixels. The second click must occur within
93
 
          the rectangle that is defined by SM_CXDOUBLECLK and SM_CYDOUBLECLK for
94
 
          the system to consider the two clicks a double-click. The two clicks
95
 
          must also occur within a specified time. To set the width of the
96
 
          double-click rectangle, call SystemParametersInfo with
97
 
          SPI_SETDOUBLECLKWIDTH.
98
 
        </td>
99
 
      </tr>
100
 
      <tr>
101
 
        <td>SM_CXDRAG</td>
102
 
        <td>The number of pixels on either side of a mouse-down point that the
103
 
          mouse pointer can move before a drag operation begins. This allows the
104
 
          user to click and release the mouse button easily without
105
 
          unintentionally starting a drag operation. If this value is negative,
106
 
          it is subtracted from the left of the mouse-down point and added to
107
 
          the right of it.
108
 
        </td>
109
 
      </tr>
110
 
      <tr>
111
 
        <td>SM_CXEDGE</td>
112
 
        <td>The width of a 3-D border, in pixels. This metric is the 3-D
113
 
          counterpart of SM_CXBORDER.
114
 
        </td>
115
 
      </tr>
116
 
      <tr>
117
 
        <td>SM_CXFIXEDFRAME</td>
118
 
        <td>The thickness of the frame around the perimeter of a window that
119
 
          has a caption but is not sizable, in pixels. SM_CXFIXEDFRAME is the
120
 
          height of the horizontal border, and SM_CYFIXEDFRAME is the width of
121
 
          the vertical border. This value is the same as SM_CXDLGFRAME.
122
 
        </td>
123
 
      </tr>
124
 
      <tr>
125
 
        <td>SM_CXFOCUSBORDER</td>
126
 
        <td>The width of the left and right edges of the focus rectangle that
127
 
          the DrawFocusRect draws. This value is in pixels.
128
 
        </td>
129
 
      </tr>
130
 
      <tr>
131
 
        <td>SM_CXFRAME</td>
132
 
        <td>This value is the same as SM_CXSIZEFRAME.</td>
133
 
      </tr>
134
 
      <tr>
135
 
        <td>SM_CXFULLSCREEN</td>
136
 
        <td>The width of the client area for a full-screen window on the
137
 
          primary display monitor, in pixels. To get the coordinates of the
138
 
          portion of the screen that is not obscured by the system taskbar or by
139
 
          application desktop toolbars, call the SystemParametersInfo function
140
 
          with the SPI_GETWORKAREA value.
141
 
        </td>
142
 
      </tr>
143
 
      <tr>
144
 
        <td>SM_CXHSCROLL</td>
145
 
        <td>The width of the arrow bitmap on a horizontal scroll bar, in
146
 
          pixels.
147
 
        </td>
148
 
      </tr>
149
 
      <tr>
150
 
        <td>SM_CXHTHUMB</td>
151
 
        <td>The width of the thumb box in a horizontal scroll bar, in
152
 
          pixels.
153
 
        </td>
154
 
      </tr>
155
 
      <tr>
156
 
        <td>SM_CXICON</td>
157
 
        <td>The default width of an icon, in pixels. The LoadIcon function can
158
 
          load only icons with the dimensions that SM_CXICON and SM_CYICON
159
 
          specifies.
160
 
        </td>
161
 
      </tr>
162
 
      <tr>
163
 
        <td>SM_CXICONSPACING</td>
164
 
        <td>The width of a grid cell for items in large icon view, in pixels.
165
 
          Each item fits into a rectangle of size SM_CXICONSPACING by
166
 
          SM_CYICONSPACING when arranged. This value is always greater than or
167
 
          equal to SM_CXICON.
168
 
        </td>
169
 
      </tr>
170
 
      <tr>
171
 
        <td>SM_CXMAXIMIZED</td>
172
 
        <td>The default width, in pixels, of a maximized top-level window on
173
 
          the primary display monitor.
174
 
        </td>
175
 
      </tr>
176
 
      <tr>
177
 
        <td>SM_CXMAXTRACK</td>
178
 
        <td>The default maximum width of a window that has a caption and
179
 
          sizing borders, in pixels. This metric refers to the entire desktop.
180
 
          The user cannot drag the window frame to a size larger than these
181
 
          dimensions. A window can override this value by processing the
182
 
          WM_GETMINMAXINFO message.
183
 
        </td>
184
 
      </tr>
185
 
      <tr>
186
 
        <td>SM_CXMENUCHECK</td>
187
 
        <td>The width of the default menu check-mark bitmap, in pixels.</td>
188
 
      </tr>
189
 
      <tr>
190
 
        <td>SM_CXMENUSIZE</td>
191
 
        <td>The width of menu bar buttons, such as the child window close
192
 
          button that is used in the multiple document interface, in
193
 
          pixels.
194
 
        </td>
195
 
      </tr>
196
 
      <tr>
197
 
        <td>SM_CXMIN</td>
198
 
        <td>The minimum width of a window, in pixels.</td>
199
 
      </tr>
200
 
      <tr>
201
 
        <td>SM_CXMINIMIZED</td>
202
 
        <td>The width of a minimized window, in pixels.</td>
203
 
      </tr>
204
 
      <tr>
205
 
        <td>SM_CXMINSPACING</td>
206
 
        <td>The width of a grid cell for a minimized window, in pixels. Each
207
 
          minimized window fits into a rectangle this size when arranged. This
208
 
          value is always greater than or equal to SM_CXMINIMIZED.
209
 
        </td>
210
 
      </tr>
211
 
      <tr>
212
 
        <td>SM_CXMINTRACK</td>
213
 
        <td>The minimum tracking width of a window, in pixels. The user cannot
214
 
          drag the window frame to a size smaller than these dimensions. A
215
 
          window can override this value by processing the WM_GETMINMAXINFO
216
 
          message.
217
 
        </td>
218
 
      </tr>
219
 
      <tr>
220
 
        <td>SM_CXPADDEDBORDER</td>
221
 
        <td>The amount of border padding for captioned windows, in
222
 
          pixels.
223
 
        </td>
224
 
      </tr>
225
 
      <tr>
226
 
        <td>SM_CXSCREEN</td>
227
 
        <td>The width of the screen of the primary display monitor, in pixels.
228
 
          This is the same value obtained by calling GetDeviceCaps as follows:
229
 
          GetDeviceCaps( hdcPrimaryMonitor, HORZRES).
230
 
        </td>
231
 
      </tr>
232
 
      <tr>
233
 
        <td>SM_CXSIZE</td>
234
 
        <td>The width of a button in a window caption or title bar, in
235
 
          pixels.
236
 
        </td>
237
 
      </tr>
238
 
      <tr>
239
 
        <td>SM_CXSIZEFRAME</td>
240
 
        <td>The thickness of the sizing border around the perimeter of a
241
 
          window that can be resized, in pixels. SM_CXSIZEFRAME is the width of
242
 
          the horizontal border, and SM_CYSIZEFRAME is the height of the
243
 
          vertical border. This value is the same as SM_CXFRAME.
244
 
        </td>
245
 
      </tr>
246
 
      <tr>
247
 
        <td>SM_CXSMICON</td>
248
 
        <td>The recommended width of a small icon, in pixels. Small icons
249
 
          typically appear in window captions and in small icon view.
250
 
        </td>
251
 
      </tr>
252
 
      <tr>
253
 
        <td>SM_CXSMSIZE</td>
254
 
        <td>The width of small caption buttons, in pixels.</td>
255
 
      </tr>
256
 
      <tr>
257
 
        <td>SM_CXVIRTUALSCREEN</td>
258
 
        <td>The width of the virtual screen, in pixels. The virtual screen is
259
 
          the bounding rectangle of all display monitors. The SM_XVIRTUALSCREEN
260
 
          metric is the coordinates for the left side of the virtual
261
 
          screen.
262
 
        </td>
263
 
      </tr>
264
 
      <tr>
265
 
        <td>SM_CXVSCROLL</td>
266
 
        <td>The width of a vertical scroll bar, in pixels.</td>
267
 
      </tr>
268
 
      <tr>
269
 
        <td>SM_CYBORDER</td>
270
 
        <td>The height of a window border, in pixels. This is equivalent to
271
 
          the SM_CYEDGE value for windows with the 3-D look.
272
 
        </td>
273
 
      </tr>
274
 
      <tr>
275
 
        <td>SM_CYCAPTION</td>
276
 
        <td>The height of a caption area, in pixels.</td>
277
 
      </tr>
278
 
      <tr>
279
 
        <td>SM_CYCURSOR</td>
280
 
        <td>The height of a cursor, in pixels. The system cannot create
281
 
          cursors of other sizes.
282
 
        </td>
283
 
      </tr>
284
 
      <tr>
285
 
        <td>SM_CYDLGFRAME</td>
286
 
        <td>This value is the same as SM_CYFIXEDFRAME.</td>
287
 
      </tr>
288
 
      <tr>
289
 
        <td>SM_CYDOUBLECLK</td>
290
 
        <td>The height of the rectangle around the location of a first click
291
 
          in a double-click sequence, in pixels. The second click must occur
292
 
          within the rectangle defined by SM_CXDOUBLECLK and SM_CYDOUBLECLK for
293
 
          the system to consider the two clicks a double-click. The two clicks
294
 
          must also occur within a specified time. To set the height of the
295
 
          double-click rectangle, call SystemParametersInfo with
296
 
          SPI_SETDOUBLECLKHEIGHT.
297
 
        </td>
298
 
      </tr>
299
 
      <tr>
300
 
        <td>SM_CYDRAG</td>
301
 
        <td>The number of pixels above and below a mouse-down point that the
302
 
          mouse pointer can move before a drag operation begins. This allows the
303
 
          user to click and release the mouse button easily without
304
 
          unintentionally starting a drag operation. If this value is negative,
305
 
          it is subtracted from above the mouse-down point and added below
306
 
          it.
307
 
        </td>
308
 
      </tr>
309
 
      <tr>
310
 
        <td>SM_CYEDGE</td>
311
 
        <td>The height of a 3-D border, in pixels. This is the 3-D counterpart
312
 
          of SM_CYBORDER.
313
 
        </td>
314
 
      </tr>
315
 
      <tr>
316
 
        <td>SM_CYFIXEDFRAME</td>
317
 
        <td>The thickness of the frame around the perimeter of a window that
318
 
          has a caption but is not sizable, in pixels. SM_CXFIXEDFRAME is the
319
 
          height of the horizontal border, and SM_CYFIXEDFRAME is the width of
320
 
          the vertical border. This value is the same as SM_CYDLGFRAME.
321
 
        </td>
322
 
      </tr>
323
 
      <tr>
324
 
        <td>SM_CYFOCUSBORDER</td>
325
 
        <td>The height of the top and bottom edges of the focus rectangle
326
 
          drawn by DrawFocusRect. This value is in pixels.
327
 
        </td>
328
 
      </tr>
329
 
      <tr>
330
 
        <td>SM_CYFRAME</td>
331
 
        <td>This value is the same as SM_CYSIZEFRAME.</td>
332
 
      </tr>
333
 
      <tr>
334
 
        <td>SM_CYFULLSCREEN</td>
335
 
        <td>The height of the client area for a full-screen window on the
336
 
          primary display monitor, in pixels. To get the coordinates of the
337
 
          portion of the screen not obscured by the system taskbar or by
338
 
          application desktop toolbars, call the SystemParametersInfo function
339
 
          with the SPI_GETWORKAREA value.
340
 
        </td>
341
 
      </tr>
342
 
      <tr>
343
 
        <td>SM_CYHSCROLL</td>
344
 
        <td>The height of a horizontal scroll bar, in pixels.</td>
345
 
      </tr>
346
 
      <tr>
347
 
        <td>SM_CYICON</td>
348
 
        <td>The default height of an icon, in pixels. The LoadIcon function
349
 
          can load only icons with the dimensions SM_CXICON and SM_CYICON.
350
 
        </td>
351
 
      </tr>
352
 
      <tr>
353
 
        <td>SM_CYICONSPACING</td>
354
 
        <td>The height of a grid cell for items in large icon view, in pixels.
355
 
          Each item fits into a rectangle of size SM_CXICONSPACING by
356
 
          SM_CYICONSPACING when arranged. This value is always greater than or
357
 
          equal to SM_CYICON.
358
 
        </td>
359
 
      </tr>
360
 
      <tr>
361
 
        <td>SM_CYKANJIWINDOW</td>
362
 
        <td>For double byte character set versions of the system, this is the
363
 
          height of the Kanji window at the bottom of the screen, in
364
 
          pixels.
365
 
        </td>
366
 
      </tr>
367
 
      <tr>
368
 
        <td>SM_CYMAXIMIZED</td>
369
 
        <td>The default height, in pixels, of a maximized top-level window on
370
 
          the primary display monitor.
371
 
        </td>
372
 
      </tr>
373
 
      <tr>
374
 
        <td>SM_CYMAXTRACK</td>
375
 
        <td>The default maximum height of a window that has a caption and
376
 
          sizing borders, in pixels. This metric refers to the entire desktop.
377
 
          The user cannot drag the window frame to a size larger than these
378
 
          dimensions. A window can override this value by processing the
379
 
          WM_GETMINMAXINFO message.
380
 
        </td>
381
 
      </tr>
382
 
      <tr>
383
 
        <td>SM_CYMENU</td>
384
 
        <td>The height of a single-line menu bar, in pixels.</td>
385
 
      </tr>
386
 
      <tr>
387
 
        <td>SM_CYMENUCHECK</td>
388
 
        <td>The height of the default menu check-mark bitmap, in pixels.</td>
389
 
      </tr>
390
 
      <tr>
391
 
        <td>SM_CYMENUSIZE</td>
392
 
        <td>The height of menu bar buttons, such as the child window close
393
 
          button that is used in the multiple document interface, in
394
 
          pixels.
395
 
        </td>
396
 
      </tr>
397
 
      <tr>
398
 
        <td>SM_CYMIN</td>
399
 
        <td>The minimum height of a window, in pixels.</td>
400
 
      </tr>
401
 
      <tr>
402
 
        <td>SM_CYMINIMIZED</td>
403
 
        <td>The height of a minimized window, in pixels.</td>
404
 
      </tr>
405
 
      <tr>
406
 
        <td>SM_CYMINSPACING</td>
407
 
        <td>The height of a grid cell for a minimized window, in pixels. Each
408
 
          minimized window fits into a rectangle this size when arranged. This
409
 
          value is always greater than or equal to SM_CYMINIMIZED.
410
 
        </td>
411
 
      </tr>
412
 
      <tr>
413
 
        <td>SM_CYMINTRACK</td>
414
 
        <td>The minimum tracking height of a window, in pixels. The user
415
 
          cannot drag the window frame to a size smaller than these dimensions.
416
 
          A window can override this value by processing the WM_GETMINMAXINFO
417
 
          message.
418
 
        </td>
419
 
      </tr>
420
 
      <tr>
421
 
        <td>SM_CYSCREEN</td>
422
 
        <td>The height of the screen of the primary display monitor, in
423
 
          pixels. This is the same value obtained by calling GetDeviceCaps as
424
 
          follows: GetDeviceCaps( hdcPrimaryMonitor, VERTRES).
425
 
        </td>
426
 
      </tr>
427
 
      <tr>
428
 
        <td>SM_CYSIZE</td>
429
 
        <td>The height of a button in a window caption or title bar, in
430
 
          pixels.
431
 
        </td>
432
 
      </tr>
433
 
      <tr>
434
 
        <td>SM_CYSIZEFRAME</td>
435
 
        <td>The thickness of the sizing border around the perimeter of a
436
 
          window that can be resized, in pixels. SM_CXSIZEFRAME is the width of
437
 
          the horizontal border, and SM_CYSIZEFRAME is the height of the
438
 
          vertical border. This value is the same as SM_CYFRAME.
439
 
        </td>
440
 
      </tr>
441
 
      <tr>
442
 
        <td>SM_CYSMCAPTION</td>
443
 
        <td>The height of a small caption, in pixels.</td>
444
 
      </tr>
445
 
      <tr>
446
 
        <td>SM_CYSMICON</td>
447
 
        <td>The recommended height of a small icon, in pixels. Small icons
448
 
          typically appear in window captions and in small icon view.
449
 
        </td>
450
 
      </tr>
451
 
      <tr>
452
 
        <td>SM_CYSMSIZE</td>
453
 
        <td>The height of small caption buttons, in pixels.</td>
454
 
      </tr>
455
 
      <tr>
456
 
        <td>SM_CYVIRTUALSCREEN</td>
457
 
        <td>The height of the virtual screen, in pixels. The virtual screen is
458
 
          the bounding rectangle of all display monitors. The SM_YVIRTUALSCREEN
459
 
          metric is the coordinates for the top of the virtual screen.
460
 
        </td>
461
 
      </tr>
462
 
      <tr>
463
 
        <td>SM_CYVSCROLL</td>
464
 
        <td>The height of the arrow bitmap on a vertical scroll bar, in
465
 
          pixels.
466
 
        </td>
467
 
      </tr>
468
 
      <tr>
469
 
        <td>SM_CYVTHUMB</td>
470
 
        <td>The height of the thumb box in a vertical scroll bar, in
471
 
          pixels.
472
 
        </td>
473
 
      </tr>
474
 
      <tr>
475
 
        <td>SM_DBCSENABLED</td>
476
 
        <td>Nonzero if User32.dll supports DBCS; otherwise, 0.</td>
477
 
      </tr>
478
 
      <tr>
479
 
        <td>SM_DEBUG</td>
480
 
        <td>Nonzero if the debug version of User.exe is installed; otherwise,
481
 
          0.
482
 
        </td>
483
 
      </tr>
484
 
      <tr>
485
 
        <td>SM_IMMENABLED</td>
486
 
        <td>Nonzero if Input Method Manager/Input Method Editor features are
487
 
          enabled; otherwise, 0. SM_IMMENABLED indicates whether the system is
488
 
          ready to use a Unicode-based IME on a Unicode application. To ensure
489
 
          that a language-dependent IME works, check SM_DBCSENABLED and the
490
 
          system ANSI code page. Otherwise the ANSI-to-Unicode conversion may
491
 
          not be performed correctly, or some components like fonts or registry
492
 
          settings may not be present.
493
 
        </td>
494
 
      </tr>
495
 
      <tr>
496
 
        <td>SM_MEDIACENTER</td>
497
 
        <td>Nonzero if the current operating system is the Windows XP, Media
498
 
          Center Edition, 0 if not.
499
 
        </td>
500
 
      </tr>
501
 
      <tr>
502
 
        <td>SM_MENUDROPALIGNMENT</td>
503
 
        <td>Nonzero if drop-down menus are right-aligned with the
504
 
          corresponding menu-bar item; 0 if the menus are left-aligned.
505
 
        </td>
506
 
      </tr>
507
 
      <tr>
508
 
        <td>SM_MIDEASTENABLED</td>
509
 
        <td>Nonzero if the system is enabled for Hebrew and Arabic languages,
510
 
          0 if not.
511
 
        </td>
512
 
      </tr>
513
 
      <tr>
514
 
        <td>SM_MOUSEPRESENT</td>
515
 
        <td>Nonzero if a mouse is installed; otherwise, 0. This value is
516
 
          rarely zero, because of support for virtual mice and because some
517
 
          systems detect the presence of the port instead of the presence of a
518
 
          mouse.
519
 
        </td>
520
 
      </tr>
521
 
      <tr>
522
 
        <td>SM_MOUSEHORIZONTALWHEELPRESENT</td>
523
 
        <td>Nonzero if a mouse with a horizontal scroll wheel is installed;
524
 
          otherwise 0.
525
 
        </td>
526
 
      </tr>
527
 
      <tr>
528
 
        <td>SM_MOUSEWHEELPRESENT</td>
529
 
        <td>Nonzero if a mouse with a vertical scroll wheel is installed;
530
 
          otherwise 0.
531
 
        </td>
532
 
      </tr>
533
 
      <tr>
534
 
        <td>SM_NETWORK</td>
535
 
        <td>The least significant bit is set if a network is present;
536
 
          otherwise, it is cleared. The other bits are reserved for future
537
 
          use.
538
 
        </td>
539
 
      </tr>
540
 
      <tr>
541
 
        <td>SM_PENWINDOWS</td>
542
 
        <td>Nonzero if the Microsoft Windows for Pen computing extensions are
543
 
          installed; zero otherwise.
544
 
        </td>
545
 
      </tr>
546
 
      <tr>
547
 
        <td>SM_REMOTECONTROL</td>
548
 
        <td>This system metric is used in a Terminal Services environment. Its
549
 
          value is nonzero if the current session is remotely controlled;
550
 
          otherwise, 0.
551
 
        </td>
552
 
      </tr>
553
 
      <tr>
554
 
        <td>SM_REMOTESESSION</td>
555
 
        <td>This system metric is used in a Terminal Services environment. If
556
 
          the calling process is associated with a Terminal Services client
557
 
          session, the return value is nonzero. If the calling process is
558
 
          associated with the Terminal Server console session, the return value
559
 
          is 0. The console session is not necessarily the physical console. For
560
 
          more information, see WTSGetActiveConsoleSessionId.
561
 
        </td>
562
 
      </tr>
563
 
      <tr>
564
 
        <td>SM_SAMEDISPLAYFORMAT</td>
565
 
        <td>Nonzero if all the display monitors have the same color format,
566
 
          otherwise, 0. Two displays can have the same bit depth, but different
567
 
          color formats. For example, the red, green, and blue pixels can be
568
 
          encoded with different numbers of bits, or those bits can be located
569
 
          in different places in a pixel color value.
570
 
        </td>
571
 
      </tr>
572
 
      <tr>
573
 
        <td>SM_SECURE</td>
574
 
        <td>This system metric should be ignored; it always returns 0.</td>
575
 
      </tr>
576
 
      <tr>
577
 
        <td>SM_SERVERR2</td>
578
 
        <td>The build number if the system is Windows Server 2003 R2;
579
 
          otherwise, 0.
580
 
        </td>
581
 
      </tr>
582
 
      <tr>
583
 
        <td>SM_SHOWSOUNDS</td>
584
 
        <td>Nonzero if the user requires an application to present information
585
 
          visually in situations where it would otherwise present the
586
 
          information only in audible form; otherwise, 0.
587
 
        </td>
588
 
      </tr>
589
 
      <tr>
590
 
        <td>SM_SHUTTINGDOWN</td>
591
 
        <td>Nonzero if the current session is shutting down; otherwise,
592
 
          0.
593
 
        </td>
594
 
      </tr>
595
 
      <tr>
596
 
        <td>SM_SLOWMACHINE</td>
597
 
        <td>Nonzero if the computer has a low-end (slow) processor; otherwise,
598
 
          0.
599
 
        </td>
600
 
      </tr>
601
 
      <tr>
602
 
        <td>SM_STARTER</td>
603
 
        <td>Nonzero if the current operating system is Windows XP Starter
604
 
          Edition; otherwise, 0.
605
 
        </td>
606
 
      </tr>
607
 
      <tr>
608
 
        <td>SM_SWAPBUTTON</td>
609
 
        <td>Nonzero if the meanings of the left and right mouse buttons are
610
 
          swapped; otherwise, 0.
611
 
        </td>
612
 
      </tr>
613
 
      <tr>
614
 
        <td>SM_TABLETPC</td>
615
 
        <td>Nonzero if the current operating system is the Windows XP Tablet
616
 
          PC edition, 0 if not.
617
 
        </td>
618
 
      </tr>
619
 
      <tr>
620
 
        <td>SM_XVIRTUALSCREEN</td>
621
 
        <td>The coordinates for the left side of the virtual screen. The
622
 
          virtual screen is the bounding rectangle of all display monitors. The
623
 
          SM_CXVIRTUALSCREEN metric is the width of the virtual screen.
624
 
        </td>
625
 
      </tr>
626
 
      <tr>
627
 
        <td>SM_YVIRTUALSCREEN</td>
628
 
        <td>The coordinates for the top of the virtual screen. The virtual
629
 
          screen is the bounding rectangle of all display monitors. The
630
 
          SM_CYVIRTUALSCREEN metric is the height of the virtual screen.
631
 
        </td>
632
 
      </tr>
633
 
    </informaltable>
634
 
  </refsection>
635
 
  <refsection>
636
 
    <title>Examples</title>
637
 
    <programlisting role="example"><![CDATA[ 
 
14
    <refnamediv>
 
15
        <refname>getsystemmetrics</refname>
 
16
        <refpurpose>Retrieves the specified system metric or system configuration
 
17
            setting (Windows only)
 
18
        </refpurpose>
 
19
    </refnamediv>
 
20
    <refsynopsisdiv>
 
21
        <title>Calling Sequence</title>
 
22
        <synopsis>res = getsystemmetrics(key)</synopsis>
 
23
    </refsynopsisdiv>
 
24
    <refsection>
 
25
        <title>Arguments</title>
 
26
        <variablelist>
 
27
            <varlistentry>
 
28
                <term>res</term>
 
29
                <listitem>
 
30
                    <para>a value (integer)</para>
 
31
                </listitem>
 
32
            </varlistentry>
 
33
            <varlistentry>
 
34
                <term>key</term>
 
35
                <listitem>
 
36
                    <para>a string (see below)</para>
 
37
                </listitem>
 
38
            </varlistentry>
 
39
        </variablelist>
 
40
    </refsection>
 
41
    <refsection>
 
42
        <title>Description</title>
 
43
        <para>Retrieves the specified system metric or system configuration
 
44
            setting.
 
45
        </para>
 
46
        <informaltable border="1">
 
47
            <tr>
 
48
                <td>SM_ARRANGE</td>
 
49
                <td>The flags that specify how the system arranged minimized windows.
 
50
                    For more information, see the Remarks section in this topic.
 
51
                </td>
 
52
            </tr>
 
53
            <tr>
 
54
                <td>SM_CLEANBOOT</td>
 
55
                <td>The value that specifies how the system is started: 0 Normal boot
 
56
                    1 Fail-safe boot 2 Fail-safe with network boot A fail-safe boot (also
 
57
                    called SafeBoot, Safe Mode, or Clean Boot) bypasses the user startup
 
58
                    files.
 
59
                </td>
 
60
            </tr>
 
61
            <tr>
 
62
                <td>SM_CMONITORS</td>
 
63
                <td>The number of display monitors on a desktop. For more information,
 
64
                    see the Remarks section in this topic.
 
65
                </td>
 
66
            </tr>
 
67
            <tr>
 
68
                <td>SM_CMOUSEBUTTONS</td>
 
69
                <td>The number of buttons on a mouse, or zero if no mouse is
 
70
                    installed.
 
71
                </td>
 
72
            </tr>
 
73
            <tr>
 
74
                <td>SM_CXBORDER</td>
 
75
                <td>The width of a window border, in pixels. This is equivalent to the
 
76
                    SM_CXEDGE value for windows with the 3-D look.
 
77
                </td>
 
78
            </tr>
 
79
            <tr>
 
80
                <td>SM_CXCURSOR</td>
 
81
                <td>The width of a cursor, in pixels. The system cannot create cursors
 
82
                    of other sizes.
 
83
                </td>
 
84
            </tr>
 
85
            <tr>
 
86
                <td>SM_CXDLGFRAME</td>
 
87
                <td>This value is the same as SM_CXFIXEDFRAME.</td>
 
88
            </tr>
 
89
            <tr>
 
90
                <td>SM_CXDOUBLECLK</td>
 
91
                <td>The width of the rectangle around the location of a first click in
 
92
                    a double-click sequence, in pixels. The second click must occur within
 
93
                    the rectangle that is defined by SM_CXDOUBLECLK and SM_CYDOUBLECLK for
 
94
                    the system to consider the two clicks a double-click. The two clicks
 
95
                    must also occur within a specified time. To set the width of the
 
96
                    double-click rectangle, call SystemParametersInfo with
 
97
                    SPI_SETDOUBLECLKWIDTH.
 
98
                </td>
 
99
            </tr>
 
100
            <tr>
 
101
                <td>SM_CXDRAG</td>
 
102
                <td>The number of pixels on either side of a mouse-down point that the
 
103
                    mouse pointer can move before a drag operation begins. This allows the
 
104
                    user to click and release the mouse button easily without
 
105
                    unintentionally starting a drag operation. If this value is negative,
 
106
                    it is subtracted from the left of the mouse-down point and added to
 
107
                    the right of it.
 
108
                </td>
 
109
            </tr>
 
110
            <tr>
 
111
                <td>SM_CXEDGE</td>
 
112
                <td>The width of a 3-D border, in pixels. This metric is the 3-D
 
113
                    counterpart of SM_CXBORDER.
 
114
                </td>
 
115
            </tr>
 
116
            <tr>
 
117
                <td>SM_CXFIXEDFRAME</td>
 
118
                <td>The thickness of the frame around the perimeter of a window that
 
119
                    has a caption but is not sizable, in pixels. SM_CXFIXEDFRAME is the
 
120
                    height of the horizontal border, and SM_CYFIXEDFRAME is the width of
 
121
                    the vertical border. This value is the same as SM_CXDLGFRAME.
 
122
                </td>
 
123
            </tr>
 
124
            <tr>
 
125
                <td>SM_CXFOCUSBORDER</td>
 
126
                <td>The width of the left and right edges of the focus rectangle that
 
127
                    the DrawFocusRect draws. This value is in pixels.
 
128
                </td>
 
129
            </tr>
 
130
            <tr>
 
131
                <td>SM_CXFRAME</td>
 
132
                <td>This value is the same as SM_CXSIZEFRAME.</td>
 
133
            </tr>
 
134
            <tr>
 
135
                <td>SM_CXFULLSCREEN</td>
 
136
                <td>The width of the client area for a full-screen window on the
 
137
                    primary display monitor, in pixels. To get the coordinates of the
 
138
                    portion of the screen that is not obscured by the system taskbar or by
 
139
                    application desktop toolbars, call the SystemParametersInfo function
 
140
                    with the SPI_GETWORKAREA value.
 
141
                </td>
 
142
            </tr>
 
143
            <tr>
 
144
                <td>SM_CXHSCROLL</td>
 
145
                <td>The width of the arrow bitmap on a horizontal scroll bar, in
 
146
                    pixels.
 
147
                </td>
 
148
            </tr>
 
149
            <tr>
 
150
                <td>SM_CXHTHUMB</td>
 
151
                <td>The width of the thumb box in a horizontal scroll bar, in
 
152
                    pixels.
 
153
                </td>
 
154
            </tr>
 
155
            <tr>
 
156
                <td>SM_CXICON</td>
 
157
                <td>The default width of an icon, in pixels. The LoadIcon function can
 
158
                    load only icons with the dimensions that SM_CXICON and SM_CYICON
 
159
                    specifies.
 
160
                </td>
 
161
            </tr>
 
162
            <tr>
 
163
                <td>SM_CXICONSPACING</td>
 
164
                <td>The width of a grid cell for items in large icon view, in pixels.
 
165
                    Each item fits into a rectangle of size SM_CXICONSPACING by
 
166
                    SM_CYICONSPACING when arranged. This value is always greater than or
 
167
                    equal to SM_CXICON.
 
168
                </td>
 
169
            </tr>
 
170
            <tr>
 
171
                <td>SM_CXMAXIMIZED</td>
 
172
                <td>The default width, in pixels, of a maximized top-level window on
 
173
                    the primary display monitor.
 
174
                </td>
 
175
            </tr>
 
176
            <tr>
 
177
                <td>SM_CXMAXTRACK</td>
 
178
                <td>The default maximum width of a window that has a caption and
 
179
                    sizing borders, in pixels. This metric refers to the entire desktop.
 
180
                    The user cannot drag the window frame to a size larger than these
 
181
                    dimensions. A window can override this value by processing the
 
182
                    WM_GETMINMAXINFO message.
 
183
                </td>
 
184
            </tr>
 
185
            <tr>
 
186
                <td>SM_CXMENUCHECK</td>
 
187
                <td>The width of the default menu check-mark bitmap, in pixels.</td>
 
188
            </tr>
 
189
            <tr>
 
190
                <td>SM_CXMENUSIZE</td>
 
191
                <td>The width of menu bar buttons, such as the child window close
 
192
                    button that is used in the multiple document interface, in
 
193
                    pixels.
 
194
                </td>
 
195
            </tr>
 
196
            <tr>
 
197
                <td>SM_CXMIN</td>
 
198
                <td>The minimum width of a window, in pixels.</td>
 
199
            </tr>
 
200
            <tr>
 
201
                <td>SM_CXMINIMIZED</td>
 
202
                <td>The width of a minimized window, in pixels.</td>
 
203
            </tr>
 
204
            <tr>
 
205
                <td>SM_CXMINSPACING</td>
 
206
                <td>The width of a grid cell for a minimized window, in pixels. Each
 
207
                    minimized window fits into a rectangle this size when arranged. This
 
208
                    value is always greater than or equal to SM_CXMINIMIZED.
 
209
                </td>
 
210
            </tr>
 
211
            <tr>
 
212
                <td>SM_CXMINTRACK</td>
 
213
                <td>The minimum tracking width of a window, in pixels. The user cannot
 
214
                    drag the window frame to a size smaller than these dimensions. A
 
215
                    window can override this value by processing the WM_GETMINMAXINFO
 
216
                    message.
 
217
                </td>
 
218
            </tr>
 
219
            <tr>
 
220
                <td>SM_CXPADDEDBORDER</td>
 
221
                <td>The amount of border padding for captioned windows, in
 
222
                    pixels.
 
223
                </td>
 
224
            </tr>
 
225
            <tr>
 
226
                <td>SM_CXSCREEN</td>
 
227
                <td>The width of the screen of the primary display monitor, in pixels.
 
228
                    This is the same value obtained by calling GetDeviceCaps as follows:
 
229
                    GetDeviceCaps( hdcPrimaryMonitor, HORZRES).
 
230
                </td>
 
231
            </tr>
 
232
            <tr>
 
233
                <td>SM_CXSIZE</td>
 
234
                <td>The width of a button in a window caption or title bar, in
 
235
                    pixels.
 
236
                </td>
 
237
            </tr>
 
238
            <tr>
 
239
                <td>SM_CXSIZEFRAME</td>
 
240
                <td>The thickness of the sizing border around the perimeter of a
 
241
                    window that can be resized, in pixels. SM_CXSIZEFRAME is the width of
 
242
                    the horizontal border, and SM_CYSIZEFRAME is the height of the
 
243
                    vertical border. This value is the same as SM_CXFRAME.
 
244
                </td>
 
245
            </tr>
 
246
            <tr>
 
247
                <td>SM_CXSMICON</td>
 
248
                <td>The recommended width of a small icon, in pixels. Small icons
 
249
                    typically appear in window captions and in small icon view.
 
250
                </td>
 
251
            </tr>
 
252
            <tr>
 
253
                <td>SM_CXSMSIZE</td>
 
254
                <td>The width of small caption buttons, in pixels.</td>
 
255
            </tr>
 
256
            <tr>
 
257
                <td>SM_CXVIRTUALSCREEN</td>
 
258
                <td>The width of the virtual screen, in pixels. The virtual screen is
 
259
                    the bounding rectangle of all display monitors. The SM_XVIRTUALSCREEN
 
260
                    metric is the coordinates for the left side of the virtual
 
261
                    screen.
 
262
                </td>
 
263
            </tr>
 
264
            <tr>
 
265
                <td>SM_CXVSCROLL</td>
 
266
                <td>The width of a vertical scroll bar, in pixels.</td>
 
267
            </tr>
 
268
            <tr>
 
269
                <td>SM_CYBORDER</td>
 
270
                <td>The height of a window border, in pixels. This is equivalent to
 
271
                    the SM_CYEDGE value for windows with the 3-D look.
 
272
                </td>
 
273
            </tr>
 
274
            <tr>
 
275
                <td>SM_CYCAPTION</td>
 
276
                <td>The height of a caption area, in pixels.</td>
 
277
            </tr>
 
278
            <tr>
 
279
                <td>SM_CYCURSOR</td>
 
280
                <td>The height of a cursor, in pixels. The system cannot create
 
281
                    cursors of other sizes.
 
282
                </td>
 
283
            </tr>
 
284
            <tr>
 
285
                <td>SM_CYDLGFRAME</td>
 
286
                <td>This value is the same as SM_CYFIXEDFRAME.</td>
 
287
            </tr>
 
288
            <tr>
 
289
                <td>SM_CYDOUBLECLK</td>
 
290
                <td>The height of the rectangle around the location of a first click
 
291
                    in a double-click sequence, in pixels. The second click must occur
 
292
                    within the rectangle defined by SM_CXDOUBLECLK and SM_CYDOUBLECLK for
 
293
                    the system to consider the two clicks a double-click. The two clicks
 
294
                    must also occur within a specified time. To set the height of the
 
295
                    double-click rectangle, call SystemParametersInfo with
 
296
                    SPI_SETDOUBLECLKHEIGHT.
 
297
                </td>
 
298
            </tr>
 
299
            <tr>
 
300
                <td>SM_CYDRAG</td>
 
301
                <td>The number of pixels above and below a mouse-down point that the
 
302
                    mouse pointer can move before a drag operation begins. This allows the
 
303
                    user to click and release the mouse button easily without
 
304
                    unintentionally starting a drag operation. If this value is negative,
 
305
                    it is subtracted from above the mouse-down point and added below
 
306
                    it.
 
307
                </td>
 
308
            </tr>
 
309
            <tr>
 
310
                <td>SM_CYEDGE</td>
 
311
                <td>The height of a 3-D border, in pixels. This is the 3-D counterpart
 
312
                    of SM_CYBORDER.
 
313
                </td>
 
314
            </tr>
 
315
            <tr>
 
316
                <td>SM_CYFIXEDFRAME</td>
 
317
                <td>The thickness of the frame around the perimeter of a window that
 
318
                    has a caption but is not sizable, in pixels. SM_CXFIXEDFRAME is the
 
319
                    height of the horizontal border, and SM_CYFIXEDFRAME is the width of
 
320
                    the vertical border. This value is the same as SM_CYDLGFRAME.
 
321
                </td>
 
322
            </tr>
 
323
            <tr>
 
324
                <td>SM_CYFOCUSBORDER</td>
 
325
                <td>The height of the top and bottom edges of the focus rectangle
 
326
                    drawn by DrawFocusRect. This value is in pixels.
 
327
                </td>
 
328
            </tr>
 
329
            <tr>
 
330
                <td>SM_CYFRAME</td>
 
331
                <td>This value is the same as SM_CYSIZEFRAME.</td>
 
332
            </tr>
 
333
            <tr>
 
334
                <td>SM_CYFULLSCREEN</td>
 
335
                <td>The height of the client area for a full-screen window on the
 
336
                    primary display monitor, in pixels. To get the coordinates of the
 
337
                    portion of the screen not obscured by the system taskbar or by
 
338
                    application desktop toolbars, call the SystemParametersInfo function
 
339
                    with the SPI_GETWORKAREA value.
 
340
                </td>
 
341
            </tr>
 
342
            <tr>
 
343
                <td>SM_CYHSCROLL</td>
 
344
                <td>The height of a horizontal scroll bar, in pixels.</td>
 
345
            </tr>
 
346
            <tr>
 
347
                <td>SM_CYICON</td>
 
348
                <td>The default height of an icon, in pixels. The LoadIcon function
 
349
                    can load only icons with the dimensions SM_CXICON and SM_CYICON.
 
350
                </td>
 
351
            </tr>
 
352
            <tr>
 
353
                <td>SM_CYICONSPACING</td>
 
354
                <td>The height of a grid cell for items in large icon view, in pixels.
 
355
                    Each item fits into a rectangle of size SM_CXICONSPACING by
 
356
                    SM_CYICONSPACING when arranged. This value is always greater than or
 
357
                    equal to SM_CYICON.
 
358
                </td>
 
359
            </tr>
 
360
            <tr>
 
361
                <td>SM_CYKANJIWINDOW</td>
 
362
                <td>For double byte character set versions of the system, this is the
 
363
                    height of the Kanji window at the bottom of the screen, in
 
364
                    pixels.
 
365
                </td>
 
366
            </tr>
 
367
            <tr>
 
368
                <td>SM_CYMAXIMIZED</td>
 
369
                <td>The default height, in pixels, of a maximized top-level window on
 
370
                    the primary display monitor.
 
371
                </td>
 
372
            </tr>
 
373
            <tr>
 
374
                <td>SM_CYMAXTRACK</td>
 
375
                <td>The default maximum height of a window that has a caption and
 
376
                    sizing borders, in pixels. This metric refers to the entire desktop.
 
377
                    The user cannot drag the window frame to a size larger than these
 
378
                    dimensions. A window can override this value by processing the
 
379
                    WM_GETMINMAXINFO message.
 
380
                </td>
 
381
            </tr>
 
382
            <tr>
 
383
                <td>SM_CYMENU</td>
 
384
                <td>The height of a single-line menu bar, in pixels.</td>
 
385
            </tr>
 
386
            <tr>
 
387
                <td>SM_CYMENUCHECK</td>
 
388
                <td>The height of the default menu check-mark bitmap, in pixels.</td>
 
389
            </tr>
 
390
            <tr>
 
391
                <td>SM_CYMENUSIZE</td>
 
392
                <td>The height of menu bar buttons, such as the child window close
 
393
                    button that is used in the multiple document interface, in
 
394
                    pixels.
 
395
                </td>
 
396
            </tr>
 
397
            <tr>
 
398
                <td>SM_CYMIN</td>
 
399
                <td>The minimum height of a window, in pixels.</td>
 
400
            </tr>
 
401
            <tr>
 
402
                <td>SM_CYMINIMIZED</td>
 
403
                <td>The height of a minimized window, in pixels.</td>
 
404
            </tr>
 
405
            <tr>
 
406
                <td>SM_CYMINSPACING</td>
 
407
                <td>The height of a grid cell for a minimized window, in pixels. Each
 
408
                    minimized window fits into a rectangle this size when arranged. This
 
409
                    value is always greater than or equal to SM_CYMINIMIZED.
 
410
                </td>
 
411
            </tr>
 
412
            <tr>
 
413
                <td>SM_CYMINTRACK</td>
 
414
                <td>The minimum tracking height of a window, in pixels. The user
 
415
                    cannot drag the window frame to a size smaller than these dimensions.
 
416
                    A window can override this value by processing the WM_GETMINMAXINFO
 
417
                    message.
 
418
                </td>
 
419
            </tr>
 
420
            <tr>
 
421
                <td>SM_CYSCREEN</td>
 
422
                <td>The height of the screen of the primary display monitor, in
 
423
                    pixels. This is the same value obtained by calling GetDeviceCaps as
 
424
                    follows: GetDeviceCaps( hdcPrimaryMonitor, VERTRES).
 
425
                </td>
 
426
            </tr>
 
427
            <tr>
 
428
                <td>SM_CYSIZE</td>
 
429
                <td>The height of a button in a window caption or title bar, in
 
430
                    pixels.
 
431
                </td>
 
432
            </tr>
 
433
            <tr>
 
434
                <td>SM_CYSIZEFRAME</td>
 
435
                <td>The thickness of the sizing border around the perimeter of a
 
436
                    window that can be resized, in pixels. SM_CXSIZEFRAME is the width of
 
437
                    the horizontal border, and SM_CYSIZEFRAME is the height of the
 
438
                    vertical border. This value is the same as SM_CYFRAME.
 
439
                </td>
 
440
            </tr>
 
441
            <tr>
 
442
                <td>SM_CYSMCAPTION</td>
 
443
                <td>The height of a small caption, in pixels.</td>
 
444
            </tr>
 
445
            <tr>
 
446
                <td>SM_CYSMICON</td>
 
447
                <td>The recommended height of a small icon, in pixels. Small icons
 
448
                    typically appear in window captions and in small icon view.
 
449
                </td>
 
450
            </tr>
 
451
            <tr>
 
452
                <td>SM_CYSMSIZE</td>
 
453
                <td>The height of small caption buttons, in pixels.</td>
 
454
            </tr>
 
455
            <tr>
 
456
                <td>SM_CYVIRTUALSCREEN</td>
 
457
                <td>The height of the virtual screen, in pixels. The virtual screen is
 
458
                    the bounding rectangle of all display monitors. The SM_YVIRTUALSCREEN
 
459
                    metric is the coordinates for the top of the virtual screen.
 
460
                </td>
 
461
            </tr>
 
462
            <tr>
 
463
                <td>SM_CYVSCROLL</td>
 
464
                <td>The height of the arrow bitmap on a vertical scroll bar, in
 
465
                    pixels.
 
466
                </td>
 
467
            </tr>
 
468
            <tr>
 
469
                <td>SM_CYVTHUMB</td>
 
470
                <td>The height of the thumb box in a vertical scroll bar, in
 
471
                    pixels.
 
472
                </td>
 
473
            </tr>
 
474
            <tr>
 
475
                <td>SM_DBCSENABLED</td>
 
476
                <td>Nonzero if User32.dll supports DBCS; otherwise, 0.</td>
 
477
            </tr>
 
478
            <tr>
 
479
                <td>SM_DEBUG</td>
 
480
                <td>Nonzero if the debug version of User.exe is installed; otherwise,
 
481
                    0.
 
482
                </td>
 
483
            </tr>
 
484
            <tr>
 
485
                <td>SM_IMMENABLED</td>
 
486
                <td>Nonzero if Input Method Manager/Input Method Editor features are
 
487
                    enabled; otherwise, 0. SM_IMMENABLED indicates whether the system is
 
488
                    ready to use a Unicode-based IME on a Unicode application. To ensure
 
489
                    that a language-dependent IME works, check SM_DBCSENABLED and the
 
490
                    system ANSI code page. Otherwise the ANSI-to-Unicode conversion may
 
491
                    not be performed correctly, or some components like fonts or registry
 
492
                    settings may not be present.
 
493
                </td>
 
494
            </tr>
 
495
            <tr>
 
496
                <td>SM_MEDIACENTER</td>
 
497
                <td>Nonzero if the current operating system is the Windows XP, Media
 
498
                    Center Edition, 0 if not.
 
499
                </td>
 
500
            </tr>
 
501
            <tr>
 
502
                <td>SM_MENUDROPALIGNMENT</td>
 
503
                <td>Nonzero if drop-down menus are right-aligned with the
 
504
                    corresponding menu-bar item; 0 if the menus are left-aligned.
 
505
                </td>
 
506
            </tr>
 
507
            <tr>
 
508
                <td>SM_MIDEASTENABLED</td>
 
509
                <td>Nonzero if the system is enabled for Hebrew and Arabic languages,
 
510
                    0 if not.
 
511
                </td>
 
512
            </tr>
 
513
            <tr>
 
514
                <td>SM_MOUSEPRESENT</td>
 
515
                <td>Nonzero if a mouse is installed; otherwise, 0. This value is
 
516
                    rarely zero, because of support for virtual mice and because some
 
517
                    systems detect the presence of the port instead of the presence of a
 
518
                    mouse.
 
519
                </td>
 
520
            </tr>
 
521
            <tr>
 
522
                <td>SM_MOUSEHORIZONTALWHEELPRESENT</td>
 
523
                <td>Nonzero if a mouse with a horizontal scroll wheel is installed;
 
524
                    otherwise 0.
 
525
                </td>
 
526
            </tr>
 
527
            <tr>
 
528
                <td>SM_MOUSEWHEELPRESENT</td>
 
529
                <td>Nonzero if a mouse with a vertical scroll wheel is installed;
 
530
                    otherwise 0.
 
531
                </td>
 
532
            </tr>
 
533
            <tr>
 
534
                <td>SM_NETWORK</td>
 
535
                <td>The least significant bit is set if a network is present;
 
536
                    otherwise, it is cleared. The other bits are reserved for future
 
537
                    use.
 
538
                </td>
 
539
            </tr>
 
540
            <tr>
 
541
                <td>SM_PENWINDOWS</td>
 
542
                <td>Nonzero if the Microsoft Windows for Pen computing extensions are
 
543
                    installed; zero otherwise.
 
544
                </td>
 
545
            </tr>
 
546
            <tr>
 
547
                <td>SM_REMOTECONTROL</td>
 
548
                <td>This system metric is used in a Terminal Services environment. Its
 
549
                    value is nonzero if the current session is remotely controlled;
 
550
                    otherwise, 0.
 
551
                </td>
 
552
            </tr>
 
553
            <tr>
 
554
                <td>SM_REMOTESESSION</td>
 
555
                <td>This system metric is used in a Terminal Services environment. If
 
556
                    the calling process is associated with a Terminal Services client
 
557
                    session, the return value is nonzero. If the calling process is
 
558
                    associated with the Terminal Server console session, the return value
 
559
                    is 0. The console session is not necessarily the physical console. For
 
560
                    more information, see WTSGetActiveConsoleSessionId.
 
561
                </td>
 
562
            </tr>
 
563
            <tr>
 
564
                <td>SM_SAMEDISPLAYFORMAT</td>
 
565
                <td>Nonzero if all the display monitors have the same color format,
 
566
                    otherwise, 0. Two displays can have the same bit depth, but different
 
567
                    color formats. For example, the red, green, and blue pixels can be
 
568
                    encoded with different numbers of bits, or those bits can be located
 
569
                    in different places in a pixel color value.
 
570
                </td>
 
571
            </tr>
 
572
            <tr>
 
573
                <td>SM_SECURE</td>
 
574
                <td>This system metric should be ignored; it always returns 0.</td>
 
575
            </tr>
 
576
            <tr>
 
577
                <td>SM_SERVERR2</td>
 
578
                <td>The build number if the system is Windows Server 2003 R2;
 
579
                    otherwise, 0.
 
580
                </td>
 
581
            </tr>
 
582
            <tr>
 
583
                <td>SM_SHOWSOUNDS</td>
 
584
                <td>Nonzero if the user requires an application to present information
 
585
                    visually in situations where it would otherwise present the
 
586
                    information only in audible form; otherwise, 0.
 
587
                </td>
 
588
            </tr>
 
589
            <tr>
 
590
                <td>SM_SHUTTINGDOWN</td>
 
591
                <td>Nonzero if the current session is shutting down; otherwise,
 
592
                    0.
 
593
                </td>
 
594
            </tr>
 
595
            <tr>
 
596
                <td>SM_SLOWMACHINE</td>
 
597
                <td>Nonzero if the computer has a low-end (slow) processor; otherwise,
 
598
                    0.
 
599
                </td>
 
600
            </tr>
 
601
            <tr>
 
602
                <td>SM_STARTER</td>
 
603
                <td>Nonzero if the current operating system is Windows XP Starter
 
604
                    Edition; otherwise, 0.
 
605
                </td>
 
606
            </tr>
 
607
            <tr>
 
608
                <td>SM_SWAPBUTTON</td>
 
609
                <td>Nonzero if the meanings of the left and right mouse buttons are
 
610
                    swapped; otherwise, 0.
 
611
                </td>
 
612
            </tr>
 
613
            <tr>
 
614
                <td>SM_TABLETPC</td>
 
615
                <td>Nonzero if the current operating system is the Windows XP Tablet
 
616
                    PC edition, 0 if not.
 
617
                </td>
 
618
            </tr>
 
619
            <tr>
 
620
                <td>SM_XVIRTUALSCREEN</td>
 
621
                <td>The coordinates for the left side of the virtual screen. The
 
622
                    virtual screen is the bounding rectangle of all display monitors. The
 
623
                    SM_CXVIRTUALSCREEN metric is the width of the virtual screen.
 
624
                </td>
 
625
            </tr>
 
626
            <tr>
 
627
                <td>SM_YVIRTUALSCREEN</td>
 
628
                <td>The coordinates for the top of the virtual screen. The virtual
 
629
                    screen is the bounding rectangle of all display monitors. The
 
630
                    SM_CYVIRTUALSCREEN metric is the height of the virtual screen.
 
631
                </td>
 
632
            </tr>
 
633
        </informaltable>
 
634
    </refsection>
 
635
    <refsection>
 
636
        <title>Examples</title>
 
637
        <programlisting role="example"><![CDATA[ 
638
638
getsystemmetrics('SM_MOUSEPRESENT')
639
639
getsystemmetrics('SM_SLOWMACHINE')
640
640
getsystemmetrics('SM_REMOTESESSION');
641
641
 ]]></programlisting>
642
 
  </refsection>
 
642
    </refsection>
643
643
</refentry>