CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/vncdll/winvnc/WallpaperUtils.h
Views: 11779
1
2
// This file is part of the VNC system.
3
//
4
// The VNC system is free software; you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation; either version 2 of the License, or
7
// (at your option) any later version.
8
//
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with this program; if not, write to the Free Software
16
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17
// USA.
18
//
19
// TightVNC distribution homepage on the Web: http://www.tightvnc.com/
20
//
21
// If the source code for the VNC system is not available from the place
22
// whence you received this file, check http://www.uk.research.att.com/vnc or contact
23
// the authors on [email protected] for information on obtaining it.
24
25
#ifndef __WALLPAPERUTILS_H
26
#define __WALLPAPERUTILS_H
27
28
#include "stdhdrs.h"
29
30
#include <wininet.h>
31
#include <shlobj.h>
32
33
class WallpaperUtils
34
{
35
public:
36
WallpaperUtils();
37
38
void KillWallpaper();
39
void RestoreWallpaper();
40
41
protected:
42
// NOTE: Before using any of the following two functions, the caller MUST
43
// initialize the COM library, e.g. by calling CoInitialize(NULL).
44
void KillActiveDesktop();
45
void RestoreActiveDesktop();
46
47
bool m_restore_ActiveDesktop;
48
bool m_restore_wallpaper;
49
};
50
51
#endif // __WALLPAPERUTILS_H
52
53