Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. physical.h
  5. Abstract:
  6. physical.c header file
  7. Environment:
  8. Windows NT Unidrv driver
  9. Revision History:
  10. 10/14/96 -amandan-
  11. Created
  12. dd-mm-yy -author-
  13. description
  14. --*/
  15. #ifndef _PHYSICAL_H_
  16. #define _PHYSICAL_H_
  17. #define MAX_STACK_SIZE 100
  18. #define CMDOFFSET_TO_PTR(pPDev, loOffset) \
  19. (pPDev->pDriverInfo->pubResourceData + loOffset)
  20. typedef struct _CMDPARAM {
  21. DWORD dwFormat; // Specifies the format of the parameter
  22. DWORD dwDigits; // Specifies the number of digits to be
  23. // emmitted, this is only valid if the
  24. // format is "D" or "d" AND dwFlags has
  25. // PARAM_FLAG_FIELDWIDTH_USED
  26. DWORD dwFlags; // Flags for parameters, which action to carray out:
  27. // PARAM_FLAG_MIN_USED
  28. // PARAM_FLAG_MAX_USED
  29. // PARAM_FLAG_FIELDWIDTH_USED
  30. INT iValue; // Value calculated from arToken in PARAMETER struct
  31. } CMDPARAM, * PCMDPARAM;
  32. VOID
  33. SendCmd(
  34. PDEV *pPDev,
  35. COMMAND *pCmd,
  36. CMDPARAM *pParam
  37. );
  38. INT
  39. IProcessTokenStream(
  40. PDEV *pPDev,
  41. ARRAYREF *pToken ,
  42. PBOOL pbMaxRepeat
  43. );
  44. INT
  45. FineXMoveTo(
  46. PDEV *pPDev,
  47. INT iX
  48. );
  49. PPARAMETER
  50. PGetParameter(
  51. PDEV *pPDev,
  52. BYTE *pInvocationStr
  53. );
  54. #endif // _PHYSICAL_H