Quantcast
Channel: The Old New Thing
Viewing all articles
Browse latest Browse all 24428

re: Why is it so hard to write a program that requires UI Access privilege?

$
0
0

You're not being creative enough. Any compile-time parameter can be trivially turned into a runtime-detected one:

void main()

{

if(ShouldUseVS("thirdpartycomponent.dll"))

 ShellExecute("app_with_vs.exe");    // compiled without VS

else

 ShellExecute("app_without_vs.exe"); // compiled with VS

}


Viewing all articles
Browse latest Browse all 24428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>