Sha256: 622809597bb0588bacc3afb6159e3db42dd9ec5505ac5195a29a95e7f989f5f3

Contents?: true

Size: 1.38 KB

Versions: 13

Compression:

Stored size: 1.38 KB

Contents

require 'windows/api'
include Windows

module Windows
   module Pipe
      API.auto_namespace = 'Windows::Pipe'
      API.auto_constant  = true
      API.auto_method    = true
      API.auto_unicode   = true

      NMPWAIT_NOWAIT           = 0x00000001
      NMPWAIT_WAIT_FOREVER     = 0xffffffff
      NMPWAIT_USE_DEFAULT_WAIT = 0x00000000

      PIPE_WAIT             = 0x00000000
      PIPE_NOWAIT           = 0x00000001
      PIPE_ACCESS_INBOUND   = 0x00000001
      PIPE_ACCESS_OUTBOUND  = 0x00000002
      PIPE_ACCESS_DUPLEX    = 0x00000003
      PIPE_TYPE_BYTE        = 0x00000000
      PIPE_TYPE_MESSAGE     = 0x00000004
      PIPE_READMODE_BYTE    = 0x00000000
      PIPE_READMODE_MESSAGE = 0x00000002
      PIPE_CLIENT_END       = 0x00000000
      PIPE_SERVER_END       = 0x00000001
      
      PIPE_UNLIMITED_INSTANCES = 255

      API.new('CallNamedPipe', 'PPLPLPL', 'B')
      API.new('ConnectNamedPipe', 'LP', 'B')
      API.new('CreateNamedPipe', 'PLLLLLLL', 'L')
      API.new('CreatePipe', 'PPPL', 'B')
      API.new('DisconnectNamedPipe', 'L', 'B')
      API.new('GetNamedPipeHandleState', 'LPPPPPL', 'B')
      API.new('GetNamedPipeInfo', 'LPPPP', 'B')
      API.new('PeekNamedPipe', 'LPLPPP', 'B')
      API.new('SetNamedPipeHandleState', 'LPPP', 'B')
      API.new('TransactNamedPipe', 'LPLPLPP', 'B')
      API.new('WaitNamedPipe', 'PL', 'B')
   end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
windows-pr-0.8.3 lib/windows/pipe.rb
windows-pr-0.7.4 lib/windows/pipe.rb
windows-pr-0.8.4 lib/windows/pipe.rb
windows-pr-0.7.0 lib/windows/pipe.rb
windows-pr-0.7.2 lib/windows/pipe.rb
windows-pr-0.7.3 lib/windows/pipe.rb
windows-pr-0.8.1 lib/windows/pipe.rb
windows-pr-0.8.2 lib/windows/pipe.rb
windows-pr-0.8.5 lib/windows/pipe.rb
windows-pr-0.7.1 lib/windows/pipe.rb
windows-pr-0.8.0 lib/windows/pipe.rb
windows-pr-0.8.6 lib/windows/pipe.rb
windows-pr-0.8.7 lib/windows/pipe.rb