Sha256: cf89fd36b4a86aa48ed4eeb4c2f34f54c2bcd55eff5a90f52b5f8ae32e4456e8

Contents?: true

Size: 1.17 KB

Versions: 6

Compression:

Stored size: 1.17 KB

Contents

#
# Author:: John Keiser (<jkeiser@opscode.com>)
# Copyright:: Copyright 2011 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

require 'chef/win32/api'

class Chef
  module Win32
    module API
      module Process
        extend Chef::Win32::API

        ###############################################
        # Win32 API Bindings
        ###############################################

        ffi_lib 'kernel32'

        attach_function :GetCurrentProcess, [], :HANDLE
        attach_function :GetProcessHandleCount, [ :HANDLE, :LPDWORD ], :BOOL
        attach_function :GetProcessId, [ :HANDLE ], :DWORD

      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
chef-0.10.10 lib/chef/win32/api/process.rb
chef-0.10.10.rc.4 lib/chef/win32/api/process.rb
chef-0.10.10.rc.3 lib/chef/win32/api/process.rb
chef-0.10.10.rc.2 lib/chef/win32/api/process.rb
chef-0.10.10.rc.1 lib/chef/win32/api/process.rb
chef-0.10.10.beta.1 lib/chef/win32/api/process.rb