# PVK_RegisterKey( ): Register Usage of Library

> Source: https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/registerkey

## Format

int **PVK_RegisterKey**(**HPVKENV** *hEnv,* char *\*reg_str, long reg_num*);

***Where:***

|  |  |
| --- | --- |
| *hEnv* | Handle to environment structure created by **[PVK_AllocEnv( )](https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/allocenv)** |
| *reg_str* | Registration string provided by PVX Plus Technologies Ltd. |
| *reg_num* | Registration number provided by PVX Plus Technologies Ltd. |

## Description

**PVK_RegisterKey(** **)** must be called prior to opening the first file in order to provide the DLL with a valid registration string and key. Without this registration information, a warning message that requires user intervention will be displayed whenever a file is opened.

Note:  
The PXPIO routines are not to be redistributed as part of any application without first having purchased and obtained a proper registration string and number from PVX Plus Technologies Ltd.
