background preloader

MP

Facebook Twitter

Interprocess Communications. The Windows operating system provides mechanisms for facilitating communications and data sharing between applications. Collectively, the activities enabled by these mechanisms are called interprocess communications (IPC). Some forms of IPC facilitate the division of labor among several specialized processes. Other forms of IPC facilitate the division of labor among computers on a network. Typically, applications can use IPC categorized as clients or servers.

After you decide that your application would benefit from IPC, you must decide which of the available IPC methods to use. Should the application be able to communicate with other applications running on other computers on a network, or is it sufficient for the application to communicate only with applications on the local computer? The following IPC mechanisms are supported by Windows: Using the Clipboard for IPC The clipboard acts as a central depository for data sharing among applications.

Using COM for IPC Using Data Copy for IPC. Mad* Help... The package "madCodeHook" offers everything you need to hook code (mostly APIs). Usually such hooks show effect only in the current process. But madCodeHook also can inject a specified DLL into any desired 32bit or 64bit process or even "system wide" (that is into all currently running and into all in the future created processes). So by putting your hooking stuff into a little DLL and injecting it "system wide", you can realize effective and easy to use system wide API hooking.

Of course everything works just as fine under all all Microsoft OSs from Windows 95 and NT4 up to the latest 32bit and 64bit OSs . Besides, madCodeHook also offers IPC (inter process communication) functionality and lots of other tool functions . A full list of what is contained in madCodeHook can be found in the madCodeHook Reference . Experienced madCodeHook 2.x users, who have just upgraded to madCodeHook 3.0, might want to read the v3.0 information first, including the linked pages.

Hook

Mad* Help... Open Specifications. Azimuth Security: The Chrome Sandbox Part 2 of 3: The IPC Framework. Chrome processes communicate with each other via an Inter-Process Communication (IPC) messaging framework built in to the browser. For Windows, named pipes are utilized, whereas linux builds use local Unix sockets. Most of the code that implements the IPC framework is located within the ipc/ directory in the Chrome source tree. Apart from external OS facilities (such as the kernel), the IPC interaction between Chrome processes represents the largest local attack surface for potential privilege escalation.

In the event that a renderer process is compromised, it can provide arbitrary requests to other more privileged processes that either trigger a vulnerability in one of the privileged processes, or cause them to perform a restricted operation on behalf of the renderer that inadvertently exposes the system to further compromise. // Used to set a cookie. // available to a subsequent ViewHostMsg_GetCookies request. IPC_MESSAGE_ROUTED3(ViewHostMsg_SetCookie, GURL /* url */, /* raw_cookies */) Contents of /trunk/src/chrome_frame/test/perf/chrome_frame_perftest.cc. Gecko - Mozilla. XPCOM. Build Instructions (Windows)

Setting up the environment for Visual Studio 2010 These instructions are deprecated. They are here only for reference if you want to build an old revision. Setting up the environment for building with Visual C++ 2010 Express or Windows 7.1 SDK Automatic simplified toolchain setup This method is an automated version of the one above. It installs the compiler, SDKs, and patches automatically, but does not install any IDE. You can only build with ninja using these steps. If you have Visual Studio installed, you can still use it to debug, but not to build. Prerequisite software: Windows 7 x64 or later. Building Chromium ninja -C out\Debug chrome (ninja should come with the depot_tools), and run the result: out\Debug\chrome.exe Building in Visual Studio set GYP_GENERATORS=msvs-ninja,ninja and then gclient runhooks to build a wrapper Visual Studio solution that shells to the ninja build to accomplish the actual build.

Building (natively) in Visual Studio You can attempt to build in Visual Studio. Unit tests. Index of /trunk. Get the Code. If you're new to Git but experienced with Subversion, we recommend following the Git-SVN Crash Course. This guide should help you understand how Git differs from Subversion and how to get up to speed the fastest. Committers will need a Subversion (SVN) account.

You can request one at Chromium access (Google chrome svn) using the request form. Only svn account holders (read-only or read-write) can send tryjobs.depot_tools is required on every platform, making sure it's correctly in your PATH For Windows (non-Cygwin users), run gclient TWICE, FROM A CMD WINDOW to download and setup everything else you need (including a partial install of msysgit).

Gclient --version gclient --version (The "--version" flags just reduce the amount of output spew; they're not necessary for the operations to succeed.) For Cygwin/Mac/Linux users, you'll need to manually install: Git 1.7.5 or abovegit-svnRequired if you want to commit manually without the CQ, optional for read-only access. SVN setup for committers #!

DOM

HTML Techniques for Web Content Accessibility Guidelines 1.0. W3C Note 6 November 2000 This version: (plain text, PostScript, PDF, gzip tar file of HTML, zip archive of HTML) Latest version: Previous version: Editors: Wendy Chisholm, W3C; Gregg Vanderheiden, Trace R & D Center University of Wisconsin -- Madison; Ian Jacobs, W3C Copyright ©1999 - 2000 W3C® (MIT, INRIA, Keio), All Rights Reserved.

Abstract This document describes techniques for authoring accessible Hypertext Markup Language (HTML) content (refer to HTML 4.01 [HTML4]). This document is part of a series of documents about techniques for authoring accessible Web content. Note: This document contains a number of examples that illustrate accessible solutions in CSS but also deprecated examples that illustrate what content developers should not do. Status of this document 1 Document structure and metadata Checkpoints in this section: Example.

MSHTML Event DispInterfaces. This dispinterface provides a connection point so that an application or control can intercept events fired by an a element. This dispinterface provides a connection point so that an application or control can intercept events fired by an area element. This dispinterface provides a connection point so that an application or control can intercept events fired by a button element. This dispinterface provides a connection point so that an application or control can intercept events fired by a control. This dispinterface provides a connection point so that an application or control can intercept events fired by a document object.

This dispinterface provides a connection point so that an application or control can intercept events fired by an element. This dispinterface provides a connection point so that an application or control can intercept events raised by an element. This dispinterface provides a connection point so that an application or control can intercept events fired by an img element. TreeView: Count the nodes of a Level - Delphi Pages Forums.

Handling HTML Element Events. The HTMLElementEvents2 interface is introduced and the steps required to receive notification of HTML element events from the browser are described, using Microsoft Visual Studio 5 or later. It is assumed that a Microsoft Foundation Classes (MFC) application is hosting the WebBrowser Control, or launching Internet Explorer. This article is divided into the following sections. Accessing the DHTML Object Model This sample handler code for the DWebBrowserEvents2::DocumentComplete event demonstrates how to determine if this event is for the top frame, which indicates that the HTML page has loaded. Accessing an Element on the Page void CMyClass::ProcessDocument(IHTMLDocument2* pDoc) { IHTMLElementCollection* pElemColl = NULL; hr = pDoc->get_all(&pElemColl); if (SUCCEEDED(hr)) { // Obtained element collection.

Note The item method will return a collection if there is more than one element with the specified name or id. Receiving Element Events Handling Events using MFC Handling Events using ATL. How to Implement Event Handlers. This topic contains example code that shows how to implement interfaces that enable clients to receive and handle Microsoft UI Automation events. It discusses the following topics: Handling General UI Automation Events The following code example is a Microsoft Windows console application that implements a UI Automation event handler for general UI Automation events.

This example handles creation and destruction events for tooltips and other windows. Handling Focus-Changed Events The following code example is a Windows console application that implements a handler for focus-changed events. Handling Property-Changed Events The following code example is a Windows console application that implements a handler for property-changed events. Handling Structure-Changed Events The following code example is a Windows console application that implements a handler for structure-changed events.

Related topics Conceptual Subscribing to UI Automation Events How-To Topics for UI Automation Clients. IHTMLChangeSink interface. Overview of forms, Form controls, and ActiveX controls on a worksheet. Yes, it is true. You can create great forms with little or no need for Microsoft Visual Basic for Applications (VBA) code in Microsoft Office Excel. By using forms and the many controls and objects that you can add to them, you can significantly enhance data entry on your worksheets and improve the way your worksheets are displayed. In this article What is a form? A form, whether printed or online, is a document designed with a standard structure and format that makes it easier to capture, organize, and edit information.

Printed forms contain instructions, formatting, labels, and blank spaces for writing or typing data. You can use Excel and Excel templates to create printed forms. For more information about Excel templates, see the See Also section. Online forms contain the same features as printed forms. You can use Excel in several ways to create printed and online forms. Top of Page Types of Excel forms Data form Worksheet with Form and ActiveX controls Form controls Summary of form controls. VBA e coleções de objetos. Quando vários (muitos) controles são postos em uma folha ou em um Userform (formulário do usuário), fica fastidioso escrever o código em cada um deles. Esta dica te ajudará a processar seus controles como se eles estivessem indexados, (modo VB6 com índex) Preliminares Para testes e demonstrações, abra uma pasta nova. Incorpore, um abaixo do outro, na coluna C ... OptionButton1 e OptionButton2 propriedade GroupName = Folha1A (ou Plan1A) OptionButton3 e OptionButton4 propriedade GroupName = Folha1B (ou Plan1B) CheckBox1, CheckBox2 e CheckBox3 Salve a pasta com o nome Coleções.xls Em um módulo 'Rotina para chamar Inicialize ou Reinicialize as coleções.

Sub ActivationCollect() InitOption InitCheck End Sub Em um módulo de classe Para abrir um módulo de classe >> Inserir >> Módulo de classe. E no módulo da pasta Private Sub Workbook_Open() InitOption InitCheck End Sub Tradução feita por Lucia Maurity y Nouira A ver igualmente Comunidade de assistência e de conselho. Como navegar objetos do Excel a partir do Visual Basic. Cada objeto no Microsoft Excel versão 5.0 existe em algum lugar na hierarquia do aplicativo de objetos. Você escolher entre esses objetos navegando hierarquia desse aplicativo. Na parte superior dessa hierarquia é o objeto Application. Qualquer eventos ou ações que você atribuir para o objeto Application afetam todo o aplicativo. Por exemplo: ' Close the application [Object].Application.Quit substituir [objeto] com qualquer variável que aponta para qualquer válido Microsoft aplicativo Excel, que pode ser criada a partir o exemplo a seguir: ' MyObject represents [Object] and OLE1 represents an OLE control ' that contains an Microsoft Excel Worksheet object.

Objeto o aplicativo contém outros objetos grandes. [Object].Application.Workbooks se você desejar recuperar uma única pasta de trabalho a partir da coleção, use o método item. [Object].Application.Workbooks.Item(1) para fechar a primeira pasta de trabalho: [Object].Application.Workbooks.Item(1).Close Recortes curta Tradução automática. How can I find the shape that is selected in group box in Excel. Monitoring web browser event. In this article, I will discuss about technique to catch events happened in a web browser. I wrote this article to answer a question posted by Johan Max at Delphindo about how to get notified when an anchor tag in a HTML document is clicked and also how to retrieve URL pointed by the anchor.

Of course we still use our favourite tool. Delphi. This tutorial only assumes web browser is IE, for other web browsers, this technique may not work. Source code is available for download on Download-Delphi Programming section. Required unit. First, import ActiveX MSHTML. Step by step to monitor web browser events. Create event sink implementation. If you reach fourth step, then your application is ready to catch web browser events. Disconnect event sink. Ok, let us discuss it one by one. Creating event sink implementation Event sink must be derived from IDispatch interface, because Invoke() will be called each time event occur. All four methods must be implemented. Unit ueventsink; end ; implementation.

WinRT

Using COM Types in Managed Code. COM types that are defined in an assembly are like any other managed types. Managed clients can create a new instance of a COM type in the usual way and obtain class information through metadata as they would for any other managed class. Method syntax can be inspected through an object viewer or obtained using reflection, just as it can with any other managed class. When the COM object returns a failure HRESULT, the .NET Framework client catches a corresponding exception.

There are two ways for your application to include the type information that enables interoperation with COM types: Using embedded interop types: Beginning with the .NET Framework 4, you can instruct the compiler to embed type information from an interop assembly into your executable. The compiler embeds only the type information that your application uses. Using embedded interop types reduces the size of your application, because most applications do not use all the features of a COM component. Tasks Concepts. Marshaling Selected Interfaces. The primary goal of the runtime callable wrapper (RCW) is to hide the differences between the managed and unmanaged programming models.

To create a seamless transition, the RCW consumes selected COM interfaces without exposing them to the .NET client, as shown in the following illustration. COM interfaces and the runtime callable wrapper When created as an early-bound object, the RCW is a specific type. It implements the interfaces that the COM object implements and exposes the methods, properties, and events from the object's interfaces. In the illustration, the RCW exposes the INew interface but consumes the IUnknown and IDispatch interfaces. The RCW consumes the interfaces listed in the following table, which are exposed by the object it wraps.

The RCW optionally consumes the interfaces listed in the following table, which are exposed by the object it wraps. How to: Activate and Use a Windows Runtime Component Using WRL. Using the Windows Headers. The Windows Runtime Library (WRL) | Developing Windows 8 Metro style apps with C++ How to create a WinRT WRL C++ Component from scratch that can be consumed by .NET components | //InterKnowlogy/ Blogs.

COM

Well-known EmbeddedWB control, giving tBrowser, create custom browser must have View source code: mshtml_ewb.pas Page 1 - VerySource. Www.shenturk.com/sources/eydsl/1.0/MsHtml7.pas. Innovative Online. TLIBIMP.EXE - RAD Studio. Using and Implementing IUnknown (COM) AccessingAndRunningSourceCode – NVDA Community. Accessibility 2.0 » Podcasts.