Class: Rex::Post::Meterpreter::Extensions::Stdapi::Railgun::Def::Def_windows_spoolss

Inherits:
Object
  • Object
show all
Defined in:
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_spoolss.rb

Class Method Summary collapse

Class Method Details

.create_library(constant_manager, library_path = 'spoolss') ⇒ Object


12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_spoolss.rb', line 12

def self.create_library(constant_manager, library_path = 'spoolss')
  dll = Library.new(library_path, constant_manager)

  dll.add_function('DeletePrinter', 'BOOL',[
    ["HANDLE","hPrinter","inout"]
  ])

  dll.add_function('ClosePrinter', 'BOOL',[
    ["HANDLE","hPrinter","in"]
  ])

  return dll
end