37 lines
925 B
C
37 lines
925 B
C
#pragma once
|
|
/*
|
|
* =========== UWAGA !!!! =================
|
|
* POD ZADNYM POZOREM NIE ZMIENIAC KOLEJNOSCI NAGLOWKOW ANI DEFINICJI MAKR
|
|
* MA TO KLUCZOWE ZNACZENIE PODCZAS BUDOWANIA BIBLIOTEKI
|
|
*
|
|
*/
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#define _WINSOCKAPI_
|
|
|
|
#include <winsock2.h>
|
|
#include <ws2tcpip.h>
|
|
|
|
#include <Windows.h>
|
|
#define SECURITY_WIN32
|
|
#define CINTERFACE
|
|
#define COBJMACROS
|
|
|
|
typedef long NTSTATUS;
|
|
|
|
#define STATUS_SUCCESS ((NTSTATUS)0x00000000L)
|
|
#define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001L)
|
|
#define STATUS_NOT_IMPLEMENTED ((NTSTATUS)0xC0000002L)
|
|
#define STATUS_ACCESS_DENIED ((NTSTATUS)0xC0000022L)
|
|
//#define STATUS_INVALID_PARAMETER ((NTSTATUS)0xC000000DL)
|
|
#define STATUS_INSUFFICIENT_RESOURCES ((NTSTATUS)0xC000009AL)
|
|
|
|
#define NT_SUCCESS(Status) (((NTSTATUS)(Status)) >= 0)
|
|
|
|
#include <ntsecapi.h>
|
|
#include <sspi.h>
|
|
#include <ntsecpkg.h>
|
|
|
|
#include <sddl.h>
|
|
#include <strsafe.h>
|
|
|
|
/***/ |