Inventory
This category covers the calls to build the inventory and hash the optical media.
Enumerations
enum HSDCInventoryStatus : DWORD { HSDCInventoryStatusAll = 0, HSDCInventoryStatusOnline }
Functions
HSDCError HSDCAPI HSDCGetInventory (DWORD status, char **pJstr)
Obtains a JSON representation of devices attached (or previously attached) to the agent machine.
HSDCError HSDCAPI HSDCHashOpticalDisk (const wchar_t *path, char **pJstr)
Computes an optical disk hash that can be used to identify it and then set a policy tied to this specific optical disk.
Enumeration Type Documentation
HSDCInventoryStatus
enum HSDCInventoryStatus : DWORD
Enumerators
Inventory of devices plugged into this machine since Device Control was installed. |
|
Inventory of devices plugged into this machine now. |
Function Documentation
HSDCGetInventory()
HSDCError HSDCAPI HSDCGetInventory ( DWORD status, char ** pJstr )
Obtains a JSON representation of devices attached (or previously attached) to the agent machine.
- Class, hardwareid, and instances can be used to identify a device, the rest is just for information.
- In case of bad categorization of a device, this information can be used by support to provide device identity customization.
- Type and characteristics are described in the Windows Driver Kit documentation.
Parameters
status |
One of the HSDCInventoryStatus values. This selects whether or not the devices list is filtered to include only currently attached devices or not. |
pJstr |
[out] A non-null pointer to an output buffer. On success it will contain a JSON representing the devices formatted as below: Copy
|
Returns
HSDCErrorSuccess |
The operation succeeded |
HSDCErrorInvalidArg |
Input was nullptr |
HSDCErrorUnexpected |
Unexpected error |
HSDCHashOpticalDisk()
HSDCError HSDCAPI HSDCHashOpticalDisk ( const wchar_t * path, char ** pJstr )
Computes an optical disk hash that can be used to identify it and then set a policy tied to this specific optical disk.
Parameters
path |
The path to the optical drive in which the optical disk is located. |
pJstr |
[out] A non-null pointer which will be re-seated to point to a string of JSON information formatted as below: Copy
|
Returns
HSDCErrorInvalidVolume |
Cannot retrieve volume information for this drive |
HSDCErrorAccessDenied |
Unable to access device |
HSDCErrorVolumeNotSupported |
Unsupported format, it cannot be hashed |
HSDCErrorAgentNotInstalled |
Agent not installed and required for multiple sessions disk |
HSDCErrorUnexpected |
Unexpected error |