class RubySMB::Dcerpc::Svcctl::ChangeServiceConfigWRequest
[3.1.4.11 RChangeServiceConfigW (Opnum 11)](docs.microsoft.com/en-us/openspecs/windows_protocols/ms-scmr/61ea7ed0-c49d-4152-a164-b4830f16c8a4)
Attributes
opnum[R]
Public Instance Methods
initialize_instance()
click to toggle source
Calls superclass method
# File lib/ruby_smb/dcerpc/svcctl/change_service_config_w_request.rb, line 32 def initialize_instance super @opnum = CHANGE_SERVICE_CONFIG_W end
pad_length(prev_element)
click to toggle source
Determines the correct length for the padding, so that the next field is 4-byte aligned.
# File lib/ruby_smb/dcerpc/svcctl/change_service_config_w_request.rb, line 39 def pad_length(prev_element) offset = (prev_element.abs_offset + prev_element.to_binary_s.length) % 4 (4 - offset) % 4 end