German
Russian
EXLADE - Disk encryption. Data encryption. Boot protection. Security and Encryption Solutions Development Company
    English
Home Products Download Purchase Support Articles Partners Press room Contacts  
Products
Cryptic Disk
Disk Password Protection
DefenseWall HIPS
Handy Backup
Related Links
Boot Protection
Partition Protection
Low-level Protection
Getting started
Wizard
Working with boot protection
Working with partition protection
Program Launch Protection
Command line support
SDK
Using SDK
SDK Functions
Newsletter subscription

DetectDevices

Detects disks on your computer. It is called automatically when the library is loaded.

BOOL DetectDevices();
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
Comments

When the library is loaded, the code of this function is executed automatically, so you do not have to call it right after the library is loaded. When the application window gets the WM_DEVICECHANGED system message, you should call the DeviceChange function from the SDK and it will call DetectDevices if necessary.

See also
DeviceChange

DeviceChange

Processes the WM_DEVICECHANGE system message.

BOOL DeviceChange(
  WPARAM nEventType,
  LPARAM dwData
);
Parameters
nEventType
[in] The wParam value of the WM_DEVICECHANGE system message.
dwData
[in] The lParam value of the WM_DEVICECHANGE system message.
Return values
If the configuration of disks in the system has changed, the function returns a nonzero value.
If the configuration of disks has not changed, the function returns a zero value.
Comments
During the work of your application disks and partitions can appear and disappear many times. When such events occur, the system sends the WM_DEVICECHANGE message to all applications that have open windows at the moment. When your application receives such a message, it should inform the Disk Password Protection library that there are some changes in the disk structure of the system. To do it, you should receive the WM_DEVICECHANGE message in the message handler and call the DeviceChange function from the SDK when it is received.
Below you can see examples of processing the WM_DEVICECHANGE message in applications.

...
ON_MESSAGE( WM_DEVICECHANGE, OnDeviceChange)
...
LRESULT CMyDlg::OnDeviceChange( WPARAM nEventType, LPARAM dwData )
{
	if ( DeviceChange( nEventType, dwData ) )
	{
	...
	}
}


protected override void WndProc(ref Message m)
{
	if ( DiskPP.DeviceChange( ref m ) )
	{
	...
	}
	base.WndProc (ref m);
}
See also
DetectDevices

GetLastErrorDll

Returns the code of the last error.

DWORD GetLastErrorDll();
Return values
HDPC_DETECTDISKS_ERROR Device detection error.
HDPC_ERROR_SUCCESS No error.
HDPC_INCORRECT_PARAMETERS Incorrect parameters.
HDPC_INCORRECT_PASSWORD Incorrect password.
HDPC_NODEVICES No disks in the system.
HDPC_OLD_PROTECTION A protection module of an older version is detected.
HDPC_OSVERSION_ERROR The operating system is not supported.
HDPC_PROTECTION_DISABLED No protection.
HDPC_PROTECTION_ENABLED Enabled protection.
HDPC_READSECTOR_ERROR Disk read error.
HDPC_SECTORISNTSYSTEM The sector is not a system one.
HDPC_TRIAL_EXPIRED The trial period has expired.
HDPC_TRIAL_LIMITATION_DETECTED The operation cannot be carried out in the unregistered version.
HDPC_UNSUPPORT_PROTECTION The disk does not support protection.
HDPC_UNSUPPORT_VERSION The protection module is not supported by the current version.
HDPC_USING_DETECTED The partition is used by the system or other applications.
HDPC_WRITESECTOR_ERROR Disk write error.

GetDiskIsReadOnly

Detects if the disk is read-only.

BOOL GetDiskIsReadOnly(
  BYTE   bDisk,
  LPBYTE lpbDiskIsReadOnly
);
Parameters
bDisk
[in] Disk number (starting with 0).
lpbDiskIsReadOnly
[in,out] Pointer to the variable in which the flag will be returned (a nonzero value if the disk is read-only and a zero value if not).
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
Comments
If the disk is read-only, it will be impossible to enable protection or change the password for the existing protection on this disk and its partitions.
See also
GetDiskIsSupport, GetLastErrorDll

GetDiskIsProtected

Detects if boot protection is enable for the disk.

BOOL GetDiskIsProtected(
  BYTE   bDisk,
  LPBYTE lpbDiskIsProtected
);
Parameters
bDisk
[in] Disk number (starting with 0).
lpbDiskIsProtected
[in,out] Pointer to the variable in which the flag will be returned (a nonzero value if boot protection is enabled and a zero value if not).
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
See also
GetDiskIsSupport, GetLastErrorDll

GetDiskIsSupport

Detects if the disk supports protection.

BOOL GetDiskIsSupport(
  BYTE   bDisk,
  LPBYTE lpbDiskIsSupport
);
Parameters
bDisk
[in] Disk number (starting with 0).
lpbDiskIsSupport
[in,out] Pointer to the variable in which the flag will be returned (a nonzero value if the disk supports protection and a zero value if not).
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
Comments
Some removable disks (such as Flash Drive) have a nonstandard format and do not have system areas or partition tables. You cannot enable protection for such disks.
See also
GetLastErrorDll

GetDiskModelNumber

Returns the model of the disk as a string (succession of bytes).

BOOL GetDiskModelNumber(
  BYTE   bDisk,
  LPBYTE lpbModelNumberBuffer,
  DWORD  dwModelNumberBufferSize
);
Parameters
bDisk
[in] Disk number (starting with 0).
lpbModelNumberBuffer
[in,out] Pointer to the buffer in which the disk model string ending with zero is returned.
dwModelNumberBufferSize
[in] Size of the buffer in bytes lpbModelNumberBuffer point to.
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
See also
GetDiskSerialNumber, GetLastErrorDll

GetDisksCount

Returns the number of disks in the system.

BOOL GetDisksCount(
  LPBYTE   lpbDisksCount,
);
Parameters
lpbDisksCount
[in,out] Pointer to the variable in which the number of disks will be returned.
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
See also
GetLastErrorDll

GetDiskSerialNumber

Returns the disk serial number as a string (a succession of bytes).

BOOL GetDiskSerialNumber(
  BYTE   bDisk,
  LPBYTE lpbSerialNumberBuffer,
  DWORD  dwSerialNumberBufferSize
);
Parameters
bDisk
[in] Disk number (starting with 0).
lpbSerialNumberBuffer
[in,out] Pointer to the buffer in which the disk serial number string ending with zero will be returned.
dwSerialNumberBufferSize
[in] Size of the buffer in bytes lpbSerialNumberBuffer points to (in bytes).
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
See also
GetDiskModelNumber, GetLastErrorDll

GetDiskSpace

Returns disk size in bytes as a string.

BOOL GetDiskSpace(
  BYTE   bDisk,
  LPBYTE lpbDiskSpaceBuffer,
  DWORD  dwDiskSpaceBufferSize
);
Parameters
bDisk
[in] Disk number (starting with 0).
lpbDiskSpaceBuffer
[in,out] Pointer to the buffer for the returned string ending with zero.
dwDiskSpaceBufferSize
[in] Size of the buffer in bytes lpbDiskSpaceBuffer points to.
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
Comments
Disk size is returned in bytes. The result is returned as a string. For example, if the size of a disk is 42949672960 bytes, the function will write the string "42949672960" to the buffer.
See also
GetDiskModelNumber, GetDiskSerialNumber, GetLastErrorDll

GetLetterByPartitionData

Returns the partition letter.

BOOL GetLetterByPartitionData(
  BYTE   bDisk,
  BYTE   bPartition,
  LPBYTE lpbLetter
);
Parameters
bDisk
[in] Disk number (starting with 0).
bPartition
[in,out] Partition number on the disk (starting with 0).
[in] Pointer to the variable of the BYTE type in which the partition letter is returned.
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
Comments
In Window operating systems the system assigns a letter to each partition. This function allows you to get the partition letter if you know its number on the disk and the ID of the number of the disk in the system.
See also
GetPartitionDataByLetter, GetLastErrorDll

GetPartitionDataByLetter

Returns the number of the disk and the partition by its letter.

BOOL GetPartitionDataByLetter(
  BYTE   bLetter,
  LPBYTE lpbDisk,
  LPBYTE lpbPartition
);
Parameters
bLetter
[in] Partition letter.
lpbDisk
[in,out] The number of the disk where the partition is located (starting with 0).
lpbPartition
[in,out] Partition number on the disk (starting with 0).
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
Comments
In Windows operating systems the system assigns a letter to each partition. This function allows you to get the partition number on the disk and the disk number in the system by this letter.
See also
GetLetterByPartitionData, GetLastErrorDll

GetPartitionsCount

Returns the number of partitions on the disk.

BOOL GetPartitionsCount(
  BYTE   bDisk,
  LPBYTE lpbPartitionsCount
);
Parameters
bDisk
[in] Disk number (starting with 0).
lpbPartitionsCount
[in,out] Pointer to the variable in which the function will return the number of partitions (including the protected ones).
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
See also
GetLastErrorDll

GetPartitionFSName

Returns the name of the file system on the partition.

BOOL GetPartitionFSName(
  BYTE   bDisk,
  BYTE   lpbPartition,
  LPBYTE lpbFSNameBuffer,
  DWORD  dwFSNameBufferSize
);
Parameters
bDisk
[in] Disk number (starting with 0).
lpbPartition
[in] Partition number on the disk (starting with 0).
lpbFSNameBuffer
[in,out] Pointer to the buffer in which the string with the name of the file system on the partition ending with zero will be returned.
dwFSNameBufferSize
[in] Size of the lpbFSNameBuffer buffer in bytes.
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
See also
GetPartitionFSType, GetPartitionIsActive, GetPartitionIsBoot, GetPartitionIsPrimary, GetPartitionIsProtected, GetLastErrorDll

GetPartitionFSType

Returns the type of the file system on the partition.

BOOL GetPartitionFSType(
  BYTE   bDisk,
  BYTE   lpbPartition,
  LPBYTE lpbFSType
);
Parameters
bDisk
[in] Disk number (starting with 0).
lpbPartition
[in] Partition number on the disk (starting with 0).
lpbFSType
[in,out] Pointer to the variable of the BYTE type in which the code of the file system will be returned.
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
See also
GetPartitionFSName, GetPartitionIsActive, GetPartitionIsBoot, GetPartitionIsPrimary, GetPartitionIsProtected, GetLastErrorDll

GetPartitionIsActive

Determines if the partition is active.

BOOL GetPartitionIsActive(
  BYTE   bDisk,
  BYTE   lpbPartition,
  LPBYTE lpbIsActive
);
Parameters
bDisk
[in] Disk number (starting with 0).
lpbPartition
[in] Partition number on the disk (starting with 0).
lpbIsActive
[in,out] Pointer to the variable of the BYTE type in which the flag will be returned (a nonzero value if the partition is active and a zero value if not).
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
Comments
The active partition oà a disk is the partition from which the system will try to load the operating system by default. Only a primary partition can be active. After you enable protection for such a partition, it will be impossible to load the computer from this disk.
See also
GetPartitionFSName, GetPartitionFSType, GetPartitionIsBoot, GetPartitionIsPrimary, GetPartitionIsProtected, GetLastErrorDll

GetPartitionIsBoot

Determines if the partition is bootable.

BOOL GetPartitionIsBoot(
  BYTE   bDisk,
  BYTE   lpbPartition,
  LPBYTE lpbIsBoot
);
Parameters
bDisk
[in] Disk number (starting with 0).
lpbPartition
[in] Partition number on the disk (starting with 0).
lpbIsBoot
[in,out] Pointer to the variable of the BYTE type in which the flag will be returned (a nonzero value if the partition is bootable and a zero value if not).
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
Comments
The bootable partition of a disk is the partition on which the currently running system is located.
See also
GetPartitionFSName, GetPartitionFSType, GetPartitionIsActive, GetPartitionIsPrimary, GetPartitionIsProtected, GetLastErrorDll

GetPartitionIsPrimary

Determines the type of the partition (Primary or Logical).

BOOL GetPartitionIsPrimary(
  BYTE   bDisk,
  BYTE   lpbPartition,
  LPBYTE lpbIsPrimary
);
Parameters
bDisk
[in] Disk number (starting with 0).
lpbPartition
[in] Partition number on the disk (starting with 0).
[in,out] Pointer to the variable of the BYTE type in which the flag will be returned (a nonzero value if the partition is primary and a zero value if it is logical).
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
See also
GetPartitionFSName, GetPartitionFSType, GetPartitionIsActive, GetPartitionIsPrimary, GetPartitionIsBoot, GetLastErrorDll

GetPartitionIsProtected

Determines if there is protection enabled for the partition.

BOOL GetPartitionIsProtected(
  BYTE   bDisk,
  BYTE   lpbPartition,
  LPBYTE lpbIsProtected
);
Parameters
bDisk
[in] Disk number (starting with 0).
lpbPartition
[in] Partition number on the disk (starting with 0).
[in,out] Pointer to the variable of the BYTE type in which the flag will be returned (a nonzero value if the partition is protected and a zero value if not).
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
See also
GetPartitionFSName, GetPartitionFSType, GetPartitionIsActive, GetPartitionIsPrimary, GetPartitionIsBoot, GetLastErrorDll

GetPartitionSpace

Returns the size of the partition in bytes as a string.

BOOL GetPartitionSpace(
  BYTE   bDisk,
  BYTE   lpbPartition,
  LPBYTE lpbSpaceBuffer,
  DWORD  dwSpaceBufferSize
);
Parameters
bDisk
[in] Disk number (starting with 0).
lpbPartition
[in] Partition number on the disk (starting with 0).
lpbSpaceBuffer
[in,out] Pointer to the buffer for the returned string ending with zero.
dwSpaceBufferSize
[in] Size of the buffer in bytes lpbSpaceBuffer points to.
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
Comments
The size of the partition is returned in bytes. The result is returned as a string. For example, if the size of a disk is 42949672960 bytes, the function will write the string "42949672960" to the buffer.
See also
GetPartitionFSName, GetPartitionFSType, GetPartitionIsActive, GetPartitionIsPrimary, GetPartitionIsBoot, GetPartitionIsProtected, GetLastErrorDll

GetRegisteredName

Returns the name Disk Password Protection is registered to.

BOOL GetRegisteredName(
  LPBYTE lpbNameBuffer,
  DWORD  dwNameBufferSize
);
Parameters
lpbNameBuffer
[in, out] Buffer for the returned string ending with zero.
dwSpaceBufferSize
[in] Size of the lpbNameBuffer buffer in bytes.
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
Comments
Visit the official site of the software developer to purchase a license for using the product: http://www.exlade.com.
See also
GetTypeOfLicense, IsRegistered, SetRegistrationData, GetLastErrorDll

GetTypeOfLicense

Returns the type of the license.

BOOL GetTypeOfLicense(
  LPBYTE lpbLicenseType
);
Parameters
lpbLicenseType
[in, out] Pointer to the variable of the BYTE type in which the type of the license will be returned.
The following types of licenses are available:
LICENSE_PERSONAL Personal license
LICENSE_BUSINESS Business license
LICENSE_COMMERCIAL Commercial license
LICENSE_COMMERCIAL_UNLIMITED Commercial unlimited license
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
Comments
Visit the official site of the software developer to purchase a license for using the product: http://www.exlade.com.
See also
GetRegisteredName, IsRegistered, SetRegistrationData, GetLastErrorDll

IsRegistered

Determines if the product is registered.

BOOL IsRegistered();
Return values
The function will return a nonzero value if the product is registered and a zero value if it is not registered.
Comments
Visit the official site of the software developer to purchase a license for using the product: http://www.exlade.com.
See also
GetRegisteredName, IsRegistered, SetRegistrationData,

ProtectionBootChangePassword

Changes the password for the protected disk.

BOOL ProtectionBootChangePassword(
  BYTE   bDisk,
  LPBYTE lpbOldPassword,
  LPBYTE lpbNewPassword,
  LPBYTE lpbNewHint
);
Parameters
bDisk
[in] Disk number (starting with 0).
lpbOldPassword
[in] Pointer to the string with the old password ending with zero.
lpbNewPassword
[in] Pointer to the string with the new password ending with zero.
lpbNewHint
[in] Pointer to the string with the new password hint ending with zero. It can be NULL.
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
See also
ProtectionBootGetPasswordHint, ProtectionBootSet, ProtectionBootUnset, GetLastErrorDll

ProtectionBootGetPasswordHint

Returns the password hint for the protected disk.

BOOL ProtectionBootGetPasswordHint(
  BYTE   bDisk,
  LPBYTE lpbHintBuffer,
  DWORD  dwHintBufferSize
);
Parameters
bDisk
[in] Disk number (starting with 0).
lpbHintBuffer
[in, out] Buffer of the returned string ending with zero.
dwHintBufferSize
[in] Size of the lpbHintBuffer buffer in bytes.
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
Comments
When enabling protection for a disk, you can specify a password hint in case you lose your password. The ProtectionBootGetPasswordHint function allows you to get this hint.
See also
ProtectionBootSet, ProtectionBootChangePassword, ProtectionBootUnset, GetLastErrorDll

ProtectionBootSet

Enables boot protection for the disk.

BOOL ProtectionBootSet(
  BYTE   bDisk,
  LPBYTE lpbPassword,
  LPBYTE lpbHint
);
Parameters
bDisk
[in] Disk number (starting with 0).
lpbPassword
[in] Pointer to the string with the password ending with zero.
lpbHint
[in] Pointer to the string with the password hint ending with zero. It can be NULL.
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
Comments
The passed password will be used to protect loading from the protected disk and to disable the protection. You can use the ProtectionBootGetPasswordHint function to get the password hint. When the NULL value is passed in the lpbHint parameter, no password hint is specified.
See also
ProtectionBootGetPasswordHint, ProtectionBootChangePassword, ProtectionBootUnset, GetLastErrorDll

ProtectionBootUnset

Disables boot protection for the disk.

BOOL ProtectionBootUnset(
  BYTE   bDisk,
  LPBYTE lpbPassword
);
Parameters
bDisk
[in] Disk number (starting with 0).
lpbPassword
[in] Pointer to the string with the password ending with zero.
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
See also
ProtectionBootGetPasswordHint, ProtectionBootSet, ProtectionBootChangePassword, GetLastErrorDll

ProtectionPartitionChangePassword

Changes the password for the protected disk.

BOOL ProtectionPartitionChangePassword(
  BYTE   bDisk,
  BYTE   bPartition,
  LPBYTE lpbOldPassword,
  LPBYTE lpbNewPassword,
  LPBYTE lpbNewHint
);
Parameters
bDisk
[in] Disk number (starting with 0).
bPartition
[in] Partition number on the disk (starting with 0).
[in] Pointer to the string with the old password ending with zero.
lpbNewPassword
[in] Pointer to the string with the new password ending with zero.
lpbNewHint
[in] Pointer to the string with the new password hint ending with zero. It can be NULL.
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
See also
ProtectionPartitionGetPasswordHint, ProtectionPartitionSet, ProtectionPartitionSetSafely, ProtectionPartitionUnset, GetLastErrorDll

ProtectionPartitionGetPasswordHint

Returns the password hint for the protected partition.

BOOL ProtectionPartitionGetPasswordHint(
  BYTE   bDisk,
  BYTE   bPartition,
  LPBYTE lpbHintBuffer,
  DWORD  dwHintBufferSize
);
Parameters
bDisk
[in] Disk number (starting with 0).
bPartition
[in] Partition number on the disk (starting with 0).
lpbHintBuffer
[in,out] Buffer of the returned string ending with zero.
dwHintBufferSize
[in] Size of the lpbHintBuffer buffer in bytes.
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
Comments
When enabling protection for a disk, you can specify a password hint in case you lose your password. The ProtectionBootGetPasswordHint function allows you to get this hint.
See also
ProtectionPartitionChangePassword, ProtectionPartitionSet, ProtectionPartitionSetSafely, ProtectionPartitionUnset, GetLastErrorDll

ProtectionPartitionSet

Enables partition protection.

BOOL ProtectionPartitionSet(
  BYTE   bDisk,
  BYTE   bPartition,
  LPBYTE lpbPassword,
  LPBYTE lpbHint
);
Parameters
bDisk
[in] Disk number (starting with 0).
bPartition
[in] Partition number on the disk (starting with 0).
lpbPassword
[in] Pointer to the string with the password ending with zero.
lpbHint
[in] Pointer to the string with the password hint ending with zero. It can be NULL.
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
Comments
To determine if a partition is used, call the ProtectionPartitionSetSafely function.
You can get your password hint with the ProtectionPartitionGetPasswordHint. function.
When the NULL value is passed in the lpbHint parameter, no password hint is specified.
See also
ProtectionPartitionChangePassword, ProtectionPartitionGetPasswordHint, ProtectionPartitionSetSafely, ProtectionPartitionUnset, GetLastErrorDll

ProtectionPartitionSetSafely

Enables partition protection. If the partition is being used by the system or other applications, no protection is enabled.

BOOL ProtectionPartitionSetSafely(
  BYTE   bDisk,
  BYTE   bPartition,
  LPBYTE lpbPassword,
  LPBYTE lpbHint
);
Parameters
bDisk
[in] Disk number (starting with 0).
bPartition
[in] Partition number on the disk (starting with 0).
lpbPassword
[in] Pointer to the string with the password ending with zero.
lpbHint
[in] Pointer to the string with the password hint ending with zero. It can be NULL.
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
Comments
The function for the safe partition protection. If the partition is being used by the system or other applications, no protection is enabled and the GetLastErrorDll function will return the HDPC_USING_DETECTED error.
You can use the ProtectionPartitionGetPasswordHint function to get the password hint
When the NULL value is passed in the lpbHint parameter, no password hint is specified.
See also
ProtectionPartitionChangePassword, ProtectionPartitionSet, ProtectionPartitionSet, ProtectionPartitionUnset, GetLastErrorDll

ProtectionPartitionUnset

Disables partition protection.

BOOL ProtectionPartitionUnset(
  BYTE   bDisk,
  BYTE   bPartition,
  LPBYTE lpbPassword
);
Parameters
bDisk
[in] Disk number (starting with 0).
bPartition
[in] Partition number on the disk (starting with 0).
lpbPassword
[in] Pointer to the string with the password ending with zero.
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
See also
ProtectionPartitionChangePassword, ProtectionPartitionSet, ProtectionPartitionSet, ProtectionPartitionSetSafely, GetLastErrorDll

ProtectionPartitionUnsetToLetter

Disables the protection of a partition and mounts it to the specified letter in the system.

BOOL ProtectionPartitionUnsetToLetter(
  BYTE   bDisk,
  BYTE   bPartition,
  LPBYTE lpbPassword,
  BYTE   bLetter
);
Parameters
bDisk
[in] Disk number (starting with 0).
bPartition
[in] Partition number on the disk (starting with 0).
lpbPassword
[in] Pointer to the string with the password ending with zero.
bLetter
[in] The letter to which the partition will be mounted.
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
See also
ProtectionPartitionChangePassword, ProtectionPartitionSet, ProtectionPartitionSet, ProtectionPartitionSetSafely, GetLastErrorDll

SetRegistrationData

Disk Password Protection Registration.

BOOL SetRegistrationData(
  LPBYTE lpbName,
  LPBYTE lpbKey
);
Parameters
lpbName
[in] Pointer to the string with the name ending with zero.
lpbKey
[in] Pointer to the string with the registration key ending with zero.
Return values
If there are no errors, the function returns a nonzero value.
If some errors occur, the function returns a zero value. Call GetLastErrorDll to get detailed information about the error.
Comments
The library should be reloaded after the registration. The feature is available only to the owners of a commercial copy of the library.
To get more detailed information, contact the developer of the product: http://www.exlade.com.
See also
GetRegisteredName, GetTypeOfLicense, IsRegistered, GetLastErrorDll
    Home  |  Products  |  Download  |  Purchase  |  Site map  |  Privacy Policy