質問編集履歴
3
投稿時のミスだと思っていたら本当に間違っていたため修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -80,11 +80,11 @@
|
|
80
80
|
|
81
81
|
[DllImport("B.dll")]
|
82
82
|
|
83
|
-
private static extern bool _OpenD
|
83
|
+
private static extern bool _OpenDLL(uint CircuitNo);
|
84
84
|
|
85
85
|
public C(){
|
86
86
|
|
87
|
-
_OpenD
|
87
|
+
_OpenDLL(0); //エントリーポイントが見つかりません。
|
88
88
|
|
89
89
|
}
|
90
90
|
|
@@ -104,11 +104,11 @@
|
|
104
104
|
|
105
105
|
[DllImport("A.dll")]
|
106
106
|
|
107
|
-
private static extern bool OpenD
|
107
|
+
private static extern bool OpenDLL(uint CircuitNo);
|
108
108
|
|
109
109
|
public C(){
|
110
110
|
|
111
|
-
_OpenD
|
111
|
+
_OpenDLL(0); //エントリーポイントが見つかりません。
|
112
112
|
|
113
113
|
}
|
114
114
|
|
2
記載ミス OpenDLL → OpenDll
test
CHANGED
File without changes
|
test
CHANGED
@@ -80,11 +80,11 @@
|
|
80
80
|
|
81
81
|
[DllImport("B.dll")]
|
82
82
|
|
83
|
-
private static extern bool _OpenD
|
83
|
+
private static extern bool _OpenDll(uint CircuitNo);
|
84
84
|
|
85
85
|
public C(){
|
86
86
|
|
87
|
-
_OpenD
|
87
|
+
_OpenDll(0); //エントリーポイントが見つかりません。
|
88
88
|
|
89
89
|
}
|
90
90
|
|
@@ -104,11 +104,11 @@
|
|
104
104
|
|
105
105
|
[DllImport("A.dll")]
|
106
106
|
|
107
|
-
private static extern bool OpenD
|
107
|
+
private static extern bool OpenDll(uint CircuitNo);
|
108
108
|
|
109
109
|
public C(){
|
110
110
|
|
111
|
-
_OpenD
|
111
|
+
_OpenDll(0); //エントリーポイントが見つかりません。
|
112
112
|
|
113
113
|
}
|
114
114
|
|
1
開発用コマンドプロンプトでDLLファイルに含まれる関数を調べた
test
CHANGED
File without changes
|
test
CHANGED
@@ -115,3 +115,77 @@
|
|
115
115
|
}
|
116
116
|
|
117
117
|
```
|
118
|
+
|
119
|
+
```CommandPrompt
|
120
|
+
|
121
|
+
*****>dumpbin /exports B.dll
|
122
|
+
|
123
|
+
rts B.dll
|
124
|
+
|
125
|
+
Microsoft (R) COFF/PE Dumper Version 14.16.27031.1
|
126
|
+
|
127
|
+
Copyright (C) Microsoft Corporation. All rights reserved.
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
Dump of file B.dll
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
File Type: DLL
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
Section contains the following exports for B.dll
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
00000000 characteristics
|
146
|
+
|
147
|
+
FFFFFFFF time date stamp
|
148
|
+
|
149
|
+
0.00 version
|
150
|
+
|
151
|
+
1 ordinal base
|
152
|
+
|
153
|
+
7 number of functions
|
154
|
+
|
155
|
+
7 number of names
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
ordinal hint RVA name
|
160
|
+
|
161
|
+
(抜粋)
|
162
|
+
|
163
|
+
2 3 00011168 _CloseDll = @ILT+355(__CloseDll@4)
|
164
|
+
|
165
|
+
1 4 0001129E _OpenDll = @ILT+665(__OpenDll@4)
|
166
|
+
|
167
|
+
(抜粋)
|
168
|
+
|
169
|
+
Summary
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
1000 .00cfg
|
174
|
+
|
175
|
+
1000 .data
|
176
|
+
|
177
|
+
1000 .idata
|
178
|
+
|
179
|
+
1000 .msvcjmc
|
180
|
+
|
181
|
+
2000 .rdata
|
182
|
+
|
183
|
+
1000 .reloc
|
184
|
+
|
185
|
+
1000 .rsrc
|
186
|
+
|
187
|
+
6000 .text
|
188
|
+
|
189
|
+
10000 .textbss
|
190
|
+
|
191
|
+
```
|