[Bug 60487] New: wbemprox: Win32_Service lacks Description, PathName, StartName and ChangeStartMode()
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.
http://bugs.winehq.org/show_bug.cgi?id=60487 --- Comment #1 from mailtomendoza@gmail.com --- Created attachment 82339 --> http://bugs.winehq.org/attachment.cgi?id=82339 Suggested patch (tested on Wine 11.19, not upstream-ready) -- 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.
http://bugs.winehq.org/show_bug.cgi?id=60487 --- Comment #2 from Nikolay Sivov <bunglehead@gmail.com> --- There are a lot of missing properties potentially. Could you describe what those are fixing, which application is that? -- 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.
http://bugs.winehq.org/show_bug.cgi?id=60487 --- Comment #3 from mailtomendoza@gmail.com --- SALTO ProAccess Space 6.14, its configuration tool (WinForms, .NET Framework 4.8). On startup it reads Win32_Service Description, PathName and StartName of its own service through System.Management to fill its "service properties" page (it fails with 0x80041002 on each missing one), and when saving it calls Win32_Service.ChangeStartMode to apply the selected startup type (0x80041055). Those four are the only Win32_Service members it needed. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=60487 --- Comment #4 from Nikolay Sivov <bunglehead@gmail.com> --- Great, thank you. -- 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.
participants (1)
-
WineHQ Bugzilla