home *** CD-ROM | disk | FTP | other *** search
- /*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 = RMCDEV.C
- *
- * DESCRIPTIVE NAME = RMCreateDevice 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 RMCreateDevice(HDRIVER hDriver,
- PHDEVICE phDevice,
- PDEVICESTRUCT pDeviceStruct,
- HADAPTER hAdapter,
- PAHRESOURCE pahResource)
- {
-
- if (RMFlags & RMF_INITIALIZED)
- {
- return ( CallRM( RMCREATEDEVICE, (PVOID) &hDriver ) );
- }
-
- if (RMFlags & RMF_NO_RM)
- {
- *phDevice = (HDEVICE)-1;
- return RMRC_SUCCESS;
- }
-
- return RMRC_NOTINITIALIZED;
- }
-
-