Created
January 5, 2024 15:46
-
-
Save smourier/3bcd3dd1c4c38a18e86e0a298516decc to your computer and use it in GitHub Desktop.
Calling ImmersiveSettingsCache from C#
This file contains hidden or 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
static void Main(string[] args) | |
{ | |
var cache = (IImmersiveSettingsCache)new ImmersiveSettingsCache(); | |
var hr = cache.OnSettingChanged(0); | |
} | |
[ComImport, Guid("a919ea73-490e-4d5c-9ba7-97cbc73119fe")] // CLSID_ImmersiveSettingsCache | |
public class ImmersiveSettingsCache | |
{ | |
// don't put anything in there | |
} | |
[ComImport, Guid("4214f6fa-eb36-4e2f-9ca2-23fdc1832df7"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] | |
public interface IImmersiveSettingsCache | |
{ | |
[PreserveSig] | |
int OnSettingChanged(int id); | |
// etc. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment