Binary Mof Data

I’m so sorry for this question. But I’m stuck.

In QueryDataBlock routine and in PerformanceCount case. if you use binary mof data:

sizeNeeded = sizeof(BinaryMofData);

How must i define BinaryMofData structure?

You should define a class in your *.mof file. When you run wmimofck.exe you could specify an output *.h file, which will contains a structure(class) definition on C. Use the size of this structure as an assign value for “sizeNeeded”.
Do you use predefine *.mof file, like iscsiprf.mof, or you design your own WMI stuff?

Igor Sharovar

Yes i am using .mof file and i got what you mean.
Thank you very much…