Using mstscax to shadow a Remote Desktop session - activex

I've used the mstscax ActiveX control in a C# Winforms application in the past.
However I now could not figure out how to shadow an existing remote session. (equivalent to mstsc.exe /shadow:<Session ID> /noConsentPrompt /v:<IP address>)
Does anyone have information or an example?
If it is for some reason not possible to do, how can I use mstsc.exe with a rdp-file to have control over the settings like keyboard redirection etc. with shadow functionality?

Related

RemoteApp and Transparency

I use custom application as a Windows RemoteApp. The window of this application does not have a frame. Also the window is transparent in both ways: transparent background and transparent mouse input. This window places above all windows and indicate some changing information.
The problem is that when application works as a RemoteApp the window is created without WS_EX_TRANSPARENT flag. As a result the window is not transparent for mouse input. There is no such problem if application run locally.
Down below presented the pictures of application's window flags:
Window flags of application running locally
Window flags of application running as a RemoteApp
I tried to configure my rdp file with different settings, but I didn't find something usefull.
Anyway my rdp file looks like that:
redirectclipboard:i:1
redirectprinters:i:1
redirectcomports:i:0
redirectsmartcards:i:1
devicestoredirect:s:*
drivestoredirect:s:*
redirectdrives:i:1
session bpp:i:32
prompt for credentials on client:i:1
span monitors:i:1
use multimon:i:1
remoteapplicationmode:i:1
server port:i:3389
allow font smoothing:i:1
promptcredentialonce:i:0
videoplaybackmode:i:1
audiocapturemode:i:1
gatewayusagemethod:i:0
gatewayprofileusagemethod:i:1
gatewaycredentialssource:i:0
full address:s:XXX.XXX.XXX.XXX
alternate shell:s:||MyApp
remoteapplicationprogram:s:||MyApp
remoteapplicationname:s:MyApp
remoteapplicationcmdline:s:
workspace id:s:XXX.XXX.XXX.XXX
use redirection server name:i:1
loadbalanceinfo:s:tsv://MS Terminal Services Plugin.1.QuickSessionCollection
Any idea what can be done to make the window transparent for mouse input when application run as RemoteApp?

iOS can you view SVN repository on iPhone/iPad via PuTTY Pagent?

I currently develop on a Windows PC and store the code in an SVN repository that is accessed via a combination of SVN, PuTTY, and Pageant. I would like to be able to view code in the repository on an iPad but I am unsure if this is possible because of the PuTTY and Pageant element?
I'm just researching this at the moment and can see there is an SVN client for iOS but I'm not sure how to get the PuTTY/Pageant working with this?
No code to show
I hope it is possible to view the files as I going to remote locations and don't have the ability to carry a laptop and would like to be able to use my phone
Why do you think that you need SVN client to view data in your repository? You could use a web interface instead. For example, take a look at the web UI built in VisualSVN Server. It works great with mobile web browsers, activates automatically and works out of the box (no configuration required) when you use VisualSVN Server.
Note that Apache+DAV_svn supports (very) basic repository browsing capabilities and there is more functional ViewVC. But they both need manual installation and setup.

Can Chromium features that are normally turned on via switches be turned on programatically after starting up?

Is there a way to use Chromium switches after starting it up, or must they be enabled on start up? For example, can switches be passed to the renderer processes, or just to the main process?
I want to turn on paint flashing in Chromium (actually in my Electron app which runs on top of Chromium).
Devtools has a checkbox that turns this on, but I want to be able to turn this on without devtools, and after the app has started.
I know there's a show-paint-rects flag I can use:
chrome.exe --show-paint-rects
In my Electron app, I would need to use app.commandLine.appendSwitch:
app.commandLine.appendSwitch("show-paint-rects");
I also found a ui-show-paint-rects flag that lives in something called the "compositor," but that may be irrelevant for me.
Both of these work, but since Chromium uses a multi-process architecture, I'm hoping that there's a way I can specify that switch, or otherwise, turn on a feature in one process and not have to specify it at startup.
Is there a way to do this in Chromium? (Would be ideal to do this in Electron, but I'm not counting on it)

Detecting Quick Access command state

We have an application that is using Windows Ribbon Framework for an UI. The app itself is written in Delphi and uses Windows Ribbon Framework for Delphi to interface with the ribbon API.
Our ribbon XML places few commands into the Quick Access toolbar. Use can then remove/add commands either by using the built-in ribbon mechanism (selecting the drop/down button and clicking on a command name) or by selecting More commands command which opens the configuration dialog.
The problem I've encountered is that I cannot find a way to get the current state of commands in the QA collection (whether they are visible or not).
In the example above (picture) I would like to detect that first five commands are checked and that the last is not so I can prepare the configuration dialog accordingly.
I have no problems enumerating the IUICollection and accessing the items stored inside. I can also get the UI_PKEY_CommandId for each item. I cannot, however, find a way to read the checked/unchecked state. I tried reading UI_PKEY_BooleanValue and UI_PKEY_Enabled for all items in the collection, but they do not return that state.
I have also tried to monitor IUICommandHandler.UpdateProperty but it doesn't get called when such item is checked/unchecked (except that it is called with the UI_PKEY_Label key).
Does ribbon API even support this functionality?

ActiveX Control always working on my machine - unpredictable behavior on others?

I have a question about my ActiveX control not always working in IE on other machines.
Context: I'm working on an internal app for my company. It is designed to be a standalone web-page config tool for viewing a static customized version of our web app. The user may select the colors, images, and other settings they would like to see, and these will be present in the static mockup/preview version on their machine when they click a button.
Implementation: my javascript file creates a filesystem/activex object that essentially creates a temporary javascript file to which a list of values are written. Then when the user previews the configuration, the javascript file is located and values are loaded dynamically into the dom, etc etc. Naturally this functionality only works in Internet Explorer and is shady at best, but is my only way of implementing a purely zero configuration, client-side dynamic webapp.
Problem: When I test out my script, Internet Explorer prompts me twice about ActiveX controls and I say "yes" to them and the ActiveX functions work. I do this every single time I open my page. But sometimes when I send the file to another person so they can use it, they don't get the notifications so it doesn't work. However sometimes they do get notifications and it does work! I am using default security settings for IE so there should be no difference between my settings and theirs.
Could this be related to my user permissions vs theirs, or the fact that the files are read-only (because they are coming from source control and are also being made read-only when put on the shared drive.) or unknown dark Microsoft forces beyond human comprehension?
Thanks,
Josh
I believe you may want to create an HTA (HTML Application) instead of a web page. Writing HTA's gives you more privileges as far as ActiveX objects are concerned. Check out this page from Microsoft: http://msdn.microsoft.com/en-us/library/ms536496(v=vs.85).aspx.
To answer your question about privileges, I believe that some of your coworkers' IE settings probably prevent web pages from using ActiveX objects. Your settings may be such that you are prompted whenever ActiveX object are about to be created.

Resources