Jaque Posted February 5, 2006 Posted February 5, 2006 Hi, I want to check if a driver is digital signed (without WMI). I am confused how to use the dllstruct functions. I can't get it working. Can anyone give me some advise? Code I tried: ; Check if INF file is signed using SetupVerifyInfFileA ; http://msdn.microsoft.com/library/default.asp?url=/library/en-us/setupapi/setup/setupverifyinffile.asp $INFFileStruct=DllStructCreate("char[256]") DllStructSetData($INFFileStruct,1,"c:\Windows\inf\machine.inf") $ptr3=DllStructCreate("dword;ptr;ptr;ptr") $signed=DllCall("setupapi.dll","bool","SetupVerifyInfFile","ptr",DllStructGetPtr($INFFileStruct,1),"ptr",0,"ptr",DllStructGetPtr($ptr3)) If $signed Then MsgBox(0,"Signed","Signed") Else MsgBox(0,"Signed","Unsigned") Endif
Micha1405 Posted April 22, 2006 Posted April 22, 2006 (edited) Thanks Larry for fast answer but it will not work. I attach 2 drivers one is signed and the other not. I dont unterstand the dllcall function Please help me Edited April 22, 2006 by Micha1405 My TrayToolBar
Micha1405 Posted April 22, 2006 Posted April 22, 2006 (edited) Sorry it doesn't work Here is a unsigned driver Edited April 22, 2006 by Micha1405 My TrayToolBar
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now