-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
globals.h
36 lines (27 loc) · 1.04 KB
/
globals.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
#pragma once
#define SECURITY_WIN32
#include<Windows.h>
#include<rpc.h>
#include<rpcndr.h>
#include<stdio.h>
#include<NTSecAPI.h>
#include<DsGetDC.h>
#include<sspi.h>
#include<Midles.h>
#include<sddl.h>
#include<msasn1.h>
#include<string.h>
#include "helper.h"
#include "crypto.h"
#if !defined(NT_SUCCESS)
#define NT_SUCCESS(Status) ((NTSTATUS)(Status) >= 0)
#endif
typedef CONST UNICODE_STRING* PCUNICODE_STRING;
extern NTSTATUS WINAPI RtlGUIDFromString(IN PCUNICODE_STRING GuidString, OUT GUID* Guid);
extern DWORD WINAPI NetApiBufferFree(IN LPVOID Buffer);
extern VOID WINAPI RtlGetNtVersionNumbers(LPDWORD pMajor, LPDWORD pMinor, LPDWORD pBuild);
extern VOID WINAPI RtlInitUnicodeString(OUT PUNICODE_STRING DestinationString, IN PCWSTR SourceString);
#define PRINT_INFO(...) (print_msg(L"[i] " TEXT(__FUNCTION__) L": " __VA_ARGS__))
#define PRINT_ERROR(...) (print_msg(L"[x] " TEXT(__FUNCTION__) L": " __VA_ARGS__))
#define PRINT_SUCCESS(...) (print_msg(L"[+] " TEXT(__FUNCTION__) L": " __VA_ARGS__))
#define PRINT_NORMAL(...) (print_msg(__VA_ARGS__))