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