-
Notifications
You must be signed in to change notification settings - Fork 2
/
cas.h
51 lines (44 loc) · 1.15 KB
/
cas.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef H_CAS_H
#define COBJMACROS
#define WIN32_LEAN_AND_MEAN
#define _CRT_SECURE_NO_DEPRECATE
#define _CRT_SECURE_NO_WARNINGS
#define _UNICODE
#pragma warning(push, 0)
#include <windows.h>
#include <tlhelp32.h>
#include <shellapi.h>
#include <shlwapi.h>
#include <shlobj.h>
#include <roapi.h>
#include <windowsx.h>
#include <taskschd.h>
#include <ntsecapi.h>
#include <ntstatus.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#pragma warning(pop)
#pragma comment (lib, "kernel32")
#pragma comment (lib, "user32")
#pragma comment (lib, "advapi32")
#pragma comment (lib, "gdi32")
#pragma comment (lib, "shlwapi")
#pragma comment (lib, "shell32")
#pragma comment (lib, "ole32")
#pragma comment (lib, "runtimeobject")
#pragma comment(lib, "taskschd.lib")
#ifdef _DEBUG
#define ASSERT(x) do { if (!(x)) { *(volatile int*)0; } } while (0)
#else
#define ASSERT(x) (void)(x);
#endif
#define ARRAY_COUNT(x) (sizeof(x) / sizeof(*(x)))
void cas_set_timer(int seconds);
void cas_stop_timer(void);
HRESULT cas_create_admin_task(void);
HRESULT cas_delete_admin_task(void);
void cas_disable_hotkeys(void);
BOOL cas_enable_hotkeys(void);
#define H_CAS_H
#endif