1 /* $Id: devices.cpp,v 1.5 2004/01/31 01:29:11 robertk Exp $
5 * COPYRIGHT: See COPYING in the top level directory
6 * PROJECT: ReactOS OS/2 sub system
9 * CONTAINS: device io ctl main function.
10 * PURPOSE: Kernelservices for OS/2 apps
11 * PROGRAMMER: Robert K. nonvolatil@yahoo.de
14 * 25-07-2002 Work to make it compile
15 * 10-11-2002 Done som little things
18 #define INCL_DOSDEVICES
19 #define INCL_DOSERRORS
23 /*******************************************/
24 /* DosDevIOCtl performs control functions */
25 /* on a device specified by an opened */
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.
39 ulrc (APIRET) - returns
42 DosDevIOCtl returns one of the following values:
45 1 ERROR_INVALID_FUNCTION
46 6 ERROR_INVALID_HANDLE
47 15 ERROR_INVALID_DRIVE
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
58 APIRET STDCALL
DosDevIOCtl(HFILE hDevice
, ULONG category
, ULONG function
,
59 PVOID pParams
,ULONG cbParmLenMax
,PULONG pcbParmLen
,
60 PVOID pData
,ULONG cbDataLenMax
,PULONG pcbDataLen
)
62 return ERROR_CALL_NOT_IMPLEMENTED
;