[Bug 49745] SHRunControlPanel implementation

WineHQ Bugzilla wine-bugs at winehq.org
Wed Aug 26 01:40:04 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=49745

--- Comment #5 from Kyle_Katarn <contact at kcsoftwares.com> ---
I will test later but any way, a MVP is better than a stub, right ?

Here comes a better desgin solution : 

//TODO: 'If the specified Control Panel item is already running,
SHRunControlPanel attempts to switch to that instance rather than opening a new
instance.'
/TODO: This function is not supported as of Windows Vista and as of Windows
Vista, this function always returns FALSE
(https://docs.microsoft.com/en-us/windows/win32/api/shlobj/nf-shlobj-shruncontrolpanel
)

TRACE("(%s, %p)n", debugstr_w(commandLine), parent);
WCHAR parameters[MAX_PATH] = L"shell32.dll,Control_RunDLL ";
wcscat(parameters, commandLine);
return ((INT_PTR)ShellExecuteW(parent, L"open", L"rundll32.exe", parameters,
NULL, SW_SHOWNORMAL) > 32);

-- 
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.



More information about the wine-bugs mailing list