Attaches or detaches a drive to or from a remote file system driver (FSD), or a pseudocharacter device name to or from a local or remote FSD.
#define INCL_DOSFILEMGR
#include <os2.h>
PSZ pszDevice; /* Pseudocharacter or spool device name. */
PSZ pszFilesystem; /* Pointer to the remote file-system driver name. */
PVOID pData; /* Pointer to file-system driver or spooler data. */
ULONG cbData; /* The length, in bytes, of pData. */
ULONG flag; /* Type of operation to be performed. */
APIRET ulrc; /* Return Code. */
ulrc = DosFSAttach(pszDevice, pszFilesystem,
pData, cbData, flag);