# How to apply types to static pointers?

**URL:** <https://community.hex-rays.com/t/how-to-apply-types-to-static-pointers/441>\
**Category:** IDA General\
**Created:** [August 14, 2025, 5:13am UTC](https://community.hex-rays.com/t/how-to-apply-types-to-static-pointers/441 "2025-08-14T05:13:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![islipnot](https://avatars.discourse-cdn.com/v4/letter/i/9fc348/32.png) [@islipnot](https://community.hex-rays.com/u/islipnot)\
**Post date:** [August 14, 2025, 5:13am UTC](https://community.hex-rays.com/t/how-to-apply-types-to-static-pointers/441/1 "2025-08-14T05:13:50Z")

</div>

I’m using IDA pro 9.0, and the program I’m reversing directly accesses KUSER\_SHARED\_DATA for anti-debugging purposes. The issue I’m facing though is I can’t apply a type to the base of the struct and have it recognized anywhere except the exact address I set the type on. Here is an example below of the code I’m working with. This is a decompiled x86 DLL, targeting Windows 10.

```c
// IF: TickCountMultiplier * (TickCount.High1Time << 8) + (TickCount.LowPart * TickCountMultiplier) >> 24
// ELSE: (TickCountLow * TickCountMultiplier) >> 24

if ( MEMORY[0x7FFE0320] | MEMORY[0x7FFE0328] ) 
   v3 = MEMORY[0x7FFE0004] * (MEMORY[0x7FFE0324] << 8) + ((MEMORY[0x7FFE0320] * (unsigned __int64)MEMORY[0x7FFE0004]) >> 24);
else 
   v3 = (MEMORY[0x7FFE0004] * (unsigned __int64)MEMORY[0x7FFE0000]) >> 24;

```

I want to apply the type [KUSER\_SHARED\_DATA](https://www.geoffchappell.com/studies/windows/km/ntoskrnl/inc/api/ntexapi_x/kuser_shared_data/index.htm) to it’s base of 0x7FFE0000 (this address does not change across processes), but when I do set the type, ONLY 0x7FFE0000 is recognized as part of the struct, so I have to manually calculate offsets to each variable. Any advice is greatly appreciated!

---

<div class="post-metadata">

**Author:** ![revs](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@revs](https://community.hex-rays.com/u/revs)\
**Post date:** [August 14, 2025, 7:34am UTC](https://community.hex-rays.com/t/how-to-apply-types-to-static-pointers/441/2 "2025-08-14T07:34:32Z")

</div>

create an additional segment with address range
