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.

92 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. winres.h
  5. Abstract:
  6. This file contain structure and function prototypes required for
  7. obtaining resource data from windows files
  8. Environment:
  9. Windows NT Unidrv driver
  10. Revision History:
  11. dd-mm-yy -author-
  12. description
  13. --*/
  14. #ifndef _WINRES_H_
  15. #define _WINRES_H_
  16. //
  17. // Maximum number of resources DLLs per minidriver.
  18. //
  19. #define MAX_RESOURCE 0x80
  20. #define RCID_DMPAPER_SYSTEM_NAME 0x7fffffff
  21. typedef struct _WINRESDATA
  22. {
  23. HANDLE hResDLLModule; // Module handle Root resource DLL
  24. DWORD cLoadedEntries; // Number of Resource Dlls loaded
  25. HANDLE ahModule[MAX_RESOURCE]; // Module handle array for other resources
  26. WCHAR wchDriverDir[MAX_PATH]; // Driver Directory
  27. PWSTR pwstrLastBackSlash; // Pointer to last back slash in Driver dir.
  28. PUIINFO pUIInfo; // Pointer to UI Info
  29. } WINRESDATA, *PWINRESDATA;
  30. //
  31. // The structure passed to, and filled in by, GetWinRes(). Contains
  32. // information about a specific resource type & name.
  33. //
  34. typedef struct
  35. {
  36. VOID *pvResData; // Address of data
  37. INT iResLen; // Resource size
  38. } RES_ELEM;
  39. #define WINRT_STRING 6 // Minidriver string resource ID
  40. BOOL
  41. BInitWinResData(
  42. WINRESDATA *pWinResData,
  43. PWSTR pwstrDriverName,
  44. PUIINFO pUIInfo
  45. );
  46. HANDLE
  47. HGetModuleHandle(
  48. WINRESDATA *pWinResData,
  49. PQUALNAMEEX pQualifiedID
  50. );
  51. BOOL
  52. BGetWinRes(
  53. WINRESDATA *pWinResData,
  54. PQUALNAMEEX pQualifiedID,
  55. INT iType,
  56. RES_ELEM *pRInfo
  57. );
  58. VOID
  59. VWinResClose(
  60. WINRESDATA *pWinResData
  61. );
  62. INT
  63. ILoadStringW (
  64. WINRESDATA *pWinResData,
  65. INT iID,
  66. PWSTR wstrBuf,
  67. WORD wBuf
  68. );
  69. #endif // ! _WINRES_H_