Windows process structure: how to store user information?
I want to store some information in the EPROCESS structure of a process in Windows NT kernel. My goal is that when calling winlogon, I want to assign a unique value to the next process based on which the user logs in. But I don't know where to store this unique ID. I have tried and modified some information (like tokens) in the EPROCESS block of a process by modifying the direct kernel, and I'm wondering if there is any structure in this EPROCESS block where some other information could be stored.
ps To modify the EPROCESS block, I used the device driver.
Do not change EPROCESS. This will bring you great sorrow.
Also, if you do, don't install it on any elses computer. It is absolutely wrong to impose such deeply destructive, system-destabilizing changes on another personal computer. How would you like it if I gave you tuberculosis?