Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions lib/win32/windows/functions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,17 @@ module Functions
attach_function :FreeLibrary, [:handle], :bool
attach_function :LoadLibraryEx, :LoadLibraryExA, [:string, :handle, :dword], :handle
attach_function :WaitForSingleObject, [:handle, :dword], :dword
attach_function :Wow64DisableWow64FsRedirection, [:pointer], :bool
attach_function :Wow64RevertWow64FsRedirection, [:ulong], :bool

begin
attach_function :Wow64DisableWow64FsRedirection, [:pointer], :bool
attach_function :Wow64RevertWow64FsRedirection, [:ulong], :bool
rescue LoadError
# XP 32
def Wow64DisableWow64FsRedirection(oldValue)
end
def Wow64RevertWow64FsRedirection(oldValue)
end
end

begin
ffi_lib :wevtapi
Expand Down