undll32 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +9 -3
- data/lib/undll32.rb +3 -1
- data/lib/undll32/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 720c8d6ccde6cefc4bb4580a87982404b129024025d2f2e5890f84ed07502813
|
4
|
+
data.tar.gz: 877280eb8235a5a3315690e72711035c56ac51f9dda5990cc4bc74e8e2899628
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5aa282ab7b983492990b64cc987fd6639667652a9fd972a798dedbc3c77b84980644d24071977726cda015202e065f86395e054c9353264f2956d805fc0fd41
|
7
|
+
data.tar.gz: f8910d1e76cb7277facbbdd0b66c26e2a119beee0c79f5f4a8b171f7a7b63b671002b06bac4c17c6215bd143454338a7495d0e885dfff0959640de1232a7b588
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -22,9 +22,15 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
25
|
-
-
|
26
|
-
|
27
|
-
|
25
|
+
- Command line:
|
26
|
+
```
|
27
|
+
undll32 User32,MessageBox 0 hello world 0
|
28
|
+
ruby -rundll32 -e Undll32.exe -- User32,MessageBox 0 hello world 0
|
29
|
+
```
|
30
|
+
- Program:
|
31
|
+
```ruby
|
32
|
+
Undll32.run('User32', 'MessageBox', 0, 'hello', 'world', 0)
|
33
|
+
```
|
28
34
|
|
29
35
|
## Development
|
30
36
|
|
data/lib/undll32.rb
CHANGED
@@ -52,7 +52,6 @@ module Undll32
|
|
52
52
|
|
53
53
|
##
|
54
54
|
# represents a string/struct.
|
55
|
-
# a thinner version can be found at hyrious/rgstl/blob/master/scripts/api.rb
|
56
55
|
# Buffer.new({ :x => :L, :y => 4 })
|
57
56
|
# Buffer.new([ :L, 4 ])
|
58
57
|
# Buffer.new(:L)
|
@@ -271,6 +270,9 @@ module Undll32
|
|
271
270
|
return help if dllfunc.nil?
|
272
271
|
dll, func = dllfunc.split(',')
|
273
272
|
return help if func.nil?
|
273
|
+
dll += '.dll' unless dll.end_with? '.dll'
|
274
|
+
realpath = File.expand_path dll
|
275
|
+
dll = realpath if File.exist? realpath
|
274
276
|
args.map! do |e|
|
275
277
|
e = e.dup
|
276
278
|
if e.start_with?('+')
|
data/lib/undll32/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: undll32
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hyrious
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
77
|
- !ruby/object:Gem::Version
|
78
78
|
version: '0'
|
79
79
|
requirements: []
|
80
|
-
rubygems_version: 3.0.
|
80
|
+
rubygems_version: 3.0.3
|
81
81
|
signing_key:
|
82
82
|
specification_version: 4
|
83
83
|
summary: Windows rundll32 replacement.
|