VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTrayInternal.h@ 100765

Last change on this file since 100765 was 98103, checked in by vboxsync, 2 years ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 3.5 KB
Line 
1/* $Id: VBoxTrayInternal.h 98103 2023-01-17 14:15:46Z vboxsync $ */
2/** @file
3 * VBoxSeamless - Display notifications
4 */
5
6/*
7 * Copyright (C) 2006-2023 Oracle and/or its affiliates.
8 *
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
26 */
27
28#ifndef GA_INCLUDED_SRC_WINNT_VBoxTray_VBoxTrayInternal_h
29#define GA_INCLUDED_SRC_WINNT_VBoxTray_VBoxTrayInternal_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
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
40typedef 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
51int VBoxAcquireGuestCaps(uint32_t fOr, uint32_t fNot, bool fCfg);
52void VBoxCapsEntryFuncStateSet(uint32_t iCup, VBOXCAPS_ENTRY_FUNCSTATE enmFuncState);
53int VBoxCapsInit();
54int VBoxCapsReleaseAll();
55void VBoxCapsTerm();
56BOOL VBoxCapsEntryIsAcquired(uint32_t iCap);
57BOOL VBoxCapsEntryIsEnabled(uint32_t iCap);
58BOOL VBoxCapsCheckTimer(WPARAM wParam);
59int VBoxCapsEntryRelease(uint32_t iCap);
60int VBoxCapsEntryAcquire(uint32_t iCap);
61int VBoxCapsAcquireAllSupported();
62
63
64/* console-related caps API */
65BOOL VBoxConsoleIsAllowed();
66void VBoxConsoleEnable(BOOL fEnable);
67void VBoxConsoleCapSetSupported(uint32_t iCap, BOOL fSupported);
68
69
70/*
71 * Dt (desktop [state] tracking) functionality API
72 *
73 * !!!NOTE: this API is NOT thread-safe!!!
74 * */
75int vboxDtInit();
76void vboxDtTerm();
77/* @returns true on "IsInputDesktop" state change */
78BOOL vboxDtHandleEvent();
79/* @returns true iff the application (VBoxTray) desktop is input */
80BOOL vboxDtIsInputDesktop();
81HANDLE vboxDtGetNotifyEvent();
82BOOL vboxDtCheckTimer(WPARAM wParam);
83void vboxDtDoCheck();
84
85
86/*
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 */
92int vboxStInit(HWND hWnd);
93void vboxStTerm(void);
94/* @returns true on "IsActiveConsole" state change */
95BOOL vboxStHandleEvent(WPARAM EventID);
96BOOL vboxStIsActiveConsole();
97BOOL vboxStCheckTimer(WPARAM wEvent);
98
99
100DWORD VBoxDisplayGetCount();
101DWORD VBoxDisplayGetConfig(const DWORD NumDevices, DWORD *pDevPrimaryNum, DWORD *pNumDevices, DISPLAY_DEVICE *paDisplayDevices, DEVMODE *paDeviceModes);
102
103DWORD 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);
105
106#endif /* !GA_INCLUDED_SRC_WINNT_VBoxTray_VBoxTrayInternal_h */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette