Class that contains static functions that allow reading and writing of license and location data to and from the registry. More...
#include <CCPrintLicenseInfo.h>
Inherits LicenseInfo.

Static Public Member Functions | |
| static void | ReadFromRegistry (HANDLE hPrinter, LicenseInfo &info) |
| Reads license information data from the registry. | |
| static bool | WriteToRegistry (HANDLE hPrinter, const LicenseInfo &info) |
| Writes license information data from the registry. | |
| static void | ReadFromRegistry (HANDLE hPrinter, LicenseLocationInfo &info) |
| Reads license stamp location data from the registry. | |
| static bool | WriteToRegistry (HANDLE hPrinter, const LicenseLocationInfo &info) |
| Writes license stamp location data to the registry. | |
Class that contains static functions that allow reading and writing of license and location data to and from the registry.
Definition at line 36 of file CCPrintLicenseInfo.h.
| void CCPrintLicenseInfo::ReadFromRegistry | ( | HANDLE | hPrinter, | |
| LicenseLocationInfo & | info | |||
| ) | [static] |
Reads license stamp location data from the registry.
| hPrinter | Handle to the printer | |
| info | License location information structure to fill |
Definition at line 108 of file CCPrintLicenseInfo.cpp.
References LicenseLocationInfo::Clear(), LicenseLocationInfo::eFirstPage, LicenseLocationInfo::eOtherPages, CCPrintRegistry::GetRegistryInt(), LicenseLocationInfo::ptFirstPage, LicenseLocationInfo::ptOtherPages, REG_LOCATION_BASE_NAME, REG_LOCATION_FIRSTPAGE_NAME, REG_LOCATION_FIRSTPAGE_X_NAME, REG_LOCATION_FIRSTPAGE_Y_NAME, REG_LOCATION_OTHERPAGES_NAME, REG_LOCATION_OTHERPAGES_X_NAME, and REG_LOCATION_OTHERPAGES_Y_NAME.
| void CCPrintLicenseInfo::ReadFromRegistry | ( | HANDLE | hPrinter, | |
| LicenseInfo & | info | |||
| ) | [static] |
Reads license information data from the registry.
| hPrinter | Handle to the printer | |
| info | License information structure to fill |
Definition at line 70 of file CCPrintLicenseInfo.cpp.
References LicenseInfo::Clear(), CCPrintRegistry::GetRegistryBool(), CCPrintRegistry::GetRegistryInt(), CCPrintRegistry::GetRegistryString(), LicenseInfo::m_bCommercialUse, LicenseInfo::m_cJurisdiction, LicenseInfo::m_eLicense, LicenseInfo::m_eModification, LicenseInfo::m_eSampling, REG_LICENSE_BASE_NAME, REG_LICENSE_COMMERCIAL_NAME, REG_LICENSE_JURISDICTION_NAME, REG_LICENSE_MODIFICATION_NAME, REG_LICENSE_NAME_NAME, REG_LICENSE_SAMPLING_NAME, REG_LICENSE_TYPE_NAME, REG_LICENSE_URI_NAME, LicenseInfo::SetJurisdiction(), LicenseInfo::SetName(), and LicenseInfo::SetURI().
Referenced by ReadOEMDevFromRegistry().
| bool CCPrintLicenseInfo::WriteToRegistry | ( | HANDLE | hPrinter, | |
| const LicenseLocationInfo & | info | |||
| ) | [static] |
Writes license stamp location data to the registry.
| hPrinter | Handle to the printer | |
| info | License location information structure to fill |
Definition at line 146 of file CCPrintLicenseInfo.cpp.
References LicenseLocationInfo::eFirstPage, LicenseLocationInfo::eOtherPages, LicenseLocationInfo::ptFirstPage, LicenseLocationInfo::ptOtherPages, REG_LOCATION_BASE_NAME, REG_LOCATION_FIRSTPAGE_NAME, REG_LOCATION_FIRSTPAGE_X_NAME, REG_LOCATION_FIRSTPAGE_Y_NAME, REG_LOCATION_OTHERPAGES_NAME, REG_LOCATION_OTHERPAGES_X_NAME, REG_LOCATION_OTHERPAGES_Y_NAME, and CCPrintRegistry::SetRegistryInt().
| bool CCPrintLicenseInfo::WriteToRegistry | ( | HANDLE | hPrinter, | |
| const LicenseInfo & | info | |||
| ) | [static] |
Writes license information data from the registry.
| hPrinter | Handle to the printer | |
| info | License information to write to registry |
Definition at line 90 of file CCPrintLicenseInfo.cpp.
References LicenseInfo::m_bCommercialUse, LicenseInfo::m_cJurisdiction, LicenseInfo::m_cName, LicenseInfo::m_cURI, LicenseInfo::m_eLicense, LicenseInfo::m_eModification, LicenseInfo::m_eSampling, REG_LICENSE_BASE_NAME, REG_LICENSE_COMMERCIAL_NAME, REG_LICENSE_JURISDICTION_NAME, REG_LICENSE_MODIFICATION_NAME, REG_LICENSE_NAME_NAME, REG_LICENSE_SAMPLING_NAME, REG_LICENSE_TYPE_NAME, REG_LICENSE_URI_NAME, CCPrintRegistry::SetRegistryBool(), CCPrintRegistry::SetRegistryInt(), and CCPrintRegistry::SetRegistryString().
Referenced by WriteOEMDevToRegistry().
1.6.1