Jump to content

FS FSINFO: Difference between revisions

From EDM2
Created page with "{{DISPLAYTITLE:FS_FSINFO}} Returns or sets information for a file system device. ==Syntax== int far pascal FS_FSINFO(flag, hVPB, pData, cbData, level) ==Parameters== flag in..."
 
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
{{DISPLAYTITLE:FS_FSINFO}}
{{DISPLAYTITLE:FS_FSINFO}}
Returns or sets information for a file system device.  
Returns or sets information for a file system device.
 
==Syntax==
==Syntax==
  int far pascal FS_FSINFO(flag, hVPB, pData, cbData, level)
  int far pascal FS_FSINFO(flag, hVPB, pData, cbData, level)
==Parameters==
==Parameters==
flag indicates retrieval or setting of information.  
;flag:indicates retrieval or setting of information.
 
::0 indicates retrieving information.
flag == 0 indicates retrieving information.  
::1 indicates setting information on the media.
flag == 1 indicates setting information on the media.  
:All other values are reserved.
All other values are reserved.  
;hVPB: is the handle to the volume of interest.
 
;pData: is the address of the application output data area.
; hVPB: is the handle to the volume of interest.  
:Addressing of this data area has not been validated by the kernel (see ([[FSH_PROBEBUF]]).
 
;cbData: is the length of the application data area.
; pData: is the address of the application output data area.  
:For flag == 0, this is the length of the data the application wishes to retrieve. If there is not enough room for the entire level of data to be returned, the FSD will return a BUFFER OVERFLOW error. For flag == 1, this is the length of the data to be sent to the file system.
 
;level: is the information level to be returned.
Addressing of this data area has not been validated by the kernel (see (FSH_ PROBEBUF).  
:: Level selects among a series of structures of data to be returned or set. See [[DosQFSInfo]] and [[DosSetFSInfo]] for information.
 
; cbData: is the length of the application data area.  
 
For flag == 0, this is the length of the data the application wishes to retrieve. If there is not enough room for the entire level of data to be returned, the FSD will return a BUFFER OVERFLOW error. For flag == 1, this is the length of the data to be sent to the file system.  
 
; level: is the information level to be returned.  
 
:: Level selects among a series of structures of data to be returned or set. See DosQFSInfo and DosSetFSInfo for information.  


==Returns==
==Returns==
Line 33: Line 27:
   
   
  int far pascal FS_FSINFO(flag, hVPB, pData, cbData, level)
  int far pascal FS_FSINFO(flag, hVPB, pData, cbData, level)
==Remarks==
None
[[Category:IFS]]

Revision as of 17:03, 21 May 2019

Returns or sets information for a file system device.

Syntax

int far pascal FS_FSINFO(flag, hVPB, pData, cbData, level)

Parameters

flag
indicates retrieval or setting of information.
0 indicates retrieving information.
1 indicates setting information on the media.
All other values are reserved.
hVPB
is the handle to the volume of interest.
pData
is the address of the application output data area.
Addressing of this data area has not been validated by the kernel (see (FSH_PROBEBUF).
cbData
is the length of the application data area.
For flag == 0, this is the length of the data the application wishes to retrieve. If there is not enough room for the entire level of data to be returned, the FSD will return a BUFFER OVERFLOW error. For flag == 1, this is the length of the data to be sent to the file system.
level
is the information level to be returned.
Level selects among a series of structures of data to be returned or set. See DosQFSInfo and DosSetFSInfo for information.

Returns

None.

Sample

unsigned short flag;unsigned short hVPB;
char far * pData;unsigned short cbData;
unsigned short level;

int far pascal FS_FSINFO(flag, hVPB, pData, cbData, level)