// Native service-manager control protocol. #pragma once #include #include #define NTL_SERVICE_CONTROL_VERSION 2u #define NTL_SERVICE_CONTROL_READY 1u #define NTL_SERVICE_CONTROL_STOP 2u // Service-control messages are notifications over a private Port connection. // READY transfers ExportCount service-defined handles whose meaning is fixed by // the service type known to the manager. Other operations transfer no handles. typedef struct NTL_SERVICE_CONTROL_MESSAGE { uint32_t Size; uint32_t Version; uint32_t Operation; uint32_t ExportCount; KSTATUS Status; uint32_t Reserved[3]; } NTL_SERVICE_CONTROL_MESSAGE;