pali / bmfdec

Decompile binary MOF file (BMF) from WMI buffer
https://www.spinics.net/lists/kernel/msg2524043.html
51 stars 17 forks source link

Support for method parameters with missing ID qualifier #4

Open Wer-Wolf opened 10 months ago

Wer-Wolf commented 10 months ago

Hello,

the BMOF data used by MSI notebooks contains methods which do have parameters without the ID qualifier. This causes bmfparse to discard them.

The Microsoft documentation states that the ID qualifier:

Uniquely identifies and sequences a property or method parameter when MOF >statements are generated automatically.

This qualifier is required for method parameters only. When creating parameters >for a method, class designers should begin with Id(0) for the first parameter and >use each successive integer for each successive parameter. If the ID qualifiers are >unintentionally omitted, the MOF compiler generates ID qualifiers automatically.

so i think the Microsoft MOF compiler just assumes that the method parameters are already in order and generates those missing ID qualifiers automatically.

Wer-Wolf commented 10 months ago

MOFRESOURCE.txt