I want to use this function:
HRESULT DwmGetColorizationColor(DWORD* pcrColorization, BOOL* pfOpaqueBlend)
it should be in the dwmapi.h
my use:
1 2 3 4 5 6 7 8 9 10 11 12
|
#include <dwmapi.h>
DWORD color = 0;
BOOL opaque = FALSE;
HRESULT hr;
hr = DwmGetColorizationColor(&color, &opaque);
if (SUCCEEDED(hr))
{
cout << "Color: " << color;
} else {
cout << "failed";
}
|
but compiler output is:
27 45 C:\Progs\C++\win8tcc.cpp [Error] 'DwmGetColorizationColor' was not declared in this scope |
documentation to the function is here:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa969513%28v=vs.85%29.aspx
Last edited on
#include <windows.h> too and let's see.
HTH,
Aceix.
already done, all headers are
#include <windows.h>
#include <cstdlib>
#include <iostream>
#include <stdio.h>
#include <time.h>
#include <math.h>
#include <shellapi.h>
#include <dwmapi.h>
#include <winreg.h>
I use more of them although i dont need them all