http://bugs.winehq.org/show_bug.cgi?id=60487 Bug ID: 60487 Summary: wbemprox: Win32_Service lacks Description, PathName, StartName and ChangeStartMode() Product: Wine Version: 11.19 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wmi&wbemprox Assignee: wine-bugs@list.winehq.org Reporter: mailtomendoza@gmail.com Target Milestone: --- Distribution: --- Programs that manage Windows services through WMI (System.Management in .NET) fail: - reading Win32_Service.Description, .PathName or .StartName returns WBEM_E_NOT_FOUND (0x80041002); - invoking Win32_Service.ChangeStartMode returns WBEM_E_METHOD_NOT_IMPLEMENTED (0x80041055). Steps (.NET 4.8): foreach (ManagementObject s in new ManagementObjectSearcher( "SELECT * FROM Win32_Service WHERE Name='Spooler'").Get()) { Console.WriteLine(s["PathName"]); // 0x80041002 s.InvokeMethod("ChangeStartMode", new object[] { "Manual" }); // 0x80041055 } Suggested patch attached (tested on Wine 11.19, applies to master): - new columns Description (QueryServiceConfig2W(SERVICE_CONFIG_DESCRIPTION)), PathName (lpBinaryPathName) and StartName (lpServiceStartName, "LocalSystem" when empty, as Windows reports it); - new method ChangeStartMode(in StartMode, out ReturnValue) using ChangeServiceConfigW(); unknown mode returns 21, other errors go through map_error(). wbemprox conformance tests: unchanged (the one query failure seen is present without the patch too). Open points: Description costs an extra OpenService()+QueryServiceConfig2W() per service during table fill; Change(), DelayedAutoStart, ErrorControl, ExitCode etc. are still missing; no new tests yet. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.