SubscribeServiceChangeNotifications method

int SubscribeServiceChangeNotifications(
  1. Pointer<SC_HANDLE__> hService,
  2. int eEventType,
  3. Pointer<NativeFunction<PSC_NOTIFICATION_CALLBACK>> pCallback,
  4. Pointer<Void> pCallbackContext,
  5. Pointer<Pointer<_SC_NOTIFICATION_REGISTRATION>> pSubscription,
)

Implementation

int SubscribeServiceChangeNotifications(
  ffi.Pointer<SC_HANDLE__> hService,
  int eEventType,
  ffi.Pointer<ffi.NativeFunction<PSC_NOTIFICATION_CALLBACK>> pCallback,
  ffi.Pointer<ffi.Void> pCallbackContext,
  ffi.Pointer<ffi.Pointer<_SC_NOTIFICATION_REGISTRATION>> pSubscription,
) {
  return (_SubscribeServiceChangeNotifications ??= _dylib.lookupFunction<
          _c_SubscribeServiceChangeNotifications,
          _dart_SubscribeServiceChangeNotifications>(
      'SubscribeServiceChangeNotifications'))(
    hService,
    eEventType,
    pCallback,
    pCallbackContext,
    pSubscription,
  );
}