Beispiel #1
0
        /// <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 &gt;= 0 if the function is successful, or &lt; 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);
        }
Beispiel #2
0
 /// Procedure to clear AFDEmailData Structure
 /// </summary>
 /// <param name="details">AFDData to be cleared</param>
 public void ClearAFDEmailData(ref afdEmailData details)
 {
     details.Email = string.Empty;
 }