--- title: "Initialize the library" url: "https://docs.adyen.com/point-of-sale/classic-library-deprecation/classic-library-integrations/com-extension-for-windows-integration/key-steps-com-extension/initialize-the-library-com-extension" source_url: "https://docs.adyen.com/point-of-sale/classic-library-deprecation/classic-library-integrations/com-extension-for-windows-integration/key-steps-com-extension/initialize-the-library-com-extension.md" canonical: "https://docs.adyen.com/point-of-sale/classic-library-deprecation/classic-library-integrations/com-extension-for-windows-integration/key-steps-com-extension/initialize-the-library-com-extension" last_modified: "2019-05-01T13:10:00+02:00" language: "en" --- # Initialize the library [View source](/point-of-sale/classic-library-deprecation/classic-library-integrations/com-extension-for-windows-integration/key-steps-com-extension/initialize-the-library-com-extension.md) Before the library can be used, you must initialize it using the `InitLibrary` method. ## POS Object | Name | Description | | ----- | ------------------------------------------------------ | | `POS` | POS object representing the cash register application. | ## Method | Name | Description | | ------------- | ------------------------------------------------------------------------------------------------------------------------ | | `InitLibrary` | Initializes the library and sets the environment, merchant name, cash register name, integrator name, and library flags. | ## Parameters | Name | Type | Required | Description | | ---------------- | ------ | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `environment` | long | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | Environment flag. Set as `1` for the Test environment and `2` for the Live environment. | | `merchantName` | String | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | The merchant account used for the cash register application registration. | | `appName` | String | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | The cash register name.Format this value like so: **Cash register company and product** /** Cash register product version** / **Adyen integration name** / **Adyen integration version**. For example,  **Acme Corp POS** / **1.2.1** / **Acme Adyen connector** / **0.1 ** | | `flags` | long | ![-x-](/user/data/smileys/emoji/x.png "-x-") | A set of [library flags](/point-of-sale/classic-library-deprecation/classic-library-integrations/com-extension-for-windows-integration/key-steps-com-extension/initialize-the-library-com-extension/library-flags). | | `integratorName` | String | ![-x-](/user/data/smileys/emoji/x.png "-x-") | The name of the integrator company for logging.This value should be the name of the company deploying cash register or Point-of-Sale solution, for example,  **Retail Consultancy Corp.** | Check the `intCallResult` value immediately to indicate if the C library received the request without error. ## Callback | Name | Description | | --------------- | ------------------------------------------------- | | `InitLibraryCB` | Returns the result of the library initialization. |