ptTrackUsage
Track usage of a product, based on version and distribution.
- PTBool ptTrackUsage(
- int userID,
- int productID,
- const gsi_char * versionUniqueID,
- int distributionID,
- PTBool blocking );
Routine | Required Header | Distribution |
---|---|---|
ptTrackUsage | <pt.h> | SDKZIP |
Return Value
If PTFalse is returned, there was an error tracking usage.
Parameters
- userID
- [in] The GP userID of the user who is using the product. Can be 0.
- productID
- [in] The ID of this product.
- versionUniqueID
- [in] A string uniquely identifying this version.
- distributionID
- [in] The distribution ID for this version. Can be 0.
- blocking
- [in] When set to PTTrue, this function will not return until the operation has completed
Unicode Mappings
Routine | GSI_UNICODE Not Defined | GSI_UNICODE Defined |
---|---|---|
ptTrackUsage | ptTrackUsageA | ptTrackUsageW |
ptTrackUsageW and ptTrackUsageA are UNICODE and ANSI mapped versions of ptTrackUsage. The arguments of ptTrackUsageA are ANSI strings; those of ptTrackUsageW are wide-character strings.
Section Reference: Gamespy Patching and Usage Analysis SDK