Source code of Windows XP (NT5)
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.

51 lines
1.8 KiB

  1. /******************************************************************************
  2. Copyright (C) Microsoft Corporation 1985-1990. All rights reserved.
  3. Title: drvr.h - Installable driver code internal header file.
  4. Version: 1.00
  5. Date: 10-Jun-1990
  6. Author: DAVIDDS ROBWI
  7. ------------------------------------------------------------------------------
  8. Change log:
  9. DATE REV DESCRIPTION
  10. ----------- ----- -----------------------------------------------------------
  11. 10-JUN-1990 ROBWI Based on windows 3.1 installable driver code by davidds
  12. *****************************************************************************/
  13. typedef LRESULT (CALLBACK *DRIVERPROC)
  14. (DWORD dwDriverID, HDRVR hDriver, UINT wMessage, LPARAM lParam1, LPARAM lParam2);
  15. typedef struct tagDRIVERTABLE
  16. {
  17. WORD fFirstEntry:1;
  18. WORD fBusy:1;
  19. DWORD dwDriverIdentifier;
  20. WORD hModule;
  21. DRIVERPROC lpDriverEntryPoint;
  22. } DRIVERTABLE;
  23. typedef DRIVERTABLE FAR *LPDRIVERTABLE;
  24. LONG FAR PASCAL InternalBroadcastDriverMessage(WORD, WORD, LONG, LONG, WORD);
  25. LONG FAR PASCAL InternalCloseDriver(WORD, LONG, LONG, BOOL);
  26. LONG FAR PASCAL InternalOpenDriver(LPSTR, LPSTR, LONG, BOOL);
  27. LONG FAR PASCAL InternalLoadDriver(LPSTR, LPSTR, LPSTR, WORD, BOOL);
  28. WORD FAR PASCAL InternalFreeDriver(WORD, BOOL);
  29. void FAR PASCAL InternalInstallDriverChain (void);
  30. void FAR PASCAL InternalDriverDisable (void);
  31. void FAR PASCAL InternalDriverEnable (void);
  32. int FAR PASCAL GetDrvrUsage(HANDLE);
  33. HANDLE FAR PASCAL LoadAliasedLibrary (LPSTR, LPSTR, LPSTR, LPSTR, WORD);
  34. void NEAR PASCAL DrvInit(void);
  35. /* Defines for internalbroadcastdrivermessage flags */
  36. #define IBDM_SENDMESSAGE 0x0001
  37. #define IBDM_REVERSE 0x0002
  38. #define IBDM_ONEINSTANCEONLY 0x0004