GetSize Function
Description
Retrieves the byte size of a memory file from a Sentinel protection key.
Syntax
hasp_status_t HASP_CALLCONV hasp_get_size(
hasp_handle_t handle,
hasp_fileid_t fileid,
hasp_size_t * size
)
Parameters
|
Handle for the session |
|
Identifier for the file that is to be queried. Possible values are: >For default read-only memory: HASP_FILEID_RO >For default read/write memory: HASP_FILEID_RW >For a dynamic memory file (read-only, read/write, or read/write-once): The ID that was assigned to the file when the file was created. The ID is a value from 1 through 65471. NOTE Dynamic memory files are supported by Sentinel SL keys and Sentinel HL (Driverless configuration) keys (excluding HL Basic and HL Pro keys). |
|
Pointer to the resulting file size. |
Return Values
HASP_IDENTITY_RATE_LIMIT_EXCEEDED
Usage Notes
This function is used to determine the size of a memory file in a Sentinel protection key. This information is useful when reading or writing to the memory of a Sentinel protection key.
Related Topics
hasp_get_size screen