Registration_GetCount

The Registration_GetCount function retrieves the numeric value stored in the specified count slot index. Refer to Microsoft Dynamics GP Count Slot Values for the list of slot values.

int Registration_GetCount(
	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	 slotID		// The slot index 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.
slotID
	[in] The index of the slot to check.

Return Values:

Returns the number stored in the specified count slot.