---
name: "GetHINSTANCE"
section: "3"
platform: "macos"
package: "tcl"
version: "152"
release: "macOS 26.5"
platforms: ["macos"]
url: "https://new.carta.tech/GetHINSTANCE"
---

# GetHINSTANCE(3)

retrieve the global application instance handle

## NAME

Tk\_GetHINSTANCE - retrieve the global application instance handle

## SYNOPSIS

```
#include <tkPlatDecls.h>

HINSTANCE
Tk_GetHINSTANCE()
```

## DESCRIPTION

**Tk\_GetHINSTANCE** returns the Windows application instance handle for the Tk application.  This function is only available on Windows platforms.

## KEYWORDS

identifier, instance
