S
stevenldj
Unregistered / Unconfirmed
GUEST, unregistred user!
uses<br> SetupApi;<br><br>procedure TForm1.Button1Click(Sender: TObject);<br>var<br> InfHandle : Pointer;<br> ErrorLine : Cardinal;<br>begin<br> InfHandle := SetupOpenInfFile('usb.inf', 'Ports', INF_STYLE_WIN4, @ErrorLine);<br>end;<br><br><br>为什么调用 SetupOpenInfFile 这个函数老是出现异常:<br><br>---------------------------<br>Debugger Exception Notification<br>---------------------------<br>Project Project2.exe raised exception class EAccessViolation with message 'Access violation at address 00000000. Read of address 00000000'. Process stopped. Use Step or Run to continue.<br>---------------------------<br>OK Help <br>---------------------------<br><br><br>要怎么样才能读写 Inf 文件呢?