minor corrections by M.Taguchi
[reactos.git] / os2 / lib / doscalls / devices / devices.cpp
1 /* $Id: devices.cpp,v 1.5 2004/01/31 01:29:11 robertk Exp $
2 */
3 /*
4 *
5 * COPYRIGHT: See COPYING in the top level directory
6 * PROJECT: ReactOS OS/2 sub system
7 * PART: doscalls.dll
8 * FILE: devices.cpp
9 * CONTAINS: device io ctl main function.
10 * PURPOSE: Kernelservices for OS/2 apps
11 * PROGRAMMER: Robert K. nonvolatil@yahoo.de
12 * REVISION HISTORY:
13 * 13-03-2002 Created
14 * 25-07-2002 Work to make it compile
15 * 10-11-2002 Done som little things
16 */
17
18 #define INCL_DOSDEVICES
19 #define INCL_DOSERRORS
20 #include "ros2.h"
21
22
23 /*******************************************/
24 /* DosDevIOCtl performs control functions */
25 /* on a device specified by an opened */
26 /* device handle. */
27 /*******************************************/
28 /*HFILE hDevice; Device handle returned by DosOpen, or a standard (open) device handle. */
29 /*ULONG category; Device category. */
30 /*ULONG function; Device-specific function code. */
31 /*PVOID pParams; Address of the command-specific argument list. */
32 /*ULONG cbParmLenMax; Length, in bytes, of pParams. */
33 /*PULONG pcbParmLen; Pointer to the length of parameters. */
34 /*PVOID pData; Address of the data area. */
35 /*ULONG cbDataLenMax; Length, in bytes, of pData. */
36 /*PULONG pcbDataLen; Pointer to the length of data. */
37 /*APIRET ulrc; Return Code.
38
39 ulrc (APIRET) - returns
40 Return Code.
41
42 DosDevIOCtl returns one of the following values:
43
44 0 NO_ERROR
45 1 ERROR_INVALID_FUNCTION
46 6 ERROR_INVALID_HANDLE
47 15 ERROR_INVALID_DRIVE
48 31 ERROR_GEN_FAILURE
49 87 ERROR_INVALID_PARAMETER
50 111 ERROR_BUFFER_OVERFLOW
51 115 ERROR_PROTECTION_VIOLATION
52 117 ERROR_INVALID_CATEGORY
53 119 ERROR_BAD_DRIVER_LEVEL
54 163 ERROR_UNCERTAIN_MEDIA
55 165 ERROR_MONITORS_NOT_SUPPORTED
56
57 */
58 APIRET STDCALL DosDevIOCtl(HFILE hDevice, ULONG category, ULONG function,
59 PVOID pParams,ULONG cbParmLenMax,PULONG pcbParmLen,
60 PVOID pData,ULONG cbDataLenMax,PULONG pcbDataLen)
61 {
62 return ERROR_CALL_NOT_IMPLEMENTED;
63 }
64
65 /* EOF */