Rev 29227 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{getWindowsHandle}\alias{getWindowsHandle}\title{Get a Windows Handle}\description{Get the Windows handle of a window or the R process.}\usage{getWindowsHandle(which = "Console")}\arguments{\item{which}{A string (see below), or the number of agraphics device window}}\details{\code{getWindowsHandle} gets the Windows handle or process ID. 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. \cr\code{"ProcessId"} \tab The process identifier. \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 add-ons to \R{}.A zero is returned for the Frame handle if not running in MDI mode,for the Console handle when running Rterm, for any unrecognizedstring for \code{which}, or for a graphics device with nocorresponding window.Currently other windows (help browsers, etc.) are not accessiblethrough this function, but there are plans to make them availablelater.}\value{A one element integer vector holding the Windows handle.}\seealso{\code{\link{getIdentification}}}\examples{getWindowsHandle()}\keyword{utilities}