問題タブ [appcontainer]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
internet-explorer - IE11 で AppContainer BHO から名前付きパイプを作成する方法はありますか?
Internet Explorer 11 (Windows 8.1) 用の BHO を作成しようとしています。私の BHO は AppContainer サンドボックスを実装していますが、名前付きパイプを作成できないようで、次のCreateNamedPipe
メッセージで失敗します。 Access is denied.
名前付きパイプを作成するために使用しているコードは次のとおりです(ロシアのWebサイトで見つけた、最後のコメント:
残念ながら、うまくいきません。GetLastError() は Access is denied
通常どおりこれを返します。
wcf - WCF サービスの呼び出し中にアクセスが拒否されました (System.ComponentModel.Win32Exception)
Windows 8.1 でホスト exe を介して WCF サービスをホストすると、AppContainer 関連のエラーが発生します。スタック トレースの上部にあるメソッドに関する適切なドキュメントが見つかりません。ここでストローをつかむようなものです。
「System.ComponentModel.Win32Exception (0x80004005): アクセスが拒否されました\r\n\r\nサーバー スタック トレース: \r\n
System.ServiceModel.Channels.AppContainerInfo.GetCurrentProcessToken() で\r\n
System.ServiceModel.Channels で.AppContainerInfo.RunningInAppContainer()\r\n
で System.ServiceModel.Channels.AppContainerInfo.get_IsRunningInAppContainer()\r\n
で System.ServiceModel.Channels.PipeSharedMemory.BuildPipeName(String pipeGuid)\r\n
で System.ServiceModel.Channels .PipeSharedMemory.get_PipeName()\r\n
at System.ServiceModel.Channels.PipeSharedMemory.GetPipeName(AppContainerInfo appInfo)\r\n
at System.ServiceModel.Channels.PipeConnectionInitiator.GetPipeName(Uri uri, IPipeTransportFactorySettings transportFactorySettings)\r\n
System.ServiceModel.Channels.NamedPipeConnectionPoolRegistry.NamedPipeConnectionPool.GetPoolKey(EndpointAddress アドレス、Uri 経由) で\r\n
System.ServiceModel.Channels.CommunicationPool`2.TakeConnection(EndpointAddress アドレス、Uri 経由、TimeSpan タイムアウト、TKey& キー) で\r \n
System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan タイムアウト)
で\r\n System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan タイムアウト) で\r\n
System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)\r\n
System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan タイムアウト)\r\n
System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan タイムアウト)\r\n
System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel チャネル、TimeSpan タイムアウト) で\r\n
System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan タイムアウト、CallOnceManager) でcascade)\r\n
System.ServiceModel.Channels.ServiceChannel.Call(String アクション、Boolean oneway、ProxyOperationRuntime 操作、Object[] ins、Object[] outs、TimeSpan timeout)\r\n
at System.ServiceModel.Channels. ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall、ProxyOperationRuntime オペレーション)\r\n
System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage メッセージ)\r\n\r\n [0] で再スローされた例外: \r\n System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)\r\n
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
で\r\n IAuthenticationService.AuthTempTokens(TokenSet トークン、CAMSSystem systemId、文字列 accountId、文字列 ipAddress、文字列 uniqueId) で\ r\n
at login_Default.AuthenticateAndRedirect() in c:\Source\RiverTam\Source\Systems\Web\PMI\PMI\Default.aspx.cs:line 167"
windows - AppContainer 整合性レベル
私は現在、WinRT アプリケーションをサンドボックス化するために使用される AppContainer の背後にあるメカニズムを理解しようとしています。AppContainers には独自の整合性レベルがあり、より高い整合性レベルを持つアセットへの読み取りと書き込みの試みをブロックすることを理解しました。しかし、これらのアプリが、同じ整合性レベルで実行されている他のアプリのデータにアクセスできないのはなぜでしょうか?
また、アプリが対応する機能を取得した場合、オブジェクトへのアクセスはどのように機能するのでしょうか? たとえば、カメラが「appcontainer」整合性レベルでタグ付けされていないとします。したがって、appcontainer で実行されているアプリによるアクセスは、直接ブロックする必要があります。ただし、カメラ機能を宣言することは可能で、アプリはカメラにアクセスできます。これはどのように可能ですか?SID に示されている機能は、アプリの整合性レベルを何らかの形で "拡張" できますか?
前もって感謝します!
laravel - アプリコンテナLaravelを使ってルートを登録
ルート (エンドポイント) をLaravelに動的に登録したいと思います。私はroutes.phpを使用していませんが、使用してルートを登録したい
または同様に、サービス プロバイダーで。さらに、動的に登録されたルートにこのようにミドルウェアも追加したいと思います。
c# - UWP アプリケーションで Win32 アプリからモーダル ダイアログを表示する
プロセスが別のプロセスの UWP アプリ (特に MS Edge) でモーダル ダイアログを表示したり、ダイアログを表示している間、UWP アプリケーションとのユーザー操作をブロックしたりする方法はありますか?
バックグラウンド
ユーザーのアクションに応じて、別のアプリケーションの上にモーダル ダイアログを表示し、ユーザーがモーダル ダイアログを操作している間はユーザー入力をブロックすることで、ユーザーに追加情報を要求するアプリケーションがあります。
通常の Win32 アプリケーションでは、WinForms モーダル ダイアログを表示し、そのウィンドウ オーナーを元のアプリケーションに設定するだけで、問題なく動作します。
ただし、これは UWP アプリケーションでは機能しません。UWP アプリケーションに関連するさまざまな hWnds (Windows など) を使用して同じアプローチを試みましたがApplicationFrameWindow
、どれも機能していないようです。AppContainer の分離のために機能しないようです。Windows.UI.Core.CoreWindow
ApplicationFrameInputSinkWindow
これはエンタープライズ ソフトウェアであり、任意の特権レベルでコードを実行できるシステム サービスがバックグラウンドで実行されているため、アクセス許可は問題になりません。
windows - Winapi プロセスをサンドボックス化するために AppContainer を使用できますか?
Windows 8 では、Windows ストア アプリをサンドボックス化する AppContainers が導入されました。アプリを保存するだけでなく、任意のプロセスをサンドボックス化できる Windows 8 または 10 のパブリック API はありますか?