Miscellaneous Functions

<< Click to Display Table of Contents >>

Navigation:  WinLicense > WinLicense SDK >

Miscellaneous Functions

The following set of functions can be used to set/get miscellaneous information from WinLicense.

 

Function

Description

WLBufferCrypt

Encrypts a buffer with a given password.

WLBufferDecrypt

Decrypts a buffer with a given password.

WLCheckVirtualPC

Check if a protected application is running under a Virtual Machine environment.

WLGetCurrentCountry

Gets the current country ID.

WLGetLastError

Gets extended error information for specific functions

WLGetVersion

Gets the WinLicense version that the application was protected with.

WLGetProtectionDate

Gets the date when the application was protected.

WLHardwareCheckID

Validates a given hardware ID.

WLHardwareGetFormattedID

Retrieves a formatted hardware ID for the current machine.

WLHardwareGetID

Retrieves the current hardware ID for the current machine.

WLHardwareGetIDW

Retrieves the current hardware ID for the current machine in UNICODE format.

WLHardwareGetIdType

Retrieves the type of Hardware ID obtained with the function WLHardwareGetID

WLHardwareGetNumberUsbDrives

Retrieves the number of USB drives that are found on the system.

WLHardwareGetUsbIdAt

Retrieves the USB drive ID string at a given position.

WLHardwareGetUsbIdAtW

Retrieves the USB drive ID string (UNICODE) at a given position.

WLHardwareGetUsbNameAt

Retrieves the USB drive name at a given position.

WLHardwareGetUsbNameAtW

Retrieves the USB drive name (UNICODE) at a given position.

WLIsProtected

Returns if an application has been protected by WinLicense.

WLProtectCheckCodeIntegrity

Checks if the code section of your protected application has been patched in runtime.

WLProtectCheckDebugger

Detects the presence of a debugger in memory.

WLRestartApplication

Closes the current application and restarts it again.

WLRestartApplicationArgs

Closes the current application and restarts it again with arguments.

WLSplashHide

Hides the custom splash.