/*static char *SCCSID = "@(#)fs_notfy.c	6.2 91/01/14";*/
#define SCCSID "@(#)fs_notfy.c	6.2 91/01/14"
/*
 *	IBM/Microsoft Confidential
 *
 *	Copyright (c) IBM Corporation 1987, 1989
 *	Copyright (c) Microsoft Corporation 1987, 1989
 *
 *	All Rights Reserved
 *
 */

/***    FS_NOTIFY - Find/Next/Close Notify functions
 *      
 *      FS_FINDNOTIFYFIRST - Start monitoring directory for changes
 *      FS_FINDNOTIFYNEXT  - Resume reporting directory changes
 *      FS_FINDNOTIFYCLOSE - Close Find-Notify handle
 *
 *
 *      THESE FUNCTIONS ARE NOT SUPPORTED BY THE CD-ROM FSD.
 * 
 *
 *  REVISION HISTORY (in reverse chronological order)
 *  -------------------------------------------------------------------------
 *  9/13/89     Paul Bingman    First CDROM version
 *  8/4/89      Brian Andrew    Initial blank template
 *
 *
 * TO DO
 * --------------------------------------------------------------------------
 *
 */


#define INCL_DOSERRORS
#define INCL_NOPMAPI
#include <os2.h>
#include <fsd.h>

#include "cdfs.h"
#include "sem.h"
#include "path.h"
#include "vol.h"
#include "file.h"
#include "buffer.h"
#include "mem.h"
#include "heap.h"
#include "pr_memin.h"

#ifdef DEBUG
#include "pr_DEBUG.h"
#endif


int far pascal
FS_FINDNOTIFYCLOSE(USHORT handle)
{

#ifdef DEBUG
	dprintf ("FS_FINDNOTIFYCLOSE(handle=%d)\n", handle);
#endif

	/*
	 * Files on CD-ROM read-only media will not change.
	 */

	return (ERROR_NOT_SUPPORTED);

	/* defeat compiler warnings */

	handle;

}   /* end FS_FINDNOTIFY CLOSE */



int far pascal
FS_FINDNOTIFYFIRST(PCDFSI       pcdfsi,
				   PCDFSD       pcdfsd,
				   PCHAR        pName,
				   USHORT       iCurDirEnd,
				   USHORT       attr,
				   PUSHORT      pHandle,
				   PCHAR        pData,
				   USHORT       cbData,
				   PUSHORT      pcMatch,
				   USHORT       level,
				   ULONG        timeout)
{

#ifdef DEBUG
	dprintf ("FS_FINDNOTIFYFIRST(\"%Fs\", attr=%x, level=%d)\n",
		pName, attr, level);
#endif

	/*
	 * Files on CD-ROM read-only media will not change.
	 */

	return (ERROR_NOT_SUPPORTED);

	/* defeat compiler warnings */

	pcdfsi;
	pcdfsd;
	pName;
	iCurDirEnd;
	attr;
	pHandle;
	pData;
	cbData;
	pcMatch;
	level;
	timeout;

}   /* end FS_FINDNOTIFYFIRST */


/***    FS_FINDNOTIFYNEXT - wait for directory changes
 *
 */

int far pascal
FS_FINDNOTIFYNEXT(USHORT handle,
	PCHAR       pData,
	USHORT      cbData,
	PUSHORT     pcMatch,
	USHORT      level,
	ULONG       timeout)
{

#ifdef DEBUG
	dprintf ("FS_FINDNOTIFYNEXT(handle=%d, level=%d)\n", handle, level);
#endif

	/*
	 * Files on CD-ROM read-only media will not change.
	 */

	return (ERROR_NOT_SUPPORTED);

	/* defeat compiler warnings */

	handle;
	pData;
	cbData;
	pcMatch;
	level;
	timeout;

}   /* end FS_FINDNOTIFYNEXT */

/* end of fs_notfy.c */
