NWGetMediaMgrObjList

Returns a list of media manager objects (storage devices) of the specified type.

Local Servers:blocking
Remote Servers:blocking
NetWare Server:4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98
Library:Cross-Platform NetWare Calls (CAL*.*)
Service:Server Environment

Syntax

  #include <nwfse.h> 
  or 
  #include <nwcalls.h> 
   
  NWCCODE N_API  NWGetMediaMgrObjList  ( 
     NWCONN_HANDLE                      conn,  
     nuint32                            startNum,  
     nuint32                            objType,  
     NWFSE_MEDIA_MGR_OBJ_LIST  N_FAR   *fseMediaMgrObjList);
  

Delphi Syntax

  uses calwin32 
   
  Function NWGetMediaMgrObjList 
    (conn : NWCONN_HANDLE; 
     startNum : nuint32; 
     objType : nuint32; 
     Var fseMediaMgrObjList : NWFSE_MEDIA_MGR_OBJ_LIST 
  ) : NWCCODE;
  

Parameters

conn
(IN) Specifies the NetWare server connection handle.
startNum
(IN) Specifies the value returned in the nextStartObjNum field of the fseMediaMgrObjList parameter (set to -1 initially).
objType
(IN) Specifies the object type.
fseMediaMgrObjList
(OUT) Points to the NWFSE_MEDIA_MGR_OBJ_LIST structure listing media manager objects.

Return Values

These are common return values; see Return Values (Return Values for C) for more information.

0x0000

SUCCESSFUL

0x8979

Invalid Start Number or Object Type

0x897E

NCP_BOUNDARY_CHECK_FAILED

Remarks

To call NWGetMediaMgrObjList, you must have console operator rights.

Media manager objects are storage devices maintained by the media manager in an object-oriented database.

Object types are the following:

C Value

Delphi Value

Value Name

0

0

FSE_ADAPTER_OBJECT

1

1

FSE_CHANGER_OBJECT

2

2

FSE_DEVICE_OBJECT

4

4

FSE_MEDIA_OBJECT

5

5

FSE_PARTITION_OBJECT

6

6

FSE_SLOT_OBJECT

7

7

FSE_HOTFIX_OBJECT

8

8

FSE_MIRROR_OBJECT

9

9

FSE_PARITY_OBJECT

10

10

FSE_VOLUME_SEG_OBJECT

11

11

FSE_VOLUME_OBJECT

12

12

FSE_CLONE_OBJECT

14

14

FSE_MAGAZINE_OBJECT

15

15

FSE_VIRTUAL_DEVICE_OBJECT

0xFFFF

$FFFF

FSE_UNKNOWN_OBJECT

NCP Calls

See Also

NWGetLoadedMediaNumList, NWGetMediaMgrObjInfo, NWGetMediaMgrObjChildrenList, NWGetMediaNameByMediaNum, NWGetProtocolStkNumsByMediaNum