> Maybe this is something I missed somewhere (rtfm?), but I am finding that
a
> DmWrite with a size of Byte (1) fails.

works for me, and i do it a LOT in my app.


> Pseudo code:
> {
> ...
> Byte level = 100;
> Long longLevel = 100;
>
> DmWrite( src, offset, &level, sizeof(level) ); // Sets value to 0
> regardless.
> DmWrite( src, offset, &longLevel, sizeof(longlevel) ); // Works fine!
>
> ...  // actually, level is a member variable of the class, but that
> shouldn't matter.
> }

did you remember to increment offset after the first DmWrite?

it's dangerous to post pseudo code - that can often hide the problem.  how
about posting your class definition, and also the actual function that is
making the DmWrite calls?

Reply via email to