Summary
Add Vendor Defined Hostid Functionality to the C# Example
Synopsis
This articles shows how to add Vendor Defined Hostid(VDH) functionality to the checkout call in the C# sample application.
Discussion
The C# Application is useful for demonstrating how to perform trusted storage activations from a C# application using a C DLL and also checking out licenses from a license server.
Through some modification of the sample, you should also be able to test a VDH checkout from a license file based license server.
To do this, perform the following:
- Follow the steps in the Programming reference guide for license file based licensing to setup your Flexnet Publisher(FNP) toolkit for VDH
- Add the
x_flexlm_newid();call to the lmgract.c source code, as below:int WINAPI FNP_CreateJob() { if (lc_new_job(0, lc_new_job_arg2, &code, &lm_job)) { return APICALL_FAILED; } x_flexlm_newid(); return APICALL_SUCCESS; } - Add the a reference to the
vendor_hostid.objto themakefile.csharpfile, as below:$(LMGRACT): $(LMGRDACTSRC)\lmgract.def $(LMGRDACTSRC)\lmgract.c $(ACTLIB) $(LMNEW_OBJ) $(CLIENTLIB) $(CC) $(CFLAGS) /I$(AAINCDIR) $(LMGRDACTSRC)\lmgract.c $(LD) /def:"$(LMGRDACTSRC)\lmgract.def" /out:lmgract.dll lmgract.obj vendor_hostid.obj /implib:"lmgract.lib" /dll $(LMNEW_OBJ) \ lmgr$(SUFFIX).lib libsb$(SUFFIX).lib libcrvs$(SUFFIX).lib $(CLIENTLIB) \ $(ACTLIB) $(ACTINSTALLERLIB) $(XTRALIB) $(PREPTOOL) -v $(LMGRDACTSRC)\lmgract.xml if exist lmgract.obj del lmgract.obj - Build the csharp example and test with a license file that contains a
hostidfrom thevendor_hostid.csource code.
Related Articles
Steps to configure a combined Vendor Defined HostID and Composite HostID on Windows 17Number of Views Sample code for Multiple vendor defined hostids 7Number of Views Steps to configure a combined Vendor Defined HostID and Composite HostID on Linux 15Number of Views How to implement multiple vendor-defined hostid's 32Number of Views How do you define multiple HostIDs on FEATURE or INCREMENT line? Error: Future license file format or misspelling in licen… 10Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add additional feedback (optional)
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
|
FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513
(toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367
(toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895
2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago