コード例 #1
0
PTErr_t
	PTInitialize (void)
{
KpInt32_t	retErr;

	if (KcpUsageCount == 0) {		/* first process */
		retErr = KCMDsetup (&IGPtr);	/* set up this shared library */
		if (retErr != KCMS_SUCCESS) {
			return KCP_NO_MEMORY;
		}
		KcpUsageCount++;
  	}

	return KCP_SUCCESS;
}
コード例 #2
0
PTErr_t
PTInitializeEx (PTInitInfo_t * InitInfo)
{
KpInt32_t			retErr;


	if (KcpUsageCount == 0) {				/* first process */
		IGPtr = (KpGenericPtr_t) InitInfo;
		retErr = KCMDsetup (&IGPtr);		/* set up this dll */
		if (retErr != KCMS_SUCCESS) {
			return KCP_NO_MEMORY;
		}
		KcpUsageCount++;
  	}

	return KCP_SUCCESS;
}