Path: blob/master/src/jdk.accessibility/windows/native/common/AccessBridgeMessages.h
40957 views
/*1* Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425/*26* Common AccessBridge IPC message definitions27*/2829#include <windows.h>30#include <winuser.h>3132#ifndef __AccessBridgeMessages_H__33#define __AccessBridgeMessages_H__343536// used for messages between AccessBridge dlls to manage IPC37// In the SendMessage call, the third param (WPARAM) is38// the source HWND (ourAccessBridgeWindow in this case),39// and the fourth param (LPARAM) is the size in bytes of40// the package put into shared memory.41#define AB_MEMORY_MAPPED_FILE_SETUP (WM_USER+0x1000)4243// used for messages between AccessBridge dlls to manage IPC44// In the SendMessage call, the third param (WPARAM) is45// the source HWND (ourAccessBridgeWindow in this case),46// and the fourth param (LPARAM) is the size in bytes of47// the package put into shared memory.48#define AB_MESSAGE_WAITING (WM_USER+0x1001)4950// used for messages from JavaDLL to itself (or perhaps later also51// for messages from WindowsDLL to itself). Used with PostMessage,52// it is called for deferred processing of messages to send across53// to another DLL (or DLLs)54#define AB_MESSAGE_QUEUED (WM_USER+0x1002)5556// used to let other AccessBridge DLLs know that one of the DLLs57// they are communicating with is going away (not reversable)58#define AB_DLL_GOING_AWAY (WM_USER+0x1003)596061// used as part of the Memory-Mapped file IPC setup. The first62// constant is the query, the second the response, that are put63// into the memory mapped file for reading by the opposite DLL64// to verify that communication is working65#define AB_MEMORY_MAPPED_FILE_OK_QUERY "OK?"66#define AB_MEMORY_MAPPED_FILE_OK_ANSWER "OK!"676869BOOL initBroadcastMessageIDs();707172#endif737475