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.

253 lines
3.8 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997-1999.
  5. //
  6. // File: P R O T O . H
  7. //
  8. // Contents: Local declarations for the Notify object code for the sample filter.
  9. //
  10. // Notes:
  11. //
  12. // Author: kumarp 26-March-98
  13. //
  14. //----------------------------------------------------------------------------
  15. #ifndef _PROTOS_H
  16. #define PROTOS_H
  17. LRESULT
  18. CALLBACK
  19. SampleFilterDialogProc(
  20. HWND hWnd,
  21. UINT uMsg,
  22. WPARAM wParam,
  23. LPARAM lParam
  24. ) ;
  25. UINT
  26. CALLBACK
  27. SampleFilterPropSheetPageProc(
  28. HWND hWnd,
  29. UINT uMsg,
  30. LPPROPSHEETPAGE ppsp
  31. );
  32. HRESULT
  33. HrOpenAdapterParamsKey(
  34. GUID* pguidAdapter,
  35. HKEY* phkeyAdapter
  36. );
  37. ULONG
  38. ReleaseObj(
  39. IUnknown* punk
  40. );
  41. ULONG
  42. AddRefObj (
  43. IUnknown* punk
  44. );
  45. typedef enum _ADD_OR_REMOVE
  46. {
  47. AddMiniport,
  48. RemoveMiniport
  49. } ADD_OR_REMOVE;
  50. HRESULT
  51. HrAddOrRemoveAdapter (
  52. INetCfg* pnc,
  53. PCWSTR pszComponentId,
  54. ADD_OR_REMOVE AddOrRemove,
  55. INetCfgComponent** ppnccMiniport
  56. );
  57. HRESULT
  58. HrInstallAdapter (
  59. INetCfgClassSetup* pSetupClass,
  60. PCWSTR pszComponentId,
  61. INetCfgComponent** ppncc
  62. );
  63. HRESULT
  64. HrDeInstallAdapter (
  65. INetCfgClass* pncClass,
  66. INetCfgClassSetup* pSetupClass,
  67. PCWSTR pszComponentId
  68. );
  69. HRESULT
  70. HrGetLastComponentAndInterface (
  71. INetCfgBindingPath* pNcbPath,
  72. INetCfgComponent** ppncc,
  73. PWSTR* ppszInterfaceName);
  74. //
  75. // Reg.cpp functions begin here
  76. //
  77. HRESULT
  78. HrRegOpenAdapterKey (
  79. IN PCWSTR pszComponentName,
  80. IN BOOL fCreate,
  81. OUT HKEY* phkey);
  82. HRESULT
  83. HrRegOpenAdapterGuid(
  84. IN HKEY phkeyAdapters,
  85. IN PGUID pAdapterGuid,
  86. IN BOOL fCreate,
  87. OUT HKEY *phGuidKey
  88. );
  89. HRESULT
  90. HrRegCreateKeyEx (
  91. IN HKEY hkey,
  92. IN PCWSTR pszSubkey,
  93. IN DWORD dwOptions,
  94. IN REGSAM samDesired,
  95. IN LPSECURITY_ATTRIBUTES lpSecurityAttributes,
  96. OUT PHKEY phkResult,
  97. OUT LPDWORD pdwDisposition);
  98. HRESULT
  99. HrRegOpenKeyEx (
  100. IN HKEY hkey,
  101. IN PCWSTR pszSubkey,
  102. IN REGSAM samDesired,
  103. OUT PHKEY phkResult);
  104. HRESULT
  105. HrRegOpenKeyEx (
  106. IN HKEY hkey,
  107. IN PCWSTR pszSubkey,
  108. IN REGSAM samDesired,
  109. OUT PHKEY phkResult);
  110. HRESULT
  111. HrRegDeleteKeyTree (
  112. IN HKEY hkeyParent,
  113. IN PCWSTR pszRemoveKey);
  114. HRESULT
  115. HrRegOpenAString(
  116. IN CONST WCHAR *pcszStr ,
  117. IN BOOL fCreate,
  118. OUT PHKEY phKey
  119. );
  120. ULONG
  121. CbOfSzAndTermSafe (
  122. IN PCWSTR psz);
  123. HRESULT
  124. HrRegSetSz (
  125. HKEY hkey,
  126. PCWSTR pszValueName,
  127. PCWSTR pszValue
  128. );
  129. HRESULT
  130. HrRegSetValueEx (
  131. IN HKEY hkey,
  132. IN PCWSTR pszValueName,
  133. IN DWORD dwType,
  134. IN const BYTE *pbData,
  135. IN DWORD cbData);
  136. HRESULT
  137. HrRegDeleteValue (
  138. IN HKEY hkey,
  139. IN PCWSTR pszValueName);
  140. HRESULT
  141. HrRegEnumKeyEx (
  142. IN HKEY hkey,
  143. IN DWORD dwIndex,
  144. OUT PWSTR pszSubkeyName,
  145. IN OUT LPDWORD pcchSubkeyName,
  146. OUT PWSTR pszClass,
  147. IN OUT LPDWORD pcchClass,
  148. OUT FILETIME* pftLastWriteTime);
  149. HRESULT
  150. HrRegQueryTypeWithAlloc (
  151. HKEY hkey,
  152. PCWSTR pszValueName,
  153. DWORD dwType,
  154. LPBYTE* ppbValue,
  155. DWORD* pcbValue);
  156. HRESULT
  157. HrRegQueryValueWithAlloc (
  158. IN HKEY hkey,
  159. IN PCWSTR pszValueName,
  160. LPDWORD pdwType,
  161. LPBYTE* ppbBuffer,
  162. LPDWORD pdwSize);
  163. HRESULT
  164. HrRegQueryValueEx (
  165. IN HKEY hkey,
  166. IN PCWSTR pszValueName,
  167. OUT LPDWORD pdwType,
  168. OUT LPBYTE pbData,
  169. OUT LPDWORD pcbData);
  170. HRESULT
  171. HrRegQuerySzWithAlloc (
  172. HKEY hkey,
  173. PCWSTR pszValueName,
  174. PWSTR* pszValue);
  175. HRESULT
  176. HrRegQueryMultiSzWithAlloc (
  177. HKEY hkey,
  178. PCWSTR pszValueName,
  179. PWSTR* pszValue);
  180. HRESULT
  181. HrRegSetSz (
  182. HKEY hkey,
  183. PCWSTR pszValueName,
  184. PCWSTR pszValue
  185. );
  186. #endif