Hello!
Has anybody ever used DEVMODE private data to transfer some data from one to
another module?
I found out that there are some problems. To fill private members I use the
following:

PCBUSERDATA pUserData = (PCBUSERDATA) pCallbackParam->UserData;
POEMDEV pOEMDev = (POEMDEV)pUserData->pOEMUIParam->pOEMDM;
pOEMDev->>dwDriverData = 1;
pOEMDev->>dwDriverData1 = 2;
The field dmDriverExtra of DEVMODE has strange value. And there is trash
in the following address:
PVOID pvDriverData = (PVOID) (((BYTE *) pdm) + (pdm->dmSize));
where pdm is a starting address of DEVMODE structure.

Can you help me?
Thank you.