GetServiceRegistryStateKey function onecore

int GetServiceRegistryStateKey(
  1. SERVICE_STATUS_HANDLE serviceStatusHandle,
  2. SERVICE_REGISTRY_STATE_TYPE stateType,
  3. int accessMask,
  4. Pointer<Pointer<NativeType>> serviceStateKey,
)

Returns a handle for a registry key for a service to read and/or write state to.

To learn more, see learn.microsoft.com/windows/win32/api/winsvc/nf-winsvc-getserviceregistrystatekey.

Implementation

@pragma('vm:prefer-inline')
int GetServiceRegistryStateKey(
  SERVICE_STATUS_HANDLE serviceStatusHandle,
  SERVICE_REGISTRY_STATE_TYPE stateType,
  int accessMask,
  Pointer<Pointer> serviceStateKey,
) => _GetServiceRegistryStateKey(
  serviceStatusHandle,
  stateType,
  accessMask,
  serviceStateKey,
);