IsValidHwnd: Check Windows Pointer

View source: R/DescTools.r

IsValidHwndR Documentation

Check Windows Pointer

Description

Check if a pointer points to a valid and running MS-Office instance. The function does this by first checking for NULL and nil pointer and then trying to get the current selection of the application.

Usage

IsValidHwnd(hwnd)

Arguments

hwnd

the pointer to a word instance as created by GetNewWrd() or GetCurrWrd(). Default is the last created pointer stored in DescToolsOptions("lastWord").

Value

logical value, TRUE if hwnd is a valid pointer to a running application

Author(s)

Andri Signorell <andri@signorell.net>

See Also

GetCurrWrd(), GetCurrXL(), GetCurrPP()


AndriSignorell/DescTools documentation built on April 13, 2024, 6:33 a.m.