property CoFindManifestResourceType.
Finds and
creates a Manifest Resource file from within an EXE or DLL.
|
ExeOrDllFilename
[in] . Full filename of the EXE or DLL.
ManifestPath
[in,defaultvalue("")]
. Full pathname where to save .manifest
file appended with .xml at the
end.
By default, the manifest file will be created in the folder of the EXE or DLL.
flgCreate
[in,defaultvalue(0)]
. Setting this flag to 1,
will create a standard manifest file for an exe/dll if no
embedded
manifest resource is internally found.
Here is a sample of a default standard manifest file for an exe:
<?xml version="1.0"
encoding="UTF-8" standalone="yes"?>
<assembly
xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
type="win32" name="SFQuery3.exe"
version="3.4.0.3"/></assembly>
pVal
[out, retval] The returned value is the contents
of the .manifest file or
"" (empty string)
Here is below a sample of .manifest file contents:
<?xml version="1.0" encoding="UTF-8"
standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0"
name="MyApplication.app"/>
<trustInfo
xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker"
uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
S_OK
The operation was successfull.
E_POINTER
A NULL pointer was supplied as an argument.
E_UNEXPECTED
An unexpected error occoured.