473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to verify Exe or Dll files?

yxq
Hello,
I want to verify the digital signature of EXE or DLL file, in order to know
if they published by Microsoft, like the software "Process Explorer",
download link is below
http://www.microsoft.com/technet/sys...sExplorer.mspx

Select a process, view Properties/Image, click "verify" button to view if
the file has been verfied.

I have searched internet, find the API WinVerifyTrust and some C++ code(link
below), can anyone tell how use WinVerifyTrust in VB.NET?

http://www.derkeiler.com/Newsgroups/.../msg00020.html

Thank you
Steven
Mar 22 '07 #1
2 3155
Dim FVInfo As FileVersionInfo = FileVersionInfo.GetVersionInfo(Path and
Filename)
"yxq" <ga***@163.netwrote in message
news:en**************@TK2MSFTNGP03.phx.gbl...
Hello,
I want to verify the digital signature of EXE or DLL file, in order to
know if they published by Microsoft, like the software "Process Explorer",
download link is below
http://www.microsoft.com/technet/sys...sExplorer.mspx

Select a process, view Properties/Image, click "verify" button to view if
the file has been verfied.

I have searched internet, find the API WinVerifyTrust and some C++
code(link below), can anyone tell how use WinVerifyTrust in VB.NET?

http://www.derkeiler.com/Newsgroups/.../msg00020.html

Thank you
Steven

Mar 23 '07 #2
yxq
Thank you, but your code only get file Version info, i want to get the info
of digital signature.

"Richard T. Edwards" <re********@hotmail.com>
??????:%2****************@TK2MSFTNGP03.phx.gbl...
Dim FVInfo As FileVersionInfo = FileVersionInfo.GetVersionInfo(Path and
Filename)
"yxq" <ga***@163.netwrote in message
news:en**************@TK2MSFTNGP03.phx.gbl...
>Hello,
I want to verify the digital signature of EXE or DLL file, in order to
know if they published by Microsoft, like the software "Process
Explorer", download link is below
http://www.microsoft.com/technet/sys...sExplorer.mspx

Select a process, view Properties/Image, click "verify" button to view if
the file has been verfied.

I have searched internet, find the API WinVerifyTrust and some C++
code(link below), can anyone tell how use WinVerifyTrust in VB.NET?

http://www.derkeiler.com/Newsgroups/.../msg00020.html

Thank you
Steven



Mar 24 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: I | last post by:
How can I verify DSA sign in php? Please send some example (I have tree files: data, sign and public DSA key in PEM format). Thanks Jaromir Ocelka
2
by: Vilmar Brazão de Oliveira | last post by:
Hi, How verify type or extension of file using ASPUPLOAD? I check documentation, but I didn't find anything else yet. thanks, -- ««««««««»»»»»»»»»»»»»» Vlmar Brazão de Oliveira...
23
by: Han | last post by:
Our app runs on end-users machines (apache2.x + php5). At this moment it is quite easy for someone (who has access to the console) to insert a couple lines of php code to steal sensitive info. ...
2
by: Andy Chen | last post by:
Hi, I have to verify a lot of installation packages which are digital signed. You can verify a file on the property sheet, but I am working on southands of files. I am planning to create a tool to...
1
by: Lynn | last post by:
Hi, I am copying files and sub folders from one directory to another directory. does anyone have the code to verify if the copying is completed successfully? thanks
14
by: =?Utf-8?B?U2FtdWVs?= | last post by:
Hi, I have a web app that allows others to upload files, and the problem is that if I allow users to upload image files, fake image can be uploaded and cause XSS issues. In the app, I do...
1
by: Hamish Moffatt | last post by:
Hi, I'm fetching some files over HTTPS from Python and I want to verify the server certificate. (Not just the name etc provided in certificate.) How can I get access to this information? ...
0
by: makinha | last post by:
Hello All, I can use WebClient.DownloadFile Method to download target file from the website, like WebClient.DownloadFile("http://www.abc.com/a.pdf", "D:\a.pdf") but how can I verify the...
0
by: Samuel.cyprian | last post by:
Hi guys, Do anyone of you know how to verify a signature of an executable file in C#? I would rather like to use a .net namespace instead of inporting of dlls. Thanks /SC
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.