Registration_IsModuleRegistered

The Registration_IsModuleRegistered function checks to see if use of a particular module is allowed by the specified registration key. Refer to Microsoft Dynamics GP Module ID Values for the list of modules.

int Registration_IsModuleRegistered(
	short   productID, // The product ID registered
	int	 version, 	// The version of the product
	char*   companyName, // The name of the company
	char*   key[5], 	 // An array of key segments
	int	 moduleID		// The module ID to check
);

Parameters:

productID
	[in] The product ID that the registration key is for.
version
	[in] The version of the registration key.
companyName
	[in] The name of the company the product is registered to.
key[5]
	[in] An 5 element array of null-terminated key segment strings.
moduleID
	[in] The ID number of the module to check.

Return Values: