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.

435 lines
13 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. AppSpecific.cpp
  5. Abstract:
  6. Notes:
  7. History:
  8. 10/28/2000 markder Created
  9. --*/
  10. #include "precomp.h"
  11. #include "ShimHookMacro.h"
  12. DECLARE_SHIM(3DFrogFrenzy)
  13. DECLARE_SHIM(Acrobat5)
  14. DECLARE_SHIM(AdobeLiveMotion)
  15. DECLARE_SHIM(AfterDark)
  16. DECLARE_SHIM(AliensVsPredator)
  17. DECLARE_SHIM(AOLFindBundledInstaller)
  18. DECLARE_SHIM(AOLRasSetEntryProperties)
  19. DECLARE_SHIM(AOLSystemInfo)
  20. DECLARE_SHIM(Attune)
  21. DECLARE_SHIM(AutoCad)
  22. DECLARE_SHIM(AutoDeskWorld2)
  23. DECLARE_SHIM(BaanERP5)
  24. DECLARE_SHIM(BaanERP5c)
  25. DECLARE_SHIM(BaanIV)
  26. DECLARE_SHIM(BackOffice45Suite)
  27. DECLARE_SHIM(BackupExec)
  28. DECLARE_SHIM(BaseBall2000)
  29. DECLARE_SHIM(Battleship)
  30. DECLARE_SHIM(BattleZone)
  31. DECLARE_SHIM(BeyondAtlantis)
  32. DECLARE_SHIM(BigActionConstruction)
  33. DECLARE_SHIM(BigGameHunter3)
  34. DECLARE_SHIM(BizPlanBuilder)
  35. DECLARE_SHIM(BoeingFix)
  36. DECLARE_SHIM(Britannica2001)
  37. DECLARE_SHIM(Canvas6)
  38. DECLARE_SHIM(CanvasCheckedButtons)
  39. DECLARE_SHIM(Casper)
  40. DECLARE_SHIM(ChemOffice)
  41. DECLARE_SHIM(Chollian2000)
  42. DECLARE_SHIM(Chollian2000Plus)
  43. DECLARE_SHIM(ClueFinders3rdGrade)
  44. DECLARE_SHIM(CoffeeCupHTMLEditor)
  45. DECLARE_SHIM(Commandos)
  46. DECLARE_SHIM(Cossacks)
  47. DECLARE_SHIM(ComptonsBible)
  48. DECLARE_SHIM(CorelAppsRegistration)
  49. DECLARE_SHIM(CorelDraw9JPN)
  50. DECLARE_SHIM(CorelSiteBuilder)
  51. DECLARE_SHIM(CreateResumesQuickandEasy)
  52. DECLARE_SHIM(CreativeOnScreenDisplay)
  53. DECLARE_SHIM(CrystalWebPageServer)
  54. DECLARE_SHIM(CUSeeMe4)
  55. DECLARE_SHIM(Descent2)
  56. DECLARE_SHIM(DinosaurActivityCenter)
  57. DECLARE_SHIM(DirtTrackRacing)
  58. DECLARE_SHIM(DominantSpecies)
  59. DECLARE_SHIM(DongFangKuaiChe3000Setup)
  60. DECLARE_SHIM(DongFangYingDu)
  61. DECLARE_SHIM(DrEye)
  62. DECLARE_SHIM(EA3dSetup)
  63. DECLARE_SHIM(EasyCDCreator4)
  64. DECLARE_SHIM(EasyCDCreator5)
  65. DECLARE_SHIM(EncartaEncyclopediaDeluxe2K)
  66. DECLARE_SHIM(EncompassMonitor)
  67. DECLARE_SHIM(EuropeanAirWar)
  68. DECLARE_SHIM(ExchangeServerSetup)
  69. DECLARE_SHIM(F18Carrier)
  70. DECLARE_SHIM(FailSocket)
  71. DECLARE_SHIM(FireFighters)
  72. DECLARE_SHIM(Force21)
  73. DECLARE_SHIM(Gangsters)
  74. DECLARE_SHIM(Gizmos)
  75. DECLARE_SHIM(HeroSDVD)
  76. DECLARE_SHIM(HotFaxMessageCenter4)
  77. DECLARE_SHIM(HoyleGames)
  78. DECLARE_SHIM(HPTourGuide)
  79. DECLARE_SHIM(HTMLEditor8587)
  80. DECLARE_SHIM(IConfig)
  81. DECLARE_SHIM(IE5DOMSetup)
  82. DECLARE_SHIM(ImageCast)
  83. DECLARE_SHIM(InstallShield6)
  84. DECLARE_SHIM(InstantCDDVD)
  85. DECLARE_SHIM(IntelVideoPhone)
  86. DECLARE_SHIM(ISA)
  87. DECLARE_SHIM(ISA2)
  88. DECLARE_SHIM(ISA2000SP1)
  89. DECLARE_SHIM(ISpeed)
  90. DECLARE_SHIM(JavaVM)
  91. DECLARE_SHIM(JavaVM2)
  92. DECLARE_SHIM(JetFighter4)
  93. DECLARE_SHIM(Keisoku7)
  94. DECLARE_SHIM(KingsQuestMask)
  95. DECLARE_SHIM(KOEISecurityCheck)
  96. DECLARE_SHIM(LHVoiceXPressPlus)
  97. DECLARE_SHIM(LinksExtreme)
  98. DECLARE_SHIM(LotusOrganizer5)
  99. DECLARE_SHIM(MahjonggMadness)
  100. DECLARE_SHIM(MastersOfOrion2)
  101. DECLARE_SHIM(MathBlaster9_12)
  102. DECLARE_SHIM(MaxPayne)
  103. DECLARE_SHIM(MECCommander)
  104. DECLARE_SHIM(MechWarrior2)
  105. DECLARE_SHIM(MidTownMadness2)
  106. DECLARE_SHIM(Millionaire)
  107. DECLARE_SHIM(MindSpring4)
  108. DECLARE_SHIM(ModemWizard)
  109. DECLARE_SHIM(Money2001)
  110. DECLARE_SHIM(Money2002)
  111. DECLARE_SHIM(MSAccess2000IME)
  112. DECLARE_SHIM(MSDevDisabledButtons)
  113. DECLARE_SHIM(MSWorks6)
  114. DECLARE_SHIM(Mutek)
  115. DECLARE_SHIM(MyPhotoCenter2)
  116. DECLARE_SHIM(NBALive)
  117. DECLARE_SHIM(NetBackup45)
  118. DECLARE_SHIM(NetObjectsFusion5)
  119. DECLARE_SHIM(NetManageViewNow)
  120. DECLARE_SHIM(NetZip)
  121. DECLARE_SHIM(NewShenDiaoXiaLv)
  122. DECLARE_SHIM(NFLBlitz)
  123. DECLARE_SHIM(NFLFever2000)
  124. DECLARE_SHIM(NHL2001)
  125. DECLARE_SHIM(NikonView)
  126. DECLARE_SHIM(Office9ComplexScript)
  127. DECLARE_SHIM(OfficeTS)
  128. DECLARE_SHIM(Omikron)
  129. DECLARE_SHIM(OmniPage)
  130. DECLARE_SHIM(OmniPagePro11Uninstall)
  131. DECLARE_SHIM(OperationsManager)
  132. DECLARE_SHIM(Outlook2000)
  133. DECLARE_SHIM(Outlook97)
  134. DECLARE_SHIM(Outlook98Wizard)
  135. DECLARE_SHIM(OverlayPro)
  136. DECLARE_SHIM(PanzerCommander)
  137. DECLARE_SHIM(Patrol)
  138. DECLARE_SHIM(Petz)
  139. DECLARE_SHIM(PickyEater)
  140. DECLARE_SHIM(Pirch98)
  141. DECLARE_SHIM(PlaneCrazy)
  142. DECLARE_SHIM(PostIt2)
  143. DECLARE_SHIM(PowerBuilder)
  144. DECLARE_SHIM(Ppo3svrScr)
  145. DECLARE_SHIM(PrintMaster4)
  146. DECLARE_SHIM(ProAtlas2000)
  147. DECLARE_SHIM(QuickBooks8)
  148. DECLARE_SHIM(Quicken2000)
  149. DECLARE_SHIM(Quicken2001)
  150. DECLARE_SHIM(QuickTime5)
  151. DECLARE_SHIM(RCenter)
  152. DECLARE_SHIM(Resonate)
  153. DECLARE_SHIM(ResumeWriter3)
  154. DECLARE_SHIM(ReturnToKrondor)
  155. DECLARE_SHIM(RiskII)
  156. DECLARE_SHIM(Riven)
  157. DECLARE_SHIM(RumbaOffice)
  158. DECLARE_SHIM(SafeDisc)
  159. DECLARE_SHIM(SchoolHouseRockMath)
  160. DECLARE_SHIM(SevenKingdoms)
  161. DECLARE_SHIM(Settlers3)
  162. DECLARE_SHIM(ShockwaveLocation)
  163. DECLARE_SHIM(SierraCartRacing)
  164. DECLARE_SHIM(Simply3D)
  165. DECLARE_SHIM(SirenJukebox2)
  166. DECLARE_SHIM(SMSDeadlock)
  167. DECLARE_SHIM(SolidWorks99Plus)
  168. DECLARE_SHIM(SpecOps2)
  169. DECLARE_SHIM(SpeechViewer3)
  170. DECLARE_SHIM(StoneAge)
  171. DECLARE_SHIM(Suda2000)
  172. DECLARE_SHIM(Summoner)
  173. DECLARE_SHIM(SuperBike)
  174. DECLARE_SHIM(SuperChix76)
  175. DECLARE_SHIM(SysAdmiral)
  176. DECLARE_SHIM(TaskbarAndStartMenuProperty)
  177. DECLARE_SHIM(ThreeDJungleTrain)
  178. DECLARE_SHIM(TimeSlips)
  179. DECLARE_SHIM(TonkaConstruction)
  180. DECLARE_SHIM(TreasureCove)
  181. DECLARE_SHIM(TurkeyHunter)
  182. DECLARE_SHIM(TwinssensOdyssey)
  183. DECLARE_SHIM(Ultima9)
  184. DECLARE_SHIM(UltimateSoccerManager)
  185. DECLARE_SHIM(UltraWinCleaner2002)
  186. DECLARE_SHIM(UnInstallShield)
  187. DECLARE_SHIM(UrbanChaos)
  188. DECLARE_SHIM(USNF97)
  189. DECLARE_SHIM(ViaVoice8J)
  190. DECLARE_SHIM(ViperRacing)
  191. DECLARE_SHIM(VJEDelta)
  192. DECLARE_SHIM(VJEDeltaSetup)
  193. DECLARE_SHIM(VSAnalyzerServerSetup)
  194. DECLARE_SHIM(WebPage6)
  195. DECLARE_SHIM(WinFaxPro9)
  196. DECLARE_SHIM(WinStone99)
  197. DECLARE_SHIM(WordPerfect8)
  198. DECLARE_SHIM(WordPerfect9_1)
  199. DECLARE_SHIM(WordPerfect9_2)
  200. DECLARE_SHIM(WordPerfect9_3)
  201. DECLARE_SHIM(WordPerfectPresentation10)
  202. DECLARE_SHIM(Works99)
  203. DECLARE_SHIM(WorksSuite2001)
  204. DECLARE_SHIM(Worms2)
  205. DECLARE_SHIM(WPS2000)
  206. DECLARE_SHIM(ZenWorks)
  207. VOID MULTISHIM_NOTIFY_FUNCTION()(DWORD fdwReason)
  208. {
  209. switch (fdwReason)
  210. {
  211. case DLL_PROCESS_ATTACH:
  212. DPF("AcSpecfc", eDbgLevelSpew, "Application Specific Shims initialized.");
  213. break;
  214. case DLL_PROCESS_DETACH:
  215. DPF("AcSpecfc", eDbgLevelSpew, "Application Specific Shims uninitialized.");
  216. break;
  217. default:
  218. break;
  219. }
  220. }
  221. MULTISHIM_BEGIN()
  222. MULTISHIM_ENTRY(3DFrogFrenzy)
  223. MULTISHIM_ENTRY(Acrobat5)
  224. MULTISHIM_ENTRY(AdobeLiveMotion)
  225. MULTISHIM_ENTRY(AfterDark)
  226. MULTISHIM_ENTRY(AliensVsPredator)
  227. MULTISHIM_ENTRY(AOLFindBundledInstaller)
  228. MULTISHIM_ENTRY(AOLRasSetEntryProperties)
  229. MULTISHIM_ENTRY(AOLSystemInfo)
  230. MULTISHIM_ENTRY(Attune)
  231. MULTISHIM_ENTRY(AutoCad)
  232. MULTISHIM_ENTRY(AutoDeskWorld2)
  233. MULTISHIM_ENTRY(BaanERP5)
  234. MULTISHIM_ENTRY(BaanERP5c)
  235. MULTISHIM_ENTRY(BaanIV)
  236. MULTISHIM_ENTRY(BackOffice45Suite)
  237. MULTISHIM_ENTRY(BackupExec)
  238. MULTISHIM_ENTRY(BaseBall2000)
  239. MULTISHIM_ENTRY(Battleship)
  240. MULTISHIM_ENTRY(BattleZone)
  241. MULTISHIM_ENTRY(BeyondAtlantis)
  242. MULTISHIM_ENTRY(BigActionConstruction)
  243. MULTISHIM_ENTRY(BigGameHunter3)
  244. MULTISHIM_ENTRY(BizPlanBuilder)
  245. MULTISHIM_ENTRY(BoeingFix)
  246. MULTISHIM_ENTRY(Britannica2001)
  247. MULTISHIM_ENTRY(Canvas6)
  248. MULTISHIM_ENTRY(CanvasCheckedButtons)
  249. MULTISHIM_ENTRY(Casper)
  250. MULTISHIM_ENTRY(ChemOffice)
  251. MULTISHIM_ENTRY(ClueFinders3rdGrade)
  252. MULTISHIM_ENTRY(Chollian2000)
  253. MULTISHIM_ENTRY(Chollian2000Plus)
  254. MULTISHIM_ENTRY(CoffeeCupHTMLEditor)
  255. MULTISHIM_ENTRY(Commandos)
  256. MULTISHIM_ENTRY(Cossacks)
  257. MULTISHIM_ENTRY(ComptonsBible)
  258. MULTISHIM_ENTRY(CorelAppsRegistration)
  259. MULTISHIM_ENTRY(CorelDraw9JPN)
  260. MULTISHIM_ENTRY(CorelSiteBuilder)
  261. MULTISHIM_ENTRY(CreateResumesQuickandEasy)
  262. MULTISHIM_ENTRY(CreativeOnScreenDisplay)
  263. MULTISHIM_ENTRY(CrystalWebPageServer)
  264. MULTISHIM_ENTRY(CUSeeMe4)
  265. MULTISHIM_ENTRY(Descent2)
  266. MULTISHIM_ENTRY(DinosaurActivityCenter)
  267. MULTISHIM_ENTRY(DirtTrackRacing)
  268. MULTISHIM_ENTRY(DominantSpecies)
  269. MULTISHIM_ENTRY(DongFangKuaiChe3000Setup)
  270. MULTISHIM_ENTRY(DongFangYingDu)
  271. MULTISHIM_ENTRY(DrEye)
  272. MULTISHIM_ENTRY(EA3dSetup)
  273. MULTISHIM_ENTRY(EasyCDCreator4)
  274. MULTISHIM_ENTRY(EasyCDCreator5)
  275. MULTISHIM_ENTRY(EncartaEncyclopediaDeluxe2K)
  276. MULTISHIM_ENTRY(EncompassMonitor)
  277. MULTISHIM_ENTRY(EuropeanAirWar)
  278. MULTISHIM_ENTRY(ExchangeServerSetup)
  279. MULTISHIM_ENTRY(F18Carrier)
  280. MULTISHIM_ENTRY(FailSocket)
  281. MULTISHIM_ENTRY(FireFighters)
  282. MULTISHIM_ENTRY(Force21)
  283. MULTISHIM_ENTRY(Gangsters)
  284. MULTISHIM_ENTRY(Gizmos)
  285. MULTISHIM_ENTRY(HeroSDVD)
  286. MULTISHIM_ENTRY(HotFaxMessageCenter4)
  287. MULTISHIM_ENTRY(HoyleGames)
  288. MULTISHIM_ENTRY(HPTourGuide)
  289. MULTISHIM_ENTRY(HTMLEditor8587)
  290. MULTISHIM_ENTRY(IConfig)
  291. MULTISHIM_ENTRY(IE5DOMSetup)
  292. MULTISHIM_ENTRY(ImageCast)
  293. MULTISHIM_ENTRY(InstallShield6)
  294. MULTISHIM_ENTRY(InstantCDDVD)
  295. MULTISHIM_ENTRY(IntelVideoPhone)
  296. MULTISHIM_ENTRY(ISA)
  297. MULTISHIM_ENTRY(ISA2)
  298. MULTISHIM_ENTRY(ISA2000SP1)
  299. MULTISHIM_ENTRY(ISpeed)
  300. MULTISHIM_ENTRY(JavaVM)
  301. MULTISHIM_ENTRY(JavaVM2)
  302. MULTISHIM_ENTRY(JetFighter4)
  303. MULTISHIM_ENTRY(Keisoku7)
  304. MULTISHIM_ENTRY(KingsQuestMask)
  305. MULTISHIM_ENTRY(KOEISecurityCheck)
  306. MULTISHIM_ENTRY(LHVoiceXPressPlus)
  307. MULTISHIM_ENTRY(LinksExtreme)
  308. MULTISHIM_ENTRY(LotusOrganizer5)
  309. MULTISHIM_ENTRY(MahjonggMadness)
  310. MULTISHIM_ENTRY(MastersOfOrion2)
  311. MULTISHIM_ENTRY(MathBlaster9_12)
  312. MULTISHIM_ENTRY(MaxPayne)
  313. MULTISHIM_ENTRY(MECCommander)
  314. MULTISHIM_ENTRY(MechWarrior2)
  315. MULTISHIM_ENTRY(MidTownMadness2)
  316. MULTISHIM_ENTRY(Millionaire)
  317. MULTISHIM_ENTRY(MindSpring4)
  318. MULTISHIM_ENTRY(ModemWizard)
  319. MULTISHIM_ENTRY(Money2001)
  320. MULTISHIM_ENTRY(Money2002)
  321. MULTISHIM_ENTRY(MSAccess2000IME)
  322. MULTISHIM_ENTRY(MSDevDisabledButtons)
  323. MULTISHIM_ENTRY(MSWorks6)
  324. MULTISHIM_ENTRY(Mutek)
  325. MULTISHIM_ENTRY(MyPhotoCenter2)
  326. MULTISHIM_ENTRY(NBALive)
  327. MULTISHIM_ENTRY(NetBackup45)
  328. MULTISHIM_ENTRY(NetObjectsFusion5)
  329. MULTISHIM_ENTRY(NetManageViewNow)
  330. MULTISHIM_ENTRY(NetZip)
  331. MULTISHIM_ENTRY(NewShenDiaoXiaLv)
  332. MULTISHIM_ENTRY(NFLBlitz)
  333. MULTISHIM_ENTRY(NFLFever2000)
  334. MULTISHIM_ENTRY(NHL2001)
  335. MULTISHIM_ENTRY(NikonView)
  336. MULTISHIM_ENTRY(Office9ComplexScript)
  337. MULTISHIM_ENTRY(OfficeTS)
  338. MULTISHIM_ENTRY(Omikron)
  339. MULTISHIM_ENTRY(OmniPage)
  340. MULTISHIM_ENTRY(OmniPagePro11Uninstall)
  341. MULTISHIM_ENTRY(OperationsManager)
  342. MULTISHIM_ENTRY(Outlook2000)
  343. MULTISHIM_ENTRY(Outlook97)
  344. MULTISHIM_ENTRY(Outlook98Wizard)
  345. MULTISHIM_ENTRY(OverlayPro)
  346. MULTISHIM_ENTRY(PanzerCommander)
  347. MULTISHIM_ENTRY(Patrol)
  348. MULTISHIM_ENTRY(Petz)
  349. MULTISHIM_ENTRY(PickyEater)
  350. MULTISHIM_ENTRY(Pirch98)
  351. MULTISHIM_ENTRY(PlaneCrazy)
  352. MULTISHIM_ENTRY(PowerBuilder)
  353. MULTISHIM_ENTRY(Ppo3svrScr)
  354. MULTISHIM_ENTRY(PrintMaster4)
  355. MULTISHIM_ENTRY(ProAtlas2000)
  356. MULTISHIM_ENTRY(PostIt2)
  357. MULTISHIM_ENTRY(QuickBooks8)
  358. MULTISHIM_ENTRY(Quicken2000)
  359. MULTISHIM_ENTRY(Quicken2001)
  360. MULTISHIM_ENTRY(QuickTime5)
  361. MULTISHIM_ENTRY(RCenter)
  362. MULTISHIM_ENTRY(Resonate)
  363. MULTISHIM_ENTRY(ResumeWriter3)
  364. MULTISHIM_ENTRY(ReturnToKrondor)
  365. MULTISHIM_ENTRY(RiskII)
  366. MULTISHIM_ENTRY(Riven)
  367. MULTISHIM_ENTRY(RumbaOffice)
  368. MULTISHIM_ENTRY(SafeDisc)
  369. MULTISHIM_ENTRY(SchoolHouseRockMath)
  370. MULTISHIM_ENTRY(Settlers3)
  371. MULTISHIM_ENTRY(SevenKingdoms)
  372. MULTISHIM_ENTRY(ShockwaveLocation)
  373. MULTISHIM_ENTRY(SierraCartRacing)
  374. MULTISHIM_ENTRY(Simply3D)
  375. MULTISHIM_ENTRY(SirenJukebox2)
  376. MULTISHIM_ENTRY(SMSDeadlock)
  377. MULTISHIM_ENTRY(SolidWorks99Plus)
  378. MULTISHIM_ENTRY(SpecOps2)
  379. MULTISHIM_ENTRY(SpeechViewer3)
  380. MULTISHIM_ENTRY(StoneAge)
  381. MULTISHIM_ENTRY(Suda2000)
  382. MULTISHIM_ENTRY(Summoner)
  383. MULTISHIM_ENTRY(SuperBike)
  384. MULTISHIM_ENTRY(SuperChix76)
  385. MULTISHIM_ENTRY(SysAdmiral)
  386. MULTISHIM_ENTRY(TaskbarAndStartMenuProperty)
  387. MULTISHIM_ENTRY(ThreeDJungleTrain)
  388. MULTISHIM_ENTRY(TimeSlips)
  389. MULTISHIM_ENTRY(TonkaConstruction)
  390. MULTISHIM_ENTRY(TreasureCove)
  391. MULTISHIM_ENTRY(TurkeyHunter)
  392. MULTISHIM_ENTRY(TwinssensOdyssey)
  393. MULTISHIM_ENTRY(Ultima9)
  394. MULTISHIM_ENTRY(UltimateSoccerManager)
  395. MULTISHIM_ENTRY(UltraWinCleaner2002)
  396. MULTISHIM_ENTRY(UnInstallShield)
  397. MULTISHIM_ENTRY(UrbanChaos)
  398. MULTISHIM_ENTRY(USNF97)
  399. MULTISHIM_ENTRY(ViaVoice8J)
  400. MULTISHIM_ENTRY(ViperRacing)
  401. MULTISHIM_ENTRY(VJEDelta)
  402. MULTISHIM_ENTRY(VJEDeltaSetup)
  403. MULTISHIM_ENTRY(VSAnalyzerServerSetup)
  404. MULTISHIM_ENTRY(WebPage6)
  405. MULTISHIM_ENTRY(WinFaxPro9)
  406. MULTISHIM_ENTRY(WinStone99)
  407. MULTISHIM_ENTRY(WordPerfect8)
  408. MULTISHIM_ENTRY(WordPerfect9_1)
  409. MULTISHIM_ENTRY(WordPerfect9_2)
  410. MULTISHIM_ENTRY(WordPerfect9_3)
  411. MULTISHIM_ENTRY(WordPerfectPresentation10)
  412. MULTISHIM_ENTRY(Works99)
  413. MULTISHIM_ENTRY(WorksSuite2001)
  414. MULTISHIM_ENTRY(Worms2)
  415. MULTISHIM_ENTRY(WPS2000)
  416. MULTISHIM_ENTRY(ZenWorks)
  417. CALL_MULTISHIM_NOTIFY_FUNCTION()
  418. MULTISHIM_END()