Yes but generally you have to allocate memory for it or use a global variable.
In this way the window is not linked to the datas.
I store a database key like this I am free.
In the example I store first a record number and in the second the menu item identifier.
I can use a general function which is the same for many functions.
I did not want to use a pointer on whatever because I must alloc memory : VirtualAlloc or Malloc that's always 4k misused.
Thak You for your comments Vortex.