Migration Utility Library

The Migration Utility Library, MigUtil, contains global settings and methods. These include the following global variables:

  • Global variable g_pwszUserObject. Corresponds to the default setting in Commerce Server. If you switch to a different profile (other than UserObject), the name of the new profile should be assigned to this global variable.

  • Global variable g_searchOrder. Holds all the possible symbols that might appear in the search filters for Common Name (CN) except digits from 0 to 9, which are converted to characters in the initialization stage. You have to allocate ten more spaces in this array to hold these ten numbers. For example:

    WCHAR g_searchOrder[128] = {L'a', L'b', L'c', L'd', L'e', L'f', L'g',
                                L'h', L'i', L'j', L'k', L'l', L'm', L'n',
                                L'o', L'p', L'q', L'r', L's', L't', L'u',
                                L'v', L'w', L'x', L'y', L'z'};
    

    In this example, the 128 characters that are reserved are more than sufficient (including the ten extra characters).

  • Global variable g_numSymbols. Contains the number of symbols you want to store in the array of g_searchOrder (not including the ten digits). For example:

    int g_numSymbols = 26;
    

Copyright © 2005 Microsoft Corporation.
All rights reserved.