SDDC_Driver
Loading...
Searching...
No Matches
uti.h
1/*
2 * This file is part of SDDC_Driver.
3 *
4 * =====================
5 * MIT License
6 * =====================
7 *
8 * Copyright (C) 2020 - Oscar Steila
9 *
10 * Permission is hereby granted, free of charge, to any person obtaining a copy
11 * of this software and associated documentation files (the "Software"), to deal
12 * in the Software without restriction, including without limitation the rights
13 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 * copies of the Software, and to permit persons to whom the Software is
15 * furnished to do so, subject to the following conditions:
16
17 * The above copyright notice and this permission notice shall be included in all
18 * copies or substantial portions of the Software.
19
20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 * SOFTWARE.
27 *
28 * SPDX-License-Identifier: MIT
29 */
30
31#ifndef _UTIH32_
32#define _UTIH32_
33
34BOOL MakeWindowTransparent(HWND hWnd, unsigned char factor);
35void SendF4();
36bool GetStateButton(HWND hwnd, int controlID);
37void Command(HWND hwnd, int controlID, int command);
38
39/*
40#define FOREGROUND_BLUE 1 // Text color contains blue.
41#define FOREGROUND_GREEN 2 // Text color contains green.
42#define FOREGROUND_RED 4 // Text color contains red.
43#define FOREGROUND_INTENSITY 8 // Text color is intensified.
44#define BACKGROUND_BLUE 10 // Background color contains blue.
45#define BACKGROUND_GREEN 20 // Background color contains green.
46#define BACKGROUND_RED 40 // Background color contains red.
47#define BACKGROUND_INTENSITY 80 // Background color is intensifie
48*/
49
50enum console_color {
51 TXT_CYAN = FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_INTENSITY,
52 TXT_GREEN = FOREGROUND_GREEN | FOREGROUND_INTENSITY,
53 TXT_YELLOW = FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_INTENSITY,
54 TXT_RED = FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_INTENSITY
55};
56
57void SetConsoleColorTXT(console_color c);
58
59#endif