Class: Puppet::FFI::Windows::Structs::SERVICE_DELAYED_AUTO_START_INFO Private

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/puppet/ffi/windows/structs.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

docs.microsoft.com/en-us/windows/win32/api/winsvc/ns-winsvc-service_delayed_auto_start_info typedef struct _SERVICE_DELAYED_AUTO_START_INFO

BOOL fDelayedAutostart;

SERVICE_DELAYED_AUTO_START_INFO, *LPSERVICE_DELAYED_AUTO_START_INFO;

Instance Method Summary collapse

Instance Method Details

#[]=(key, value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Intercept the accessor so that we can handle either true/false or 1/0. Since there is only one member, there’s no need to check the key name.



165
166
167
# File 'lib/puppet/ffi/windows/structs.rb', line 165

def []=(key, value)
  [0, false].include?(value) ? aset(key, 0) : aset(key, 1)
end

#asetObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



162
# File 'lib/puppet/ffi/windows/structs.rb', line 162

alias aset []=