This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright Eric Niebler 2016 | |
#include <cstddef> | |
#include <cstdio> | |
#include <cstdint> | |
#include <cstring> | |
#include <utility> | |
#include <type_traits> | |
#define REQUIRES(X) \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$setwallpapersrc = @" | |
using System.Runtime.InteropServices; | |
public class wallpaper | |
{ | |
public const int SetDesktopWallpaper = 20; | |
public const int UpdateIniFile = 0x01; | |
public const int SendWinIniChange = 0x02; | |
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)] | |
private static extern int SystemParametersInfo (int uAction, int uParam, string lpvParam, int fuWinIni); | |
public static void SetWallpaper ( string path ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
#include <PhysicalMonitorEnumerationAPI.h> | |
#include <HighLevelMonitorConfigurationAPI.h> | |
#include <iostream> | |
#include <cstdint> | |
#include <string> | |
// Returns the last Win32 error, in string format. Returns an empty string if there is no error. | |
std::string GetLastErrorAsString() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <objbase.h> | |
#include <windows.h> | |
#include <stdio.h> | |
#include <wbemidl.h> | |
#include <comdef.h> | |
#include <string> | |
#pragma comment(lib, "wbemuuid.lib") | |
#pragma comment(lib, "comsuppw.lib") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* App.cs | |
* Copyright 2018 Raising the Floor - International | |
* | |
* Licensed under the New BSD license. You may not use this file except in | |
* compliance with this License. | |
* | |
* The R&D leading to these results received funding from the | |
* Department of Education - Grant H421A150005 (GPII-APCP). However, | |
* these results do not necessarily represent the policy of the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* GPII Windows 10 Start Menu Layout Setter. | |
* | |
* Copyright 2018 Raising the Floor - International | |
* | |
* Licensed under the New BSD license. You may not use this file except in | |
* compliance with this License. | |
* | |
* The research leading to these results has received funding from the European Union's | |
* Seventh Framework Programme (FP7/2007-2013) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "pch.h" | |
#include <iostream> | |
#include <io.h> | |
#include <fcntl.h> | |
#include <Shlobj.h> | |
#include <string> | |
CComPtr<ISpObjectToken> createIspObjectToken() { |
OlderNewer