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.

53 lines
2.7 KiB

  1. //------------------------------------------------------------------------
  2. // Admparse.h
  3. //------------------------------------------------------------------------
  4. #define ADM_SAVE 0x00000001
  5. #define ADM_DESTROY 0x00000002
  6. // exported functions from admparse.dll
  7. STDAPI AdmInitA(LPCSTR pcszAdmFile, LPCSTR pcszInfFile, BSTR bstrNamespace,
  8. LPDWORD lpdwAdm, LPVOID* pData);
  9. STDAPI AdmInitW(LPCWSTR pcwszAdmFile, LPCWSTR pcwszInfFile, BSTR bstrNamespace,
  10. LPDWORD lpdwAdm, LPVOID* pData);
  11. STDAPI AdmFinishedA(DWORD hAdm, LPCSTR pcszInfFile, LPVOID pPartData);
  12. STDAPI AdmFinishedW(DWORD hAdm, LPCWSTR pcwszInfFile, LPVOID pPartData);
  13. STDAPI CreateAdmUiA(DWORD hAdm, HWND hParent, int x, int y, int width, int height,
  14. DWORD dwStyle, DWORD dwExStyle, LPCSTR pcszCategory, HKEY hKeyClass,
  15. HWND *phWnd, LPVOID pPartData, LPVOID* pCategoryData, BOOL fRSoPMode);
  16. STDAPI CreateAdmUiW(DWORD hAdm, HWND hParent, int x, int y, int width, int height,
  17. DWORD dwStyle, DWORD dwExStyle, LPCWSTR pcwszCategory, HKEY hKeyClass,
  18. HWND *phWnd, LPVOID pPartData, LPVOID* pCategoryData, BOOL fRSoPMode);
  19. STDAPI GetAdmCategoriesA(DWORD hAdm, LPSTR pszCategories, int cchLength, int *nBytes);
  20. STDAPI GetAdmCategoriesW(DWORD hAdm, LPWSTR pwszCategories, int cchLength, int *nBytes);
  21. STDAPI CheckDuplicateKeysA(DWORD hAdm, DWORD hCompareAdm, LPCSTR pcszLogFile, BOOL bClearFile);
  22. STDAPI CheckDuplicateKeysW(DWORD hAdm, DWORD hCompareAdm, LPCWSTR pcwszLogFile, BOOL bClearFile);
  23. STDAPI AdmResetA(DWORD hAdm, LPCSTR pcszInfFile, LPVOID pPartData, LPVOID pCategoryData);
  24. STDAPI AdmResetW(DWORD hAdm, LPCWSTR pcwszInfFile, LPVOID pPartData, LPVOID pCategoryData);
  25. STDAPI AdmClose(DWORD hAdm, LPVOID* pPartData, BOOL fClear);
  26. BOOL WINAPI IsAdmDirty();
  27. VOID WINAPI ResetAdmDirtyFlag();
  28. STDAPI AdmSaveData(DWORD hAdm, LPVOID pPartData, LPVOID pCategoryData, DWORD dwFlags);
  29. STDAPI GetFontInfoA(LPSTR pszFontName, LPINT pnFontSize);
  30. STDAPI GetFontInfoW(LPWSTR pwszFontName, LPINT pnFontSize);
  31. #ifdef UNICODE
  32. #define AdmInit AdmInitW
  33. #define AdmFinished AdmFinishedW
  34. #define CreateAdmUi CreateAdmUiW
  35. #define GetAdmCategories GetAdmCategoriesW
  36. #define CheckDuplicateKeys CheckDuplicateKeysW
  37. #define AdmReset AdmResetW
  38. #define GetFontInfo GetFontInfoW
  39. #else
  40. #define AdmInit AdmInitA
  41. #define AdmFinished AdmFinishedA
  42. #define CreateAdmUi CreateAdmUiA
  43. #define GetAdmCategories GetAdmCategoriesA
  44. #define CheckDuplicateKeys CheckDuplicateKeysA
  45. #define AdmReset AdmResetA
  46. #define GetFontInfo GetFontInfoA
  47. #endif