Files
nt-lite/code/public/ntlite/service.h
T

22 lines
606 B
C

// Public nt-lite well-known system-service identifiers.
#pragma once
#include <stdint.h>
#include <ntlite/handle.h>
// System-service identities are numeric kernel registry keys, not pathnames.
typedef uint32_t SYS_SERVICE_ID;
#define SYS_SERVICE_INVALID 0u
#define SYS_SERVICE_RESOURCE 1u
#define SYS_SERVICE_MAX 1u
// Connects to one well-known system service through its registered Port listener.
typedef struct SYS_CONNECT_SYSTEM_SERVICE_REQUEST {
uint32_t Size;
SYS_SERVICE_ID ServiceId;
uint32_t Flags;
SYS_HANDLE* EndpointHandleOut;
} SYS_CONNECT_SYSTEM_SERVICE_REQUEST;