Jump to content

wpIsDiskSwapped

From EDM2

This method is specific to version 3, or higher, of the OS/2 operating system.

This instance method checks if the removable media on which the file system object resides has been swapped.

Syntax

_wpIsDiskSwapped(somSelf)

Parameters

somSelf (WPFileSystem *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPFileSystem.

Returns

fSwapped (BOOL) - returns
Swap flag.
  • TRUE Removable media has been swapped.
  • FALSE Removable media has not been swapped.

How to Override

This method is generally not overridden.

Usage

This method can be called at any time.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPFileSystem *somSelf; /* Pointer to the object on which the method is being invoked. */
BOOL fSwapped; /* Swap flag. */

fSwapped = _wpIsDiskSwapped(somSelf);