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.

130 lines
2.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // File: rwdll.h
  4. //
  5. // Contents: Declarations for the reader/writer DLL
  6. //
  7. // Classes: none
  8. //
  9. // History: 31-May-93 alessanm created
  10. //
  11. //----------------------------------------------------------------------------
  12. #ifndef _RWDLL_H_
  13. #define _RWDLL_H_
  14. //////////////////////////////////////////////////////////////////////////////
  15. // Type declaration, common to all the module in the Reader/Writer
  16. //////////////////////////////////////////////////////////////////////////////
  17. #include <iodll.h>
  18. #define DllExport
  19. //[registration]
  20. extern "C"
  21. DllExport
  22. BOOL
  23. APIENTRY
  24. RWGetTypeString(
  25. LPSTR lpszTypeName);
  26. extern "C"
  27. DllExport
  28. BOOL
  29. APIENTRY
  30. RWValidateFileType(
  31. LPCSTR pszFileName);
  32. extern "C"
  33. DllExport
  34. UINT
  35. APIENTRY
  36. RWReadTypeInfo(
  37. LPCSTR lpszFilename,
  38. LPVOID lpBuffer,
  39. UINT* puiSize
  40. );
  41. //[Reading / writing file]
  42. extern "C"
  43. DllExport
  44. DWORD
  45. APIENTRY
  46. RWGetImage(
  47. LPCSTR lpszFilename,
  48. DWORD dwImageOffset,
  49. LPVOID lpBuffer,
  50. DWORD dwSize
  51. );
  52. extern"C"
  53. DllExport
  54. UINT
  55. APIENTRY
  56. RWWriteFile(
  57. LPCSTR lpszSrcFilename,
  58. LPCSTR lpszTgtFilename,
  59. HANDLE hResFileModule,
  60. LPVOID lpBuffer,
  61. UINT uiSize,
  62. HINSTANCE hDllInst,
  63. LPCSTR lpszSymbolPath
  64. );
  65. // [Parsing]
  66. extern "C"
  67. DllExport
  68. UINT
  69. APIENTRY
  70. RWParseImage(
  71. LPCSTR lpszType,
  72. LPVOID lpImageBuf,
  73. DWORD dwImageSize,
  74. LPVOID lpBuffer,
  75. DWORD dwSize
  76. );
  77. extern "C"
  78. DllExport
  79. UINT
  80. APIENTRY
  81. RWParseImageEx(
  82. LPCSTR lpszType,
  83. LPCSTR lpszResId,
  84. LPVOID lpImageBuf,
  85. DWORD dwImageSize,
  86. LPVOID lpBuffer,
  87. DWORD dwSize,
  88. LPCSTR lpRCFilename
  89. );
  90. extern "C"
  91. DllExport
  92. UINT
  93. APIENTRY
  94. RWUpdateImage(
  95. LPCSTR lpszType,
  96. LPVOID lpNewBuf,
  97. DWORD dwNewSize,
  98. LPVOID lpOldImage,
  99. DWORD dwOldImageSize,
  100. LPVOID lpNewImage,
  101. DWORD* pdwNewImageSize
  102. );
  103. extern "C"
  104. DllExport
  105. UINT
  106. APIENTRY
  107. RWUpdateImageEx(
  108. LPCSTR lpszType,
  109. LPVOID lpNewBuf,
  110. DWORD dwNewSize,
  111. LPVOID lpOldImage,
  112. DWORD dwOldImageSize,
  113. LPVOID lpNewImage,
  114. DWORD* pdwNewImageSize,
  115. LPCSTR lpRCFilename
  116. );
  117. #endif // _RWDLL_H_