Sha256: 94b05748c6de64f5c6851d7dcc0ff6c27c9636fbec5fe8e02813e14a60494679

Contents?: true

Size: 598 Bytes

Versions: 4

Compression:

Stored size: 598 Bytes

Contents

require 'windows/api'

# The Windows module serves as a namespace only.
module Windows
  # The Mailslot module contains functions and constants related to the
  # Windows mailslot IPC mechanism.
  module Mailslot
    API.auto_namespace = 'Windows::Mailslot'
    API.auto_constant  = true
    API.auto_method    = true
    API.auto_unicode   = true

    private

    # Constants

    MAILSLOT_WAIT_FOREVER = 0xFFFFFFFF
    MAILSLOT_NO_MESSAGE   = 0xFFFFFFFF

    API.new('CreateMailslot', 'SLLP', 'L')
    API.new('GetMailslotInfo', 'LPPPP', 'B')
    API.new('SetMailslotInfo', 'LL', 'B')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
windows-pr-1.2.4 lib/windows/mailslot.rb
windows-pr-1.2.3 lib/windows/mailslot.rb
windows-pr-1.2.1 lib/windows/mailslot.rb
windows-pr-1.2.0 lib/windows/mailslot.rb