Share via


LOOKUP: Finding a Proxy Address

LOOKUP: Finding a Proxy Address

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release. The LOOKUP sample application enables you to enter an e-mail address and specify the address type to which you want it converted. The program does an exact match on the proxy address and is able to look up hidden recipients. The LOOKUP program performs the following tasks:

  • Calls the function HrGWResolveAddress to locate the recipient entry identifier (ID) of the address you have entered.
  • Calls the function HrGWResolveProxy to find the corresponding address of the specified type.
  • Indicates whether the recipient is a MAPI recipient and prints its EX address if the address is resolved.
  • Returns an error code and asks you to enter another address if the address cannot be found.

Note  Some address types are case-sensitive and others are not. When comparing addresses, applications should compare byte-for-byte, and should always use uppercase for address types that are not case-sensitive.

To run the LOOKUP application

  1. At the command prompt, navigate to the folder that contains the LOOKUP.EXE executable file.
  2. Type LOOKUP*[ProfileName]*. You will be prompted to enter the address that you want resolved if you do not provide it.
  3. To end the run, type EXIT at this prompt. Otherwise, enter an address to be resolved, in the format <address type>:<address>. For example: SMTP:John@Microsoft.com. You will then be prompted to enter the address type that you want returned.
  4. Enter the new address type. For example, enter MS for an address in Microsoft Mail format. If the resolved address is available, the LOOKUP application returns it and indicates whether it is a MAPI recipient. If the address is unavailable, the application returns an error message.
  5. Repeat Steps 3 and 4 as necessary.

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.