Skip to content

[wmi] Allow set qualifier in addNewAttribute and remove print in marshalMe#2175

Open
XiaoliChan wants to merge 2 commits into
fortra:masterfrom
XiaoliChan:wmi-qualifier-support
Open

[wmi] Allow set qualifier in addNewAttribute and remove print in marshalMe#2175
XiaoliChan wants to merge 2 commits into
fortra:masterfrom
XiaoliChan:wmi-qualifier-support

Conversation

@XiaoliChan
Copy link
Copy Markdown
Contributor

@XiaoliChan XiaoliChan commented Apr 24, 2026

This PR has two fixes included.

  • Allow set qualifier when creating WMI class property.

Without it, we can't GetObject with key value like in our new class, which created by PutClass

iWbemServices_Cimv2.GetObject("CustomClass.CustomProperty=‘CustomValue’")
  • Remove ugly print in marshalMe func

Also, the print function in marshalMe doesn't make sense, because it always prints the structure before PutInstance, which will consume a lot of resources when submitting large stuff.

@XiaoliChan XiaoliChan changed the title [wmi] Allow set qualifier [wmi] Allow set qualifier in addNewAttribute Apr 24, 2026
xiaolichan and others added 2 commits April 28, 2026 14:14
Signed-off-by: xiaolichan <2209553467@qq.com>
Signed-off-by: XiaoliChan <30458572+XiaoliChan@users.noreply.github.com>
@XiaoliChan XiaoliChan force-pushed the wmi-qualifier-support branch from 3f3b4ba to 52630c6 Compare April 28, 2026 06:14
@XiaoliChan XiaoliChan changed the title [wmi] Allow set qualifier in addNewAttribute [wmi] Allow set qualifier in addNewAttribute and remove print in marshalMe Apr 28, 2026
@XiaoliChan
Copy link
Copy Markdown
Contributor Author

Ping @anadrianmanrique

@anadrianmanrique anadrianmanrique added the enhancement Implemented features can be improved or revised label May 27, 2026
@anadrianmanrique anadrianmanrique self-assigned this May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Implemented features can be improved or revised

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants