> For the complete documentation index, see [llms.txt](https://pinvokeisalive.gitbook.io/pinvoke/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pinvokeisalive.gitbook.io/pinvoke/desktopfunctions/user32/intptr.md).

# IntPtr

### C# Signature:

```cs
// NATIVE SUPPORT
IntPtr handle;
```

### VB Signature:

```cs
Declare Function IntPtr Lib "user32.dll" (TODO) As TODO
```

### Sample Code:

```cs
// A Windows Service example.

       IntPtr handle = this.ServiceHandle;

        myServiceStatus.currentState = (int)State.SERVICE_START_PENDING;   //0x00000002
        myServiceStatus.checkPoint = 1;
        myServiceStatus.waitHint = 5000;
        SetServiceStatus(handle, ref myServiceStatus);
```
