Guardian Programming Reference Summary for C
Functions Summary (D-F)
Guardian Programming Reference Summary for C—522630-001
5-14
DEVICE_GETINFOBYNAME_ 
Obtains the logical and physical attributes of a device.
return value:
DEVICEINFO 
(superseded by FILE_GETINFOBYNAME_ or FILE_GETINFOLISTBYNAME_) 
Obtains the device type and physical record length of a file. The file can be opened or 
closed.
This procedure does not have C syntax, because it is superseded and should not be used 
for new development. This procedure is supported only for compatibility with previous 
software.
DEVICEINFO2 
(superseded by FILE_GETINFOBYNAME_or FILE_GETINFOLISTBYNAME_) 
Obtains the device type and the physical record length of a file. The file can be opened 
or closed.
This procedure does not have C syntax, because it is superseded and should not be used 
for new development. This procedure is supported only for compatibility with previous 
software.
#include <cextdecs(DEVICE_GETINFOBYNAME_)>
short DEVICE_GETINFOBYNAME_ ( char *devname /* i */
 ,short length /* i */
 ,[ short *logical-info ] /* o */
 ,[ short *logical-info-len ] /* o */
 ,[ short *primary-info ] /* o */
 ,[ short primary-info-maxlen ]/* i */
 ,[ short *primary-info-len ] /* o */
 ,[ short *backup-info ] /* o */
 ,[ short backup-info-maxlen ] /* i */
 ,[ short *backup-info-len ] /* o */
 ,[ long timeout ] /* i */
 ,[ short *error-detail ] ); /* o */
1=Reserved.
2 = Parameter error; error-detail contains the number of the first parameter 
found to be in error, where 1 designates the first parameter on the left.
3 = Bounds error; error-detail contains the number of the first parameter 
found to be in error, where 1 designates the first parameter on the left.
4 = Device not found; error-detail contains a file-system error number.










