/// <summary> /// Function to lookup Email data - used for email utility functions only /// </summary> /// <param name="dataName">Field Specification String</param> /// <param name="operation">Function Type Constants</param> /// <param name="details">Object containing search/lookup values. Becomes populated with results</param> /// <returns>The function returns a long which is the result code. This will be >= 0 if the function is successful, or < 0 in the case of an error</returns> public long AFDData(string dataName, long operation, ref afdEmailData details) { StringBuilder passDetails = new StringBuilder(); long retVal; // Compose the DLL string from the supplied structure passDetails.Append(details.Email.PadRight(255, ' ')); // Call the DLL function string returnDetails = CallDllFunction(dataName, operation, passDetails, out retVal); // Retrieve the data structure from the string returned by the DLL details.Email = returnDetails.Substring(0, 255).Trim(); // Return with the function return value return(retVal); }
/// Procedure to clear AFDEmailData Structure /// </summary> /// <param name="details">AFDData to be cleared</param> public void ClearAFDEmailData(ref afdEmailData details) { details.Email = string.Empty; }