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.

112 lines
4.3 KiB

  1. //
  2. // APITHK.H
  3. //
  4. #ifndef _APITHK_H_
  5. #define _APITHK_H_
  6. STDAPI_(BOOL) NT5_CreateAndWaitForProcess(LPTSTR pszExeName);
  7. // Darwin API's
  8. STDAPI_(UINT) MSI_MsiEnumProducts(DWORD iProductIndex, LPTSTR lpProductBuf);
  9. STDAPI_(UINT) MSI_MsiGetProductInfo(LPCTSTR szProduct, LPCTSTR szAttribute, LPTSTR lpValueBuf, DWORD *pcchValueBuf);
  10. STDAPI_(UINT) MSI_MsiConfigureProduct(LPCTSTR szProduct, int iInstallLevel, INSTALLSTATE eInstallState);
  11. STDAPI_(INSTALLUILEVEL) MSI_MsiSetInternalUI(INSTALLUILEVEL dwUILevel, HWND * phwnd);
  12. STDAPI_(UINT) MSI_MsiReinstallProduct(LPCTSTR szProduct, DWORD szReinstallMode);
  13. STDAPI_(UINT) MSI_MsiOpenPackage(LPCTSTR szPackagePath, MSIHANDLE *hProduct);
  14. STDAPI_(UINT) MSI_MsiEnumFeatures(LPCTSTR szProduct, DWORD iFeatureIndex, LPTSTR lpFeatureBuf, LPTSTR lpParentBuf);
  15. STDAPI_(INSTALLSTATE) MSI_MsiQueryProductState(LPCTSTR szProductID);
  16. STDAPI_(INSTALLSTATE) MSI_MsiQueryFeatureState(LPCTSTR szProduct, LPCTSTR szFeature);
  17. // declared in msiquery.h
  18. STDAPI_(UINT) MSI_MsiDoAction(MSIHANDLE hInstall, LPCTSTR szAction);
  19. STDAPI_(UINT) MSI_MsiCloseHandle(MSIHANDLE hAny);
  20. STDAPI_(UINT) MSI_MsiSetFeatureState(MSIHANDLE hInstall, LPCTSTR szFeature, INSTALLSTATE iState);
  21. STDAPI_(UINT) MSI_MsiGetFeatureCost(MSIHANDLE hInstall, LPCTSTR szFeature, MSICOSTTREE iCostTree, INSTALLSTATE iState, INT *piCost);
  22. // Appmgmts APIs
  23. STDAPI NT5_ReleaseAppCategoryInfoList(APPCATEGORYINFOLIST *pAppCategoryList);
  24. // Advapi APIs
  25. STDAPI_(DWORD) NT5_InstallApplication(PINSTALLDATA pInstallInfo);
  26. STDAPI_(DWORD) NT5_UninstallApplication(WCHAR * ProductCode, DWORD dwStatus);
  27. STDAPI_(DWORD) NT5_GetApplicationState(WCHAR * ProductCode, APPSTATE * pAppState);
  28. STDAPI_(DWORD) NT5_CommandLineFromMsiDescriptor(WCHAR * Descriptor, WCHAR * CommandLine, DWORD * CommandLineLength);
  29. STDAPI_(DWORD) NT5_GetManagedApplications(GUID * pCategory, DWORD dwQueryFlags, DWORD dwInfoLevel, LPDWORD pdwApps, PMANAGEDAPPLICATION* prgManagedApps);
  30. STDAPI_(DWORD) NT5_GetManagedApplicationCategories(DWORD dwReserved, APPCATEGORYINFOLIST *pAppCategoryList);
  31. // Kernel APIs
  32. STDAPI_(DWORD) NT5_GetLongPathName(LPCTSTR pszShortPath, LPTSTR pszLongBuf, DWORD cchBuf);
  33. STDAPI_(ULONGLONG) NT5_VerSetConditionMask(ULONGLONG ConditionMask, DWORD TypeMask, BYTE Condition);
  34. // User32 APIs
  35. STDAPI_(BOOL) NT5_AllowSetForegroundWindow( DWORD dwProcessID );
  36. // NetApi32
  37. STDAPI_(NET_API_STATUS) NT5_NetGetJoinInformation(LPCWSTR lpServer, LPWSTR *lpNameBuffer, PNETSETUP_JOIN_STATUS BufferType);
  38. STDAPI_(NET_API_STATUS) NT5_NetApiBufferFree(LPVOID lpBuffer);
  39. #define AllowSetForegroundWindow NT5_AllowSetForegroundWindow
  40. #define ReleaseAppCategoryInfoList NT5_ReleaseAppCategoryInfoList
  41. #undef MsiEnumProducts
  42. #define MsiEnumProducts MSI_MsiEnumProducts
  43. #undef MsiGetProductInfo
  44. #define MsiGetProductInfo MSI_MsiGetProductInfo
  45. #undef MsiSetInternalUI
  46. #define MsiSetInternalUI MSI_MsiSetInternalUI
  47. #undef MsiConfigureProduct
  48. #define MsiConfigureProduct MSI_MsiConfigureProduct
  49. #undef MsiReinstallProduct
  50. #define MsiReinstallProduct MSI_MsiReinstallProduct
  51. #undef MsiQueryProductState
  52. #define MsiQueryProductState MSI_MsiQueryProductState
  53. #undef MsiQueryFeatureState
  54. #define MsiQueryFeatureState MSI_MsiQueryFeatureState
  55. #undef MsiOpenPackage
  56. #define MsiOpenPackage MSI_MsiOpenPackage
  57. #undef MsiEnumFeatures
  58. #define MsiEnumFeatures MSI_MsiEnumFeatures
  59. #undef MsiCloseHandle
  60. #define MsiCloseHandle MSI_MsiCloseHandle
  61. #undef MsiGetFeatureCost
  62. #define MsiGetFeatureCost MSI_MsiGetFeatureCost
  63. #undef MsiDoAction
  64. #define MsiDoAction MSI_MsiDoAction
  65. #undef MsiSetFeatureState
  66. #define MsiSetFeatureState MSI_MsiSetFeatureState
  67. #undef GetLongPathName
  68. #define GetLongPathName NT5_GetLongPathName
  69. #define VerSetConditionMask NT5_VerSetConditionMask
  70. #define InstallApplication NT5_InstallApplication
  71. #define UninstallApplication NT5_UninstallApplication
  72. #define GetApplicationState NT5_GetApplicationState
  73. #define CommandLineFromMsiDescriptor NT5_CommandLineFromMsiDescriptor
  74. #define GetManagedApplications NT5_GetManagedApplications
  75. #define GetManagedApplicationCategories NT5_GetManagedApplicationCategories
  76. #define NetGetJoinInformation NT5_NetGetJoinInformation
  77. #define NetApiBufferFree NT5_NetApiBufferFree
  78. #endif // _APITHK_H_