943,972 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 2128
  • C RSS
May 14th, 2006
0

DEVMODE private data in DDK unidrv sample

Expand Post »
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. }
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
remedius is offline Offline
5 posts
since Apr 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: win32 help please?
Next Thread in C Forum Timeline: Don't know where to begon





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC