---
name: "GlobalSize"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/GlobalSize"
---

# GlobalSize(3w)

## NAME

**GlobalSize** (KERNEL32.@)

## SYNOPSIS

SIZE\_T GlobalSize\
  (\
   HGLOBAL *hmem*\
  )

## DESCRIPTION

Get the size of a global memory object.

## PARAMS

*hmem* **\[In\]**  Handle of the global memory object.

## RETURNS

**Failure:** **0**

**Success:** Size in Bytes of the global memory object.

## NOTES

When the handle is invalid, last error is set to **ERROR\_INVALID\_HANDLE**

## IMPLEMENTATION

Declared in **"winbase.h"**.

Implemented in **"dlls/kernel32/heap.c"**.

Debug channel **"heap"**.
