Rev 85981 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/utils/man/getWindowsHandle.Rd% Part of the R package, https://www.R-project.org% Copyright 1995-2018 R Core Team% Distributed under GPL 2 or later\name{getWindowsHandle}\alias{getWindowsHandle}\title{Get a Windows Handle}\description{Get the Windows handle of a window or of the \R{} process in MS Windows.}\usage{getWindowsHandle(which = "Console")}\arguments{\item{which}{a string (see below), or the number of a graphics devicewindow (which must a \code{\link{windows}} one).}}\details{\code{getWindowsHandle} gets the Windows handle.Possible choices for \code{which} are:\tabular{ll}{\code{"Console"} \tab The console window handle. \cr\code{"Frame"} \tab The MDI frame window handle. \cr\code{"Process"} \tab The process pseudo-handle. \crA device number \tab The window handle of a graphics device}These values are not normally useful to users, but may be used bydevelopers making addons to \R{}.\code{NULL} is returned for the Frame handle if not running in MDI mode,for the Console handle when running \I{Rterm}, for any unrecognizedstring for \code{which}, or for a graphics device with nocorresponding window.Other windows (help browsers, etc.) are not accessiblethrough this function.}\note{This is only available on Windows.}\value{An external pointer holding the Windows handle, or \code{NULL}.}\seealso{\code{\link{getIdentification}}, \code{\link{getWindowsHandles}}}\examples{if(.Platform$OS.type == "windows")print( getWindowsHandle() )}\keyword{utilities}