Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting UG application environment type

Status
Not open for further replies.

serhand

Computer
Joined
Jul 10, 2013
Messages
3
Location
GB
We are developing a NX Open C++ library for our internal use. The windows based library is to be used by both internal (.exe) and external (.dll) NX client applications.
Is there any way to determine the type of caller client application(e.g. external or internal) from the library such that the error logs or likewise could be directed to NX Dialogs for external clients and log files for internals?

Thank you
 
serhand,

UF_ask_application_module

Defined in: uf.h

Overview

Returns the current application module. The value that is returned
maps to a string defined constant. You can find the string in the
header file uf.h. The strings are of the form UF_APP_<module>.
For example, UF_APP_DRAFTING represents the drafting module.

Note - if this function is called from an external program it will
always return a FALSE and an app id of APP_NONE.

Environment
Internal and External

Required License(s)
gateway

int UF_ask_application_module
(
int * module_id
)

Output: The module identification value of the current application.

HTH,

Joe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top