Question for someone with sysutils and Windows 10

May 20, 2008
11,415
99
Syracuse, NY, USA
I discovered that "OPENCP" and "OPENCP /L" work on Windows 10 (to open the control panel or list and index the canonical names of the cp items). But, for me, "OPENCP name" and "OPENCP index" don't work. I had to rewrite the plugin a little to figure out the error and it seems to be "access denied". So I'm wondering if they work for anyone. For example, "OPENCP Microsoft.System" or "OPENCP 32".

Thanks!
 
May 29, 2008
571
4
Groton, CT
Code:
~\Work> OPENCP Microsoft.System
TCC (SYSUTILS) The specified item was not found:
"Microsoft.System"
(%?=2, %_?=2)
~\Work> opencp 32
TCC (SYSUTILS) The specified item was not found:
"Microsoft.ProgramsAndFeatures"
(%?=2, %_?=2)
~\Work>

The stuff in parentheses are the status codes %? and %_?, of course.
 
May 20, 2008
11,415
99
Syracuse, NY, USA
Code:
~\Work> OPENCP Microsoft.System
TCC (SYSUTILS) The specified item was not found:
"Microsoft.System"
(%?=2, %_?=2)
~\Work> opencp 32
TCC (SYSUTILS) The specified item was not found:
"Microsoft.ProgramsAndFeatures"
(%?=2, %_?=2)
~\Work>

The stuff in parentheses are the status codes %? and %_?, of course.
Yup, that's what happened here at first. Those messages were my easy way of handling any failure. I added code to report the error more accurately and figured out that it's ERROR_ACCESS_DENIED.

The funny thing is that IDENTICAL code in a stand-alone test EXE does work on Windows 10.
 
May 20, 2008
11,415
99
Syracuse, NY, USA
Did you run your standalone test exe with elevated privileges?
Yes, the stand-alone tests work, elevated or not. It fails in TCC, elevated or not.

Even stranger ... the code is only a handful of lines. The failure happens here (essentially, paraphrased, and for example)

Code:
IOpenControlPanel::Open(L"Microsoft.System, NULL, NULL)

It also fails if I put it into a different and unrelated plugin DLL. At the same time, the likes of this (essentially the same?) works

Code:
ShellExecute(L"shell::{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}", ...);

So if I can't figure out why it fails, I do have an alternative for the plugin.

And, if anyone's interested, if you know the canonical names, this (for example) will work at the command line.

[code]control /name Microsoft.System
 
Similar threads
Thread starter Title Forum Replies Date
vefatica Tough (?) programming question Plugins 5
vefatica Question about screen buffer handles Plugins 2
vefatica Question for Rex Plugins 1
Charles Dye SearchPaths() question Plugins 4
vefatica Question for Rex Plugins 0
Charles Dye A weirdoid plugin question Plugins 6
Charles Dye Keystroke plugins question Plugins 7
vefatica A question for Rex Plugins 5
S How to? SafeChars.dll question Plugins 4
Charles Dye Binary buffers question Plugins 0
M Just a curiosity question related to the "default" set of re-mapped characters... Plugins 2
vefatica Question about Ctrl events Plugins 2
vefatica Generic programming question Plugins 2
vefatica Compiler question Plugins 8
vefatica Plugin keyhandler observation/question Plugins 15
vefatica PLUGININFO question Plugins 9
vefatica Plugin keyhandler question Plugins 1
vefatica Pipe question Plugins 6
vefatica Code page question Plugins 2
vefatica Unicode question (revisited, question for Rex) Plugins 0
vefatica Sprintf question Plugins 1
vefatica Unicode question Plugins 13
vefatica Question about GetToken() Plugins 7
vefatica Plugin question Plugins 3
vefatica Another Sscanf question Plugins 1
vefatica NthArgument() question Plugins 1
vefatica Ctrl handling question Plugins 8
vefatica Message pumping question Plugins 12
C SYSUTILS's SHOWLIB Plugins 22
dcantor SYSUTILS command TIMESYNC error Plugins 4
B TCC 18.0 and SYSUTILS/SYSUTILS64? Plugins 4
jadaml SysUtils (audio) volume command Plugins 11
vefatica Updated 4UTILS and SYSUTILS Plugins 33
S How to? Does WAITWIN (in sysutils.dll) detect title change? Plugins 3
B SYSUTILS and TCC 14.00.26 x64? Plugins 4
S WHICHWIN (sysutils plugin) Plugins 13
J sysutils x64 Plugins 6

Similar threads