Help Center

AfxPathFromWindowHandlefunction

Retrieves the path of the executable file that created the specified window.

WindowsfunctionAfxWin.incdoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

FUNCTION AfxGetPathFromWindowHandle (BYVAL hwnd AS HWND) AS DWSTRING
Also documented as AfxGetPathFromWindowHandle — one description covers them all.

Parameters

NameDescription
hwndThe window handle.

Return value

The path of the executable file.

Description

Retrieves the path of the executable file that created the specified window.

Reference

  • Include file AfxWin.inc
  • Documented in Windows/Windows Procedures.md
  • Topic: Windows Procedures