DEVMODE private data in DDK unidrv sample

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Apr 2006
Posts: 5
Reputation: remedius is an unknown quantity at this point 
Solved Threads: 0
remedius remedius is offline Offline
Newbie Poster

DEVMODE private data in DDK unidrv sample

 
0
  #1
May 14th, 2006
Hello!
I just want to understand DDK unidrv example. As far as I've read unidrv can
include two plug-ins. So,I try OEMDEV structure to send some data from one to
another. But when I add some more fields in OEMDEV stucture (I mean besides
OEM_DMEXTRAHEADER and dwDriverData, which are happened in DDK example), the
data stopped translated between the plug-ins. Is OEMDEV structure of a fix
size, or my private data should be described anywhere more?
To fill private members I use the following:
  1. LONG APIENTRY OEMDocUICallBack(PCPSUICBPARAM pCallbackParam)
  2. {
  3. ......
  4. PCBUSERDATA pUserData = (PCBUSERDATA) pCallbackParam->UserData;
  5. POEMDEV pOEMDev = (POEMDEV)pUserData->pOEMUIParam->pOEMDM;
  6. ........
  7. pOEMDev->dwDriverData1 = 1;
  8. pOEMDev->dwDriverData2 = 2;
  9. pOEMDev->dwDriverData3 = 3;
  10. .......
  11. }
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC