/*DDK*************************************************************************/
/*                                                                           */
/* COPYRIGHT    Copyright (C) 1995 IBM Corporation                           */
/*                                                                           */
/*    The following IBM OS/2 WARP source code is provided to you solely for  */
/*    the purpose of assisting you in your development of OS/2 WARP device   */
/*    drivers. You may use this code in accordance with the IBM License      */
/*    Agreement provided in the IBM Device Driver Source Kit for OS/2. This  */
/*    Copyright statement may not be removed.                                */
/*                                                                           */
/*****************************************************************************/
/**************************************************************************
 *
 * SOURCE FILE NAME =  RMDSYSN.C
 *
 * DESCRIPTIVE NAME =  RMDestroySysName Module for RMCALLS.LIB
 *
 *
 *
 * VERSION = V0.5
 *
 * DATE
 *
 * DESCRIPTION :
 *
 * Purpose:
 *
 *
 *
 * FUNCTIONS  :
 *
 * NOTES
 *
 *
 * STRUCTURES
 *
 * EXTERNAL REFERENCES
 *
 *
 *
 * EXTERNAL FUNCTIONS
 *
*/

#define INCL_NOPMAPI
#include <os2.h>

#include "dhcalls.h"
#include "rmlib.h"
#include "rmdata.h"


USHORT _cdecl FAR RMDestroySysName(HDRIVER hDriver,
                                   HSYSNAME   hLDev)
{

   if (RMFlags & RMF_INITIALIZED)
   {
      return ( CallRM( RMDESTROYSYSNAME, (PVOID) &hDriver ) );
   }

   if (RMFlags & RMF_NO_RM)
   {
      return RMRC_SUCCESS;
   }

   return RMRC_NOTINITIALIZED;
}


