getWindowsHandle

0th

Percentile

Get a Windows Handle

Get the Windows handle of a window or of the R process.

Keywords
utilities
Usage
getWindowsHandle(which = "Console")
Arguments
which

A string (see below), or the number of a graphics device window

Details

getWindowsHandle gets the Windows handle. Possible choices for which are:

"Console" The console window handle.
"Frame" The MDI frame window handle.
"Process" The process pseudo-handle.

These values are not normally useful to users, but may be used by developers making add-ons to R.

NULL is returned for the Frame handle if not running in MDI mode, for the Console handle when running Rterm, for any unrecognized string for which, or for a graphics device with no corresponding window.

Other windows (help browsers, etc.) are not accessible through this function.

Value

An external pointer holding the Windows handle, or NULL.

Note

This is only available on Windows.

See Also

getIdentification, getWindowsHandles

Aliases
  • getWindowsHandle
Examples
library(utils) getWindowsHandle()
Documentation reproduced from package utils, version 3.4.1, License: Part of R 3.4.1

Community examples

Looks like there are no examples yet.