Class: RubySMB::Dcerpc::Winreg::CreateKeyRequest

Inherits:
BinData::Record
  • Object
show all
Defined in:
lib/ruby_smb/dcerpc/winreg/create_key_request.rb

Overview

This class represents a BaseRegCreateKey Request Packet as defined in 3.1.5.7 BaseRegCreateKey (Opnum 6)

Constant Summary collapse

REG_KEY_TYPE_NON_VOLATILE =

Options: bitwise OR of one of the key types (REG_KEY_TYPE_*), and any or none of the other options:

This key is not volatile. The key and all its values MUST be persisted to the backing store and is preserved when the registry server loses context due to a computer restart, reboot, or shut down process.

0x00000000
REG_KEY_TYPE_VOLATILE =

This key is volatile. The key with all its subkeys and values MUST NOT be preserved when the registry server loses context due to a computer restart, reboot, or shut down process.

0x00000001
0x00000002
REG_OPTION_BACKUP_RESTORE =

Indicates that the caller wishes to assert its backup and/or restore privileges.

0x00000004
0x00000008
REG_OPTION_DONT_VIRTUALIZE =

Indicates that the caller wishes to disable limited user access virtualization for this operation.

0x00000010
REG_CREATED_NEW_KEY =

Create disposition: The key did not exist and was created.

0x00000001
REG_OPENED_EXISTING_KEY =

The key already existed and was opened without being changed.

0x00000002

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#opnumObject (readonly)

Returns the value of attribute opnum.



42
43
44
# File 'lib/ruby_smb/dcerpc/winreg/create_key_request.rb', line 42

def opnum
  @opnum
end

Instance Method Details

#initialize_instanceObject



54
55
56
57
# File 'lib/ruby_smb/dcerpc/winreg/create_key_request.rb', line 54

def initialize_instance
  super
  @opnum = REG_CREATE_KEY
end