473,404 Members | 2,114 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,404 software developers and data experts.

Using VC8 linker to generate isolated app manifest with dependencies.

Is there a brief tutorial somewhere on how to use the VC8 linker to generate
a manifest for an isolated application with a dependency section for an
arbitrary dll? There are some implementation details that I don't
understand. Supposing I want to bind my application to a specific version
of kernel32.dll using a hash, for example? What hash is used? Is it the
hash generated by the CryptCATAdmin* functions or just a simple hash of the
whole file? Can I get the linker to generate the proper hash or do I have
to supply the hash dependency section with hash in a manifest include file?
Some additional details would be appreciated.

Regards,

George.
Jul 5 '06 #1
3 2367
Hi Geogre,

Thank you posting!
>Is there a brief tutorial somewhere on how to use the
VC8 linker to generate a manifest for an isolated
application with a dependency section for an arbitrary
dll?
I am afraid the VC8 linker doesn't provide such function to generate an
application manifest, you need to manually create the specific application
manifest by yourself.

By the way, an application manifest only works for several specific
Microsoft Side-by-side Assemblies, the kernel32.dll is not a side-by-side
assembly, so an application manifest would not work in this case. Please
refer to the following MSDN documentation:

Supported Microsoft Side-by-side Assemblies
http://msdn.microsoft.com/library/de...us/sbscs/setup
/supported_microsoft_side_by_side_assemblies.asp

By the way, I noticed you have posted a related question in our
platformsdk.security, my colleague Jeffery have also provided a detailed
reply to you in that thread, please check it there.

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Jul 6 '06 #2
Gary,
What hash is used? Is it the hash generated by the CryptCATAdmin*
functions or just a
simple hash of the whole file? <
Would you address specifically this part of my post.

Regards,

George.
Jul 6 '06 #3
Hi Geogre,

Thank for your response!
>What hash is used? Is it the hash generated by the
CryptCATAdmin* functions or just a simple hash of
the whole file?

Would you address specifically this part of my post.
You can use the platform SDK utility Mt.exe to generate hash. It is
available in Windows 2000 and Windows XP.

Mt.exe generates hashes using the CryptoAPI implementation of the Safe Hash
Algorithm (SHA-1). The generated Hashes are inserted as a hexadecimal
string into the <filetags in the manifest. I suggest you refer to the
following platform SDK documentation for the details:

Mt.exe
http://msdn.microsoft.com/library/de...us/sbscs/setup
/supported_microsoft_side_by_side_assemblies.asp

By the way, I am afraid my first reply missed the point that the VS2005 has
already integrated the platform SDK's manifest tool. You can access that
option in the project Property Pages dialog. On the Configuration
Properties tab, click Linker, then Manifest File, then Generate Manifest...

One related MSDN documention on this topic is as the following:

Manifest Generation in Visual Studio
http://msdn2.microsoft.com/en-us/library/ms235229.aspx

I hope the above information helps, if you have any questions or concerns,
please do not hesitate to let me know. I am standing by to help you.

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 6 '06 #4

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

Similar topics

1
by: Santhu | last post by:
What is the difference between METADATA and MANIFEST and where do they get stored? Thank you
0
by: Denis Sohet | last post by:
Hi, I have to use a MFC C++ DLL (unmanaged of course) in a C++ .Net project. I have problems to do that. I've created a C++ .Net project and includes the MFC DLL. My problems comes as soon as I...
4
by: HarryH | last post by:
I am finding that the linker for a C++ application in VS 2005 is generating a manifest with old version #s for DLLs such as mfc80.dll. How do I make sure that the linker generates a manifest that...
1
by: Terry | last post by:
Is there any hope of using Borland Developer Studio 2006 to link in a DLL compiled by MS Visual C++ version 6? I have a Win32 DLL from a company named Vocera. The DLL defines C++ classes that I...
2
by: Marcel | last post by:
Hi, We're building an application consisting of an exe and several dlls with VS2005 that needs to be xcopy installed. VS2005 automatically embeds a manifest binding the app and dlls to the...
6
by: =?Utf-8?B?WW9naSBXYXRjaGVy?= | last post by:
Hello, I am using Visual Studio-2003. I created a project to build my library. Since I am using third party libraries as well, I have specified those additional library dependencies in project...
18
by: Angus | last post by:
Hello We have a lot of C++ code. And we need to now create a library which can be used from C and C++. Given that we have a lot of C++ code using classes how can we 'hide' the fact that it is...
2
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hi misters, I have installed my windows application that uses XpdfViewer (a COM Component for view Pdfs) using ClickOnce. But I get this error:
0
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi misters USING VS 2005 in XP, VB.NET, CLICK ONCE I have a Publish of my application, AdministradorWin.exe, in a folder D:\ClickOnce\instalacionExpedienteElectronico (of a server in my...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.