[69361] | 1 | /* $Id: VBoxTrayInternal.h 98103 2023-01-17 14:15:46Z vboxsync $ */
|
---|
[8387] | 2 | /** @file
|
---|
| 3 | * VBoxSeamless - Display notifications
|
---|
| 4 | */
|
---|
| 5 |
|
---|
| 6 | /*
|
---|
[98103] | 7 | * Copyright (C) 2006-2023 Oracle and/or its affiliates.
|
---|
[4266] | 8 | *
|
---|
[96407] | 9 | * This file is part of VirtualBox base platform packages, as
|
---|
| 10 | * available from https://www.virtualbox.org.
|
---|
| 11 | *
|
---|
| 12 | * This program is free software; you can redistribute it and/or
|
---|
| 13 | * modify it under the terms of the GNU General Public License
|
---|
| 14 | * as published by the Free Software Foundation, in version 3 of the
|
---|
| 15 | * License.
|
---|
| 16 | *
|
---|
| 17 | * This program is distributed in the hope that it will be useful, but
|
---|
| 18 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
| 20 | * General Public License for more details.
|
---|
| 21 | *
|
---|
| 22 | * You should have received a copy of the GNU General Public License
|
---|
| 23 | * along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
| 24 | *
|
---|
| 25 | * SPDX-License-Identifier: GPL-3.0-only
|
---|
[8387] | 26 | */
|
---|
| 27 |
|
---|
[95963] | 28 | #ifndef GA_INCLUDED_SRC_WINNT_VBoxTray_VBoxTrayInternal_h
|
---|
| 29 | #define GA_INCLUDED_SRC_WINNT_VBoxTray_VBoxTrayInternal_h
|
---|
[76540] | 30 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
| 31 | # pragma once
|
---|
| 32 | #endif
|
---|
[95966] | 33 |
|
---|
| 34 |
|
---|
| 35 | /* caps API */
|
---|
| 36 | #define VBOXCAPS_ENTRY_IDX_SEAMLESS 0
|
---|
| 37 | #define VBOXCAPS_ENTRY_IDX_GRAPHICS 1
|
---|
| 38 | #define VBOXCAPS_ENTRY_IDX_COUNT 2
|
---|
| 39 |
|
---|
| 40 | typedef enum VBOXCAPS_ENTRY_FUNCSTATE
|
---|
| 41 | {
|
---|
| 42 | /* the cap is unsupported */
|
---|
| 43 | VBOXCAPS_ENTRY_FUNCSTATE_UNSUPPORTED = 0,
|
---|
| 44 | /* the cap is supported */
|
---|
| 45 | VBOXCAPS_ENTRY_FUNCSTATE_SUPPORTED,
|
---|
| 46 | /* the cap functionality is started, it can be disabled however if its AcState is not ACQUIRED */
|
---|
| 47 | VBOXCAPS_ENTRY_FUNCSTATE_STARTED,
|
---|
| 48 | } VBOXCAPS_ENTRY_FUNCSTATE;
|
---|
| 49 |
|
---|
| 50 |
|
---|
| 51 | int VBoxAcquireGuestCaps(uint32_t fOr, uint32_t fNot, bool fCfg);
|
---|
| 52 | void VBoxCapsEntryFuncStateSet(uint32_t iCup, VBOXCAPS_ENTRY_FUNCSTATE enmFuncState);
|
---|
| 53 | int VBoxCapsInit();
|
---|
| 54 | int VBoxCapsReleaseAll();
|
---|
| 55 | void VBoxCapsTerm();
|
---|
| 56 | BOOL VBoxCapsEntryIsAcquired(uint32_t iCap);
|
---|
| 57 | BOOL VBoxCapsEntryIsEnabled(uint32_t iCap);
|
---|
| 58 | BOOL VBoxCapsCheckTimer(WPARAM wParam);
|
---|
| 59 | int VBoxCapsEntryRelease(uint32_t iCap);
|
---|
| 60 | int VBoxCapsEntryAcquire(uint32_t iCap);
|
---|
| 61 | int VBoxCapsAcquireAllSupported();
|
---|
| 62 |
|
---|
| 63 |
|
---|
| 64 | /* console-related caps API */
|
---|
| 65 | BOOL VBoxConsoleIsAllowed();
|
---|
| 66 | void VBoxConsoleEnable(BOOL fEnable);
|
---|
| 67 | void VBoxConsoleCapSetSupported(uint32_t iCap, BOOL fSupported);
|
---|
| 68 |
|
---|
| 69 |
|
---|
[95965] | 70 | /*
|
---|
[95966] | 71 | * Dt (desktop [state] tracking) functionality API
|
---|
| 72 | *
|
---|
| 73 | * !!!NOTE: this API is NOT thread-safe!!!
|
---|
| 74 | * */
|
---|
| 75 | int vboxDtInit();
|
---|
| 76 | void vboxDtTerm();
|
---|
| 77 | /* @returns true on "IsInputDesktop" state change */
|
---|
| 78 | BOOL vboxDtHandleEvent();
|
---|
| 79 | /* @returns true iff the application (VBoxTray) desktop is input */
|
---|
| 80 | BOOL vboxDtIsInputDesktop();
|
---|
| 81 | HANDLE vboxDtGetNotifyEvent();
|
---|
| 82 | BOOL vboxDtCheckTimer(WPARAM wParam);
|
---|
[95967] | 83 | void vboxDtDoCheck();
|
---|
[95966] | 84 |
|
---|
| 85 |
|
---|
| 86 | /*
|
---|
[95965] | 87 | * St (session [state] tracking) functionality API
|
---|
| 88 | *
|
---|
| 89 | * !!!NOTE: this API is NOT thread-safe!!!
|
---|
| 90 | * it is supposed to be called & used from within the window message handler thread
|
---|
| 91 | * of the window passed to vboxStInit */
|
---|
| 92 | int vboxStInit(HWND hWnd);
|
---|
| 93 | void vboxStTerm(void);
|
---|
| 94 | /* @returns true on "IsActiveConsole" state change */
|
---|
| 95 | BOOL vboxStHandleEvent(WPARAM EventID);
|
---|
| 96 | BOOL vboxStIsActiveConsole();
|
---|
| 97 | BOOL vboxStCheckTimer(WPARAM wEvent);
|
---|
[8387] | 98 |
|
---|
[95966] | 99 |
|
---|
[57741] | 100 | DWORD VBoxDisplayGetCount();
|
---|
| 101 | DWORD VBoxDisplayGetConfig(const DWORD NumDevices, DWORD *pDevPrimaryNum, DWORD *pNumDevices, DISPLAY_DEVICE *paDisplayDevices, DEVMODE *paDeviceModes);
|
---|
[8387] | 102 |
|
---|
[57741] | 103 | DWORD EnableAndResizeDispDev(DEVMODE *paDeviceModes, DISPLAY_DEVICE *paDisplayDevices, DWORD totalDispNum, UINT Id, DWORD aWidth, DWORD aHeight,
|
---|
| 104 | DWORD aBitsPerPixel, LONG aPosX, LONG aPosY, BOOL fEnabled, BOOL fExtDispSup);
|
---|
[48070] | 105 |
|
---|
[95963] | 106 | #endif /* !GA_INCLUDED_SRC_WINNT_VBoxTray_VBoxTrayInternal_h */
|
---|