Products‎ > ‎H2Reg‎ > ‎

H2reg.dll

H2Reg.DLL, H2RegLib.DLL

We also ship a DLL version of H2Reg.exe.
License
  • H2Reg.DLL is covered by the H2Reg license. Just like H2Reg.exe the DLL is free for personal use but you must purchase a H2Reg license if you want to ship the DLL to internal or external customers. For more details see the H2Reg Home Page
  • You may not use H2Reg.DLL to create a similar product, or any type of general registration type program. H2Reg.DLL can only be used to register help files as part your applications installation solution. 
  • If you have questions about licensing please contact us.
About
  • H2Reg.DLL contains all the features of H2Reg.exe including the script support. While H2RegLib.DLL is smaller and contains just the basic registration commands.
  • This is a standard 32bit Windows DLL. It does not required ActiveX registration. 
  • The DLLs are not as popular as H2Reg.exe. They are typically used by experienced developers who need to code their own installation extensions. We supply example code to get you going.
DLL Functions
  • The following functions are available in both DLLs (the last 2 functions in H2Reg.INI only). 
  • See the .pas header file (attached or here) for details of parameters and return codes. 
  • The DLLs use the Pascal calling convention. A Demo Test application written in Borland Delphi 6 has been included with the DLL download.
GetH2Ver(): PChar Returns a version string x.x.x.x for MS Help 2. Return empty string if H2 not installed.
NSExists(nsName: PChar): Bool; Returns true if MS Help 2 is found and the given Namespace exists.
Reg_Namespace(nsName...): Integer; Register a Namespace.
Reg_Title(nsName...): Integer; Register a Title under a Namespace.
Reg_PlugIn(nsName...): Integer; Plug a child Namespace into a parent Namespace.
Reg_Filter(nsName...): Integer; Register a filter.
UnReg_Filter(nsName...): Integer; Unregister a Filter.
UnReg_PlugIn(nsName...): Integer; Unregister a child plug-in.
UnReg_Title(nsName...): Integer; Unregister a Title.
UnReg_Namespace(nsName...): Integer; Unregister a Namespace.
NS_StartMergeFiles(nsName): Integer; Merge a Namespace.
NS_IsMergeFilesBusy: Bool; Are we still busy Merging a Namespace?
NS_IsMergePending(nsName): Bool; Does a Namespace require merging?
RunScriptFile(file, flags): Integer; Provides H2Reg.exe scripting functionality.

* The last two items are only available in H2Reg.DLL. They are not included in the smaller H2RegLib.DLL.
Download
Note: The DLL documentation assumes you understand the H2Reg.exe product and its documentation.
The DLL is included with the main H2Reg.exe download. After installing look for H2Reg DLL code examples under c:\Program Files\Helpware\H2Reg

Subpages (1): UMainFuncs.pas
ċ
UMainFuncs.pas.txt
(26k)
Robert Chandler,
11 May 2012, 06:46
Comments