Adds parameter values to a previously allocated MAC_PARAM structure. This token should be called once for each of the token's parameters. If a token parameter is optional, the token value should be set to 0x8000 to inform GroupWise to ignore the parameter. Otherwise it should be 00000.
void WINAPI AddTknParm ( MAC_VALUE_TYPE eType, WORD
cParmNum, WORD wFlags, LPVOID lpvParm, DWORD dwParm,
double dbParm )
{
lpTknData-DataBlock[cParmNum].eType = eType;
lpTknData-DataBlock[cParmNum].wFlags = wFlags;
if (dwParm != 0)
lpTknData-DataBlock[cParmNum].uData.dwValue = dwParm;
else
if (dbParm != 0)
lpTknData-DataBlock[cParmNum].uData.drValue = dbParm;
else
if (lpvParm != NULL)
lpTknData-DataBlock[cParmNum].uData.lpvPtr = lpvParm;
}