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.

1642 lines
28 KiB

  1. __foldwin32sstuff __foldwin32sstuff;
  2. foldstyleinitialization = true;
  3. /*
  4. * USER thunks for Win32s
  5. */
  6. /*
  7. * Open issues:
  8. *
  9. * cleanup of long-term callbacks
  10. * ANSI/Unicode translation
  11. * resource template conversion
  12. * htask definition?
  13. * COLOR_SHADOW
  14. * input model ramifications?
  15. * VOID->BOOL return code conversion (always returns TRUE)
  16. */
  17. enablemapdirect3216 = true;
  18. flatthunks = true;
  19. #include "types.thk"
  20. #include "usrtypes.thk"
  21. #include "usrftype.thk"
  22. HUSER LoadAccelerators(HINSTANCE hInstance, LPSTR) =
  23. HUSER LoadAcceleratorsA(HINSTANCE hInstance, LPSTR)
  24. {
  25. faulterrorcode = 0;
  26. }
  27. HANDLE LoadImage(HINSTANCE hInstLoad, LPSTR, UINT, INT, INT, UINT) =
  28. HANDLE LoadImageA(HINSTANCE hInstLoad, LPSTR, UINT, INT, INT, UINT)
  29. {
  30. hInstLoad = passifnull;
  31. faulterrorcode = 0;
  32. }
  33. HMENU LoadMenu(HINSTANCE hInstance, LPSTR) =
  34. HMENU LoadMenuA(HINSTANCE hInstance, LPSTR)
  35. {
  36. faulterrorcode = 0;
  37. }
  38. HKL LoadKeyboardLayout(LPSTR lpszLayoutName, UINT uiFlags) =
  39. HKL LoadKeyboardLayoutA(LPSTR lpszLayoutName, UINT uiFlags)
  40. {
  41. faulterrorcode = 0;
  42. }
  43. BOOL UnloadKeyboardLayout(DWORD hkl) =
  44. BOOL UnloadKeyboardLayout(DWORD hkl)
  45. {
  46. faulterrorcode = 0;
  47. }
  48. HKL ActivateKeyboardLayout(HKL hkl, UINT uiFlags) =
  49. HKL ActivateKeyboardLayout(HKL hkl, UINT uiFlags)
  50. {
  51. faulterrorcode = 0;
  52. }
  53. HKL GetKeyboardLayout( DWORD ht16 ) =
  54. HKL GetKeyboardLayout( DWORD ht16 )
  55. {
  56. faulterrorcode = 0;
  57. }
  58. INT GetKeyboardLayoutList( UINT, LPDWORD) =
  59. INT GetKeyboardLayoutList( UINT, LPDWORD)
  60. {
  61. faulterrorcode = 0;
  62. }
  63. HCURSOR CreateCursor(HINSTANCE, INT, INT, INT, INT, LPSTR, LPSTR) =
  64. HCURSOR CreateCursor(HINSTANCE, INT, INT, INT, INT, LPSTR, LPSTR)
  65. {
  66. faulterrorcode = 0;
  67. }
  68. HICON CreateIcon(HINSTANCE, INT, INT, BYTE, BYTE, LPSTR, LPSTR) =
  69. HICON CreateIcon(HINSTANCE, INT, INT, BYTE, BYTE, LPSTR, LPSTR)
  70. {
  71. faulterrorcode = 0;
  72. }
  73. /*
  74. * BOGUS
  75. * Implement natively in User32
  76. */
  77. BOOL GetKeyboardLayoutName(LPSTR lpszLayoutName) =
  78. BOOL GetKeyboardLayoutNameA(LPSTR lpszLayoutName)
  79. {
  80. faulterrorcode = 0;
  81. }
  82. INT GetClassName( HWND, LPSTR, INT) =
  83. INT GetClassNameA( HWND, LPSTR, INT)
  84. {
  85. faulterrorcode = 0;
  86. }
  87. BOOL UnregisterClass(LPSTR, HINSTANCE) =
  88. BOOL UnregisterClassA(LPSTR, HINSTANCE)
  89. {
  90. faulterrorcode = 0;
  91. }
  92. BOOL GetIconInfo(HICON hIcon, LPICONINFO pIconInfo) =
  93. BOOL GetIconInfo(HICON hIcon, LPICONINFO pIconInfo)
  94. {
  95. pIconInfo = output;
  96. faulterrorcode = 0;
  97. }
  98. HICON CreateIconIndirect(LPICONINFO lpIconInfo) =
  99. HICON CreateIconIndirect(LPICONINFO lpIconInfo)
  100. {
  101. faulterrorcode = 0;
  102. }
  103. BOOL WaitMessage( ) =
  104. BOOL WaitMessage( )
  105. {
  106. faulterrorcode = 0;
  107. }
  108. BOOL ReplyMessage( LONG) =
  109. BOOL ReplyMessage( LONG)
  110. {
  111. faulterrorcode = 0;
  112. }
  113. BOOL PostQuitMessage( INT nExitCode) =
  114. BOOL PostQuitMessage( INT nExitCode)
  115. {
  116. faulterrorcode = 0;
  117. }
  118. /*
  119. * BOGUS
  120. * Implement natively in User32--it's easy
  121. */
  122. BOOL InSendMessage( ) =
  123. BOOL InSendMessage( )
  124. {
  125. faulterrorcode = 0;
  126. }
  127. /*
  128. * BOGUS
  129. * Implement natively in User32--it's easy
  130. */
  131. DWORD InSendMessageEx( LPVOID lpReserverd ) =
  132. DWORD InSendMessageEx( LPVOID lpReserverd )
  133. {
  134. faulterrorcode = 0;
  135. }
  136. WORD RegisterWindowMessage(LPSTR) =
  137. DWORD RegisterWindowMessageA(LPSTR)
  138. {
  139. faulterrorcode = 0;
  140. }
  141. BOOL SwapMouseButton( BOOL) =
  142. BOOL SwapMouseButton( BOOL)
  143. {
  144. faulterrorcode = 0;
  145. }
  146. BOOL DrawAnimatedRects(HWND hwndClip, INT idAni, LPRECT lprcFrom, LPRECT lprcTo) =
  147. BOOL DrawAnimatedRects(HWND hwndClip, INT idAni, LPRECT lprcFrom, LPRECT lprcTo)
  148. {
  149. faulterrorcode = 0;
  150. }
  151. BOOL ShowOwnedPopups( HWND, BOOL) =
  152. BOOL ShowOwnedPopups( HWND, BOOL)
  153. {
  154. faulterrorcode = 0;
  155. }
  156. BOOL OpenIcon( HWND) =
  157. BOOL OpenIcon( HWND)
  158. {
  159. faulterrorcode = 0;
  160. }
  161. BOOL CloseWindow(HWND) =
  162. BOOL CloseWindow(HWND)
  163. {
  164. faulterrorcode = 0;
  165. }
  166. BOOL DestroyWindow( HWND hWnd) =
  167. BOOL DestroyWindow( HWND hWnd)
  168. {
  169. faulterrorcode = 0;
  170. }
  171. BOOL SetWindowPos( HWND, HWND, INT, INT, INT, INT, WORD) =
  172. BOOL SetWindowPos( HWND, HWND, INT, INT, INT, INT, DWORD)
  173. {
  174. faulterrorcode = 0;
  175. }
  176. HANDLE BeginDeferWindowPos( INT nNumWindows) =
  177. HANDLE BeginDeferWindowPos( INT nNumWindows)
  178. {
  179. faulterrorcode = 0;
  180. }
  181. HANDLE DeferWindowPos( HANDLE hWinPosInfo, HWND hWnd, HWND hWndInsertAfter, INT x, INT y, INT cx, INT cy, WORD wFlags) =
  182. HANDLE DeferWindowPos( HANDLE hWinPosInfo, HWND hWnd, HWND hWndInsertAfter, INT x, INT y, INT cx, INT cy, DWORD wFlags)
  183. {
  184. faulterrorcode = 0;
  185. }
  186. BOOL EndDeferWindowPos( HANDLE hWinPosInfo) =
  187. BOOL EndDeferWindowPos( HANDLE hWinPosInfo)
  188. {
  189. faulterrorcode = 0;
  190. }
  191. BOOL MoveWindow( HWND, INT, INT, INT, INT, BOOL) =
  192. BOOL MoveWindow( HWND, INT, INT, INT, INT, BOOL)
  193. {
  194. faulterrorcode = 0;
  195. }
  196. BOOL BringWindowToTop( HWND) =
  197. BOOL BringWindowToTop( HWND)
  198. {
  199. faulterrorcode = 0;
  200. }
  201. BOOL ShowWindow( HWND hWnd, INT nCmdShow) =
  202. BOOL ShowWindow( HWND hWnd, INT nCmdShow)
  203. {
  204. faulterrorcode = 0;
  205. }
  206. BOOL ShowWindowAsync( HWND hWnd, INT nCmdShow) =
  207. BOOL ShowWindowAsync( HWND hWnd, INT nCmdShow)
  208. {
  209. faulterrorcode = 0;
  210. }
  211. BOOL LockWindowUpdate(HWND hwnd)=
  212. BOOL LockWindowUpdate(HWND hwnd)
  213. {
  214. faulterrorcode = 0;
  215. }
  216. BOOL AnimateWindow(HWND hwnd, DWORD dwTime, DWORD dwFlags)=
  217. BOOL AnimateWindow(HWND hwnd, DWORD dwTime, DWORD dwFlags)
  218. {
  219. faulterrorcode = 0;
  220. }
  221. BOOL FlashWindow( HWND, BOOL) =
  222. BOOL FlashWindow( HWND, BOOL)
  223. {
  224. faulterrorcode = 0;
  225. }
  226. /*
  227. * !!! return value?
  228. */
  229. BOOL EnableWindow(HWND, BOOL) =
  230. BOOL EnableWindow(HWND, BOOL)
  231. {
  232. faulterrorcode = 0;
  233. }
  234. BOOL SetWindowText( HWND hWnd, LPSTR lpString) =
  235. BOOL SetWindowTextA( HWND hWnd, LPSTR lpString)
  236. {
  237. faulterrorcode = 0;
  238. }
  239. INT GetWindowText( HWND, LPSTR, INT) =
  240. INT GetWindowTextA( HWND, LPSTR, INT)
  241. {
  242. faulterrorcode = 0;
  243. }
  244. DWORD GetWindowTextLength(HWND) =
  245. DWORD GetWindowTextLengthA(HWND)
  246. {
  247. faulterrorcode = 0;
  248. }
  249. /*
  250. * BOGUS
  251. * Implement natively in User32
  252. */
  253. BOOL AdjustWindowRectEx( LPRECT lpRect, LONG, BOOL, DWORD) =
  254. BOOL AdjustWindowRectEx( LPRECT lpRect, LONG, BOOL, DWORD)
  255. {
  256. lpRect = inout;
  257. faulterrorcode = 0;
  258. }
  259. /*
  260. * BOGUS
  261. * Implement natively in User32
  262. */
  263. HWND GetParent( HWND) =
  264. HWND GetParent( HWND)
  265. {
  266. faulterrorcode = 0;
  267. }
  268. HWND SetParent( HWND, HWND) =
  269. HWND SetParent( HWND, HWND)
  270. {
  271. faulterrorcode = 0;
  272. }
  273. HWND FindWindowEx(HWND, HWND, LPSTR, LPSTR) =
  274. HWND FindWindowExA(HWND, HWND, LPSTR, LPSTR)
  275. {
  276. faulterrorcode = 0;
  277. }
  278. BOOL SetShellWindow(HWND) =
  279. BOOL SetShellWindow(HWND)
  280. {
  281. faulterrorcode = 0;
  282. }
  283. /*
  284. * BOGUS
  285. * Implement natively in User32
  286. */
  287. HWND GetLastActivePopup( HWND) =
  288. HWND GetLastActivePopup( HWND)
  289. {
  290. faulterrorcode = 0;
  291. }
  292. /*
  293. * BOGUS
  294. * Implement natively in User32
  295. */
  296. HWND GetWindow( HWND, WORD) =
  297. HWND GetWindow( HWND, DWORD)
  298. {
  299. faulterrorcode = 0;
  300. }
  301. HWND GetTopWindow(HWND) =
  302. HWND GetTopWindow(HWND)
  303. {
  304. faulterrorcode = 0;
  305. }
  306. BOOL IsMenu( HWND) =
  307. BOOL IsMenu( HWND)
  308. {
  309. faulterrorcode = 0;
  310. }
  311. /*
  312. * BOGUS
  313. * Implement in User32 directly
  314. */
  315. BOOL IsChild( HWND, HWND) =
  316. BOOL IsChild( HWND, HWND)
  317. {
  318. faulterrorcode = 0;
  319. }
  320. /*
  321. * BOGUS
  322. * Implement in User32 directly
  323. */
  324. BOOL AnyPopup( ) =
  325. BOOL AnyPopup( )
  326. {
  327. faulterrorcode = 0;
  328. }
  329. BOOL EndDialog32( HWND hDlg, LONG lResult) =
  330. BOOL EndDialog( HWND hDlg, LONG lResult)
  331. {
  332. faulterrorcode = 0;
  333. }
  334. LONG GetDlgItemInt32( HWND, LONG, LPINT lpTranslated, BOOL, BOOL) =
  335. LONG GetDlgItemInt32( HWND, LONG, LPINT lpTranslated, BOOL, BOOL)
  336. {
  337. lpTranslated = output;
  338. faulterrorcode = 0;
  339. }
  340. BOOL SetDlgItemInt32( HWND, LONG, LONG, BOOL) =
  341. BOOL SetDlgItemInt( HWND, INT, LONG, BOOL)
  342. {
  343. faulterrorcode = 0;
  344. }
  345. BOOL SetDlgItemText32( HWND, LONG, LPSTR) =
  346. BOOL SetDlgItemTextA( HWND, INT, LPSTR)
  347. {
  348. faulterrorcode = 0;
  349. }
  350. INT GetDlgItemText32( HWND, LONG, LPSTR, INT) =
  351. INT GetDlgItemTextA( HWND, INT, LPSTR, INT)
  352. {
  353. faulterrorcode = 0;
  354. }
  355. BOOL CheckDlgButton32( HWND, LONG, WORD) =
  356. BOOL CheckDlgButton( HWND, INT, DWORD)
  357. {
  358. faulterrorcode = 0;
  359. }
  360. BOOL CheckRadioButton32( HWND, LONG, LONG, LONG) =
  361. BOOL CheckRadioButton( HWND, INT, INT, INT)
  362. {
  363. faulterrorcode = 0;
  364. }
  365. WORD IsDlgButtonChecked32( HWND, LONG) =
  366. DWORD IsDlgButtonChecked( HWND, INT)
  367. {
  368. /*
  369. * !!! How is error returned?
  370. */
  371. faulterrorcode = 0;
  372. }
  373. /* !!! bPrevious reversed ??? */
  374. HWND GetNextDlgGroupItem( HWND hDlg, HWND hCtl, BOOL bPrevious) =
  375. HWND GetNextDlgGroupItem( HWND hDlg, HWND hCtl, BOOL bPrevious)
  376. {
  377. faulterrorcode = 0;
  378. }
  379. /* !!! bPrevious reversed ??? */
  380. HWND GetNextDlgTabItem( HWND hDlg, HWND hCtl, BOOL bPrevious) =
  381. HWND GetNextDlgTabItem( HWND hDlg, HWND hCtl, BOOL bPrevious)
  382. {
  383. faulterrorcode = 0;
  384. }
  385. /*
  386. * BOGUS
  387. * Implement natively in User32
  388. */
  389. BOOL MapDialogRect( HWND, LPRECT lpRect) =
  390. BOOL MapDialogRect( HWND, LPRECT lpRect)
  391. {
  392. lpRect = inout;
  393. faulterrorcode = 0;
  394. }
  395. /*
  396. * clipbrd.c "Clipboard Manager APIs and support routines."
  397. */
  398. UINT EnumClipboardFormats(UINT) =
  399. UINT EnumClipboardFormats(UINT)
  400. {
  401. faulterrorcode = 0;
  402. }
  403. BOOL EmptyClipboard( ) =
  404. BOOL EmptyClipboard( )
  405. {
  406. faulterrorcode = 0;
  407. }
  408. INT GetClipboardFormatName( WORD, LPSTR, INT) =
  409. INT GetClipboardFormatNameA( DWORD, LPSTR, INT)
  410. {
  411. faulterrorcode = 0;
  412. }
  413. HWND SetClipboardViewer( HWND) =
  414. HWND SetClipboardViewer( HWND)
  415. {
  416. faulterrorcode = 0;
  417. }
  418. BOOL ChangeClipboardChain( HWND, HWND) =
  419. BOOL ChangeClipboardChain( HWND, HWND)
  420. {
  421. faulterrorcode = 0;
  422. }
  423. HDC BeginPaint( HWND hWnd, PAINTSTRUCT *lpPaint) =
  424. HDC BeginPaint( HWND hWnd, PAINTSTRUCT *lpPaint)
  425. {
  426. lpPaint = output;
  427. faulterrorcode = 0;
  428. }
  429. BOOL EndPaint( HWND hWnd, PAINTSTRUCT *lpPaint) =
  430. BOOL EndPaint( HWND hWnd, PAINTSTRUCT *lpPaint)
  431. {
  432. faulterrorcode = 0;
  433. }
  434. BOOL UpdateWindow( HWND hWnd) =
  435. BOOL UpdateWindow( HWND hWnd)
  436. {
  437. faulterrorcode = 0;
  438. }
  439. BOOL GetUpdateRect( HWND, LPRECT lpRect, BOOL) =
  440. BOOL GetUpdateRect( HWND, LPRECT lpRect, BOOL)
  441. {
  442. lpRect = output;
  443. faulterrorcode = 0;
  444. }
  445. INT GetUpdateRgn( HWND, HRGN, BOOL) =
  446. INT GetUpdateRgn( HWND, HRGN, BOOL)
  447. {
  448. faulterrorcode = 0;
  449. }
  450. INT ExcludeUpdateRgn( HDC, HWND) =
  451. INT ExcludeUpdateRgn( HDC, HWND)
  452. {
  453. faulterrorcode = 0;
  454. }
  455. BOOL InvalidateRect( HWND, LPRECT, BOOL) =
  456. BOOL InvalidateRect( HWND, LPRECT, BOOL)
  457. {
  458. faulterrorcode = 0;
  459. }
  460. BOOL ValidateRect( HWND, LPRECT) =
  461. BOOL ValidateRect( HWND, LPRECT)
  462. {
  463. faulterrorcode = 0;
  464. }
  465. BOOL SetWindowRgn( HWND, HRGN, BOOL) =
  466. BOOL SetWindowRgn( HWND, HRGN, BOOL)
  467. {
  468. faulterrorcode = 0;
  469. }
  470. int GetWindowRgn( HWND, HRGN) =
  471. int GetWindowRgn( HWND, HRGN)
  472. {
  473. faulterrorcode = 0;
  474. }
  475. BOOL InvalidateRgn( HWND, HRGN, BOOL) =
  476. BOOL InvalidateRgn( HWND, HRGN, BOOL)
  477. {
  478. faulterrorcode = 0;
  479. }
  480. BOOL ValidateRgn( HWND, HRGN) =
  481. BOOL ValidateRgn( HWND, HRGN)
  482. {
  483. faulterrorcode = 0;
  484. }
  485. HWND SetFocus( HWND hWnd) =
  486. HWND SetFocus( HWND hWnd)
  487. {
  488. faulterrorcode = 0;
  489. }
  490. HWND SetActiveWindow( HWND) =
  491. HWND SetActiveWindow( HWND)
  492. {
  493. faulterrorcode = 0;
  494. }
  495. HWND SetCapture( HWND hWnd) =
  496. HWND SetCapture( HWND hWnd)
  497. {
  498. faulterrorcode = 0;
  499. }
  500. BOOL ReleaseCapture( ) =
  501. BOOL ReleaseCapture( )
  502. {
  503. faulterrorcode = 0;
  504. }
  505. INT GetKeyState( INT nVirtKey) =
  506. INT GetKeyState( INT nVirtKey)
  507. {
  508. faulterrorcode = 0;
  509. }
  510. INT GetAsyncKeyState( INT) =
  511. INT GetAsyncKeyState( INT)
  512. {
  513. faulterrorcode = 0;
  514. }
  515. BOOL GetKeyboardState( BYTE *) =
  516. BOOL GetKeyboardState( BYTE *)
  517. {
  518. faulterrorcode = 0;
  519. }
  520. BOOL SetKeyboardState( BYTE *) =
  521. BOOL SetKeyboardState( BYTE *)
  522. {
  523. faulterrorcode = 0;
  524. }
  525. INT GetKeyNameText( LONG, LPSTR, INT) =
  526. INT GetKeyNameTextA( LONG, LPSTR, INT)
  527. {
  528. faulterrorcode = 0;
  529. }
  530. /*
  531. * toascii.c
  532. */
  533. INT ToAsciiExInternal( WORD, WORD, LPSTR pKeys, DWORD *, WORD, DWORD) =
  534. INT ToAsciiEx( UINT, UINT, LPSTR pKeys, DWORD *, WORD, DWORD)
  535. {
  536. /*
  537. * pKeys is 256-byte array
  538. */
  539. faulterrorcode = 0;
  540. }
  541. WORD VkKeyScanExInternal( WORD, DWORD) =
  542. UINT VkKeyScanExA( UINT, DWORD)
  543. {
  544. faulterrorcode = 0;
  545. }
  546. INT ToAscii( WORD, WORD, LPSTR pKeys, DWORD *, WORD) =
  547. INT ToAscii( UINT, UINT, LPSTR pKeys, DWORD *, WORD)
  548. {
  549. /*
  550. * pKeys is 256-byte array
  551. */
  552. faulterrorcode = 0;
  553. }
  554. WORD VkKeyScan( WORD) =
  555. UINT VkKeyScanA( UINT)
  556. {
  557. /*
  558. * Win32 returns WORD, but high word should be zeroed in that case,
  559. * so UINT is used instead.
  560. *
  561. * Win32 takes TCHAR. UINT is used instead since thunk.exe doesn't
  562. * understand TCHAR.
  563. */
  564. faulterrorcode = 0;
  565. }
  566. /*
  567. * xlate.c "Scancode, Virtual Key, and Character translations"
  568. */
  569. WORD MapVirtualKey(WORD, WORD) =
  570. UINT MapVirtualKey(UINT, UINT)
  571. {
  572. faulterrorcode = 0;
  573. }
  574. WORD MapVirtualKeyExInternal(WORD, WORD, DWORD) =
  575. UINT MapVirtualKeyExA(UINT, UINT, DWORD)
  576. {
  577. faulterrorcode = 0;
  578. }
  579. BOOL GetInputState( ) =
  580. BOOL GetInputState( )
  581. {
  582. faulterrorcode = 0;
  583. }
  584. DWORD MsgWaitForMultipleObjectsEx(DWORD dwCount, LPDWORD lpdwObjects, DWORD, DWORD, DWORD) =
  585. DWORD MsgWaitForMultipleObjectsEx(DWORD dwCount, LPDWORD lpdwObjects, DWORD, DWORD, DWORD)
  586. {
  587. faulterrorcode = -1;
  588. }
  589. DWORD GetQueueStatus(UINT uiFlags)=
  590. DWORD GetQueueStatus(UINT uiFlags)
  591. {
  592. faulterrorcode = 0;
  593. }
  594. BOOL KillTimer32( HWND hWnd, DWORD nIDEvent) =
  595. BOOL KillTimer( HWND hWnd, DWORD nIDEvent)
  596. {
  597. faulterrorcode = 0;
  598. }
  599. BOOL DrawMenuBar( HWND) =
  600. BOOL DrawMenuBar( HWND)
  601. {
  602. faulterrorcode = 0;
  603. }
  604. DWORD GetMenu(HWND) =
  605. DWORD GetMenu(HWND)
  606. {
  607. faulterrorcode = 0;
  608. }
  609. DWORD GetMenuDefaultItem(HMENU, UINT, UINT) =
  610. UINT GetMenuDefaultItem(HMENU, UINT, UINT)
  611. {
  612. faulterrorcode = 0;
  613. }
  614. BOOL SetMenuDefaultItem(HMENU, UINT, UINT) =
  615. BOOL SetMenuDefaultItem(HMENU, UINT, UINT)
  616. {
  617. faulterrorcode = 0;
  618. }
  619. BOOL SetMenu( HWND, HMENU) =
  620. BOOL SetMenu( HWND, HMENU)
  621. {
  622. faulterrorcode = 0;
  623. }
  624. BOOL HiliteMenuItem( HWND, HMENU, WORD, WORD) =
  625. BOOL HiliteMenuItem( HWND, HMENU, UINT, UINT)
  626. {
  627. faulterrorcode = 0;
  628. }
  629. INT GetMenuString( HMENU, WORD, LPSTR, INT, WORD) =
  630. INT GetMenuStringA( HMENU, UINT, LPSTR, INT, DWORD)
  631. {
  632. /*
  633. * Return code includes null-terminator.
  634. */
  635. faulterrorcode = 0;
  636. }
  637. BOOL GetMenuItemRect(HWND, HMENU, UINT, LPRECT qrc) =
  638. BOOL GetMenuItemRect(HWND, HMENU, UINT, LPRECT qrc)
  639. {
  640. qrc = output;
  641. faulterrorcode = 0;
  642. }
  643. INT MenuItemFromPoint(HWND, HMENU, POINT) =
  644. INT MenuItemFromPoint(HWND, HMENU, POINT)
  645. {
  646. faulterrorcode = 0;
  647. }
  648. BOOL DrawEdge(HDC hdc, LPRECT qrc, UINT edgeType, UINT grfFlags)=
  649. BOOL DrawEdge(HDC hdc, LPRECT qrc, UINT edgeType, UINT grfFlags)
  650. {
  651. qrc = inout;
  652. faulterrorcode = 0;
  653. }
  654. BOOL DrawFrameControl(HDC, LPRECT qrc, UINT, UINT) =
  655. BOOL DrawFrameControl(HDC, LPRECT qrc, UINT, UINT)
  656. {
  657. qrc = inout;
  658. faulterrorcode = 0;
  659. }
  660. HMENU GetSystemMenu( HWND, BOOL) =
  661. HMENU GetSystemMenu( HWND, BOOL)
  662. {
  663. faulterrorcode = 0;
  664. }
  665. HMENU CreateMenu( ) =
  666. HMENU CreateMenu( )
  667. {
  668. faulterrorcode = 0;
  669. }
  670. HMENU CreatePopupMenu( ) =
  671. HMENU CreatePopupMenu( )
  672. {
  673. faulterrorcode = 0;
  674. }
  675. BOOL DestroyMenu( HMENU hMenu) =
  676. BOOL DestroyMenu( HMENU hMenu)
  677. {
  678. /*
  679. * Win32 only
  680. * LATER: BUGBUG: hMenu==NULL s/ret FALSE, not fault!
  681. * body = special;
  682. */
  683. faulterrorcode = 0;
  684. }
  685. HMENU GetSubMenu(HMENU, INT) =
  686. HMENU GetSubMenu(HMENU, INT)
  687. {
  688. faulterrorcode = 0;
  689. }
  690. INT GetMenuItemCount(HMENU) =
  691. INT GetMenuItemCount(HMENU)
  692. {
  693. faulterrorcode = -1;
  694. }
  695. BOOL RemoveMenu(HMENU, WORD, WORD) =
  696. BOOL RemoveMenu(HMENU, UINT, UINT)
  697. {
  698. faulterrorcode = 0;
  699. }
  700. BOOL DeleteMenu(HMENU, WORD, WORD) =
  701. BOOL DeleteMenu(HMENU, UINT, UINT)
  702. {
  703. faulterrorcode = 0;
  704. }
  705. BOOL SetMenuItemBitmaps( HMENU, WORD, WORD, HBITMAP, HBITMAP) =
  706. BOOL SetMenuItemBitmaps( HMENU, UINT, DWORD, HBITMAP, HBITMAP)
  707. {
  708. faulterrorcode = 0;
  709. }
  710. LONG GetMenuCheckMarkDimensions( ) =
  711. LONG GetMenuCheckMarkDimensions( )
  712. {
  713. faulterrorcode = 0;
  714. }
  715. DWORD GetMenuContextHelpId(HMENU) =
  716. DWORD GetMenuContextHelpId(HMENU)
  717. {
  718. faulterrorcode = 0;
  719. }
  720. BOOL SetMenuContextHelpId(HMENU, DWORD) =
  721. BOOL SetMenuContextHelpId(HMENU, DWORD)
  722. {
  723. faulterrorcode = 0;
  724. }
  725. DWORD GetWindowContextHelpId(HWND) =
  726. DWORD GetWindowContextHelpId(HWND)
  727. {
  728. faulterrorcode = 0;
  729. }
  730. BOOL SetWindowContextHelpId(HWND, DWORD) =
  731. BOOL SetWindowContextHelpId(HWND, DWORD)
  732. {
  733. faulterrorcode = 0;
  734. }
  735. BOOL SetMenuInfo(HMENU, LPVOID lpMenuInfo) =
  736. BOOL SetMenuInfo(HMENU, LPVOID lpMenuInfo)
  737. {
  738. faulterrorcode = 0;
  739. }
  740. BOOL GetMenuInfo(HMENU, LPVOID lpMenuInfo) =
  741. BOOL GetMenuInfo(HMENU, LPVOID lpMenuInfo)
  742. {
  743. lpMenuInfo = inout;
  744. faulterrorcode = 0;
  745. }
  746. LONG SetScrollInfo(HWND, INT, LPSCROLLINFO lpScrollInfo, BOOL) =
  747. LONG SetScrollInfo(HWND, INT, LPSCROLLINFO lpScrollInfo, BOOL)
  748. {
  749. faulterrorcode = 0;
  750. }
  751. BOOL GetScrollInfo(HWND, INT, LPSCROLLINFO lpScrollInfo) =
  752. BOOL GetScrollInfo(HWND, INT, LPSCROLLINFO lpScrollInfo)
  753. {
  754. lpScrollInfo = inout;
  755. faulterrorcode = 0;
  756. }
  757. BOOL TrackMouseEvent(LPTRACKMOUSEEVENT lpEventTrack) =
  758. BOOL TrackMouseEvent(LPTRACKMOUSEEVENT lpEventTrack)
  759. {
  760. lpEventTrack = inout;
  761. faulterrorcode = 0;
  762. }
  763. UINT TrackPopupMenuEx(HMENU, UINT, INT, INT, HWND, LPTPMPARAMS lptpm) =
  764. UINT TrackPopupMenuEx(HMENU, UINT, INT, INT, HWND, LPTPMPARAMS lptpm)
  765. {
  766. faulterrorcode = 0;
  767. }
  768. BOOL EndMenu() =
  769. BOOL EndMenu()
  770. {
  771. faulterrorcode = 0;
  772. }
  773. INT ScrollWindowEx32(HWND, INT, INT, LPRECT, LPRECT, HRGN, LPRECT lprcUpdate, DWORD) =
  774. INT ScrollWindowEx(HWND, INT, INT, LPRECT, LPRECT, HRGN, LPRECT lprcUpdate, DWORD)
  775. {
  776. lprcUpdate = output;
  777. faulterrorcode = 0;
  778. }
  779. BOOL ScrollDC( HDC, INT, INT, LPRECT, LPRECT, HRGN, LPRECT lprcUpdate) =
  780. BOOL ScrollDC( HDC, INT, INT, LPRECT, LPRECT, HRGN, LPRECT lprcUpdate)
  781. {
  782. lprcUpdate = output;
  783. faulterrorcode = 0;
  784. }
  785. /*
  786. * sbapi.c "Scrollbar control"
  787. */
  788. LONG GetScrollPos( HWND, INT) =
  789. LONG GetScrollPos( HWND, INT)
  790. {
  791. faulterrorcode = 0;
  792. }
  793. BOOL ShowScrollBar( HWND, WORD, BOOL) =
  794. BOOL ShowScrollBar( HWND, UINT, BOOL)
  795. {
  796. faulterrorcode = 0;
  797. }
  798. BOOL SetPropReal( HWND, LPSTR, DWORD, UINT) =
  799. BOOL SetPropRealA(HWND, LPSTR, DWORD, UINT)
  800. {
  801. faulterrorcode = 0;
  802. }
  803. DWORD GetPropEx( HWND, LPSTR lpString) =
  804. DWORD GetPropA( HWND, LPSTR lpString)
  805. {
  806. faulterrorcode = 0;
  807. }
  808. DWORD RemovePropEx(HWND, LPSTR lpString) =
  809. DWORD RemovePropA( HWND, LPSTR lpString)
  810. {
  811. faulterrorcode = 0;
  812. }
  813. BOOL MessageBeep( WORD) =
  814. BOOL MessageBeep( UINT)
  815. {
  816. faulterrorcode = 0;
  817. }
  818. BOOL DestroyIcon32(HICON, UINT) =
  819. BOOL DestroyIcoCur(HICON, UINT)
  820. {
  821. faulterrorcode = 0;
  822. }
  823. BOOL DestroyAcceleratorTable(HACCEL hAccel) =
  824. BOOL DestroyAcceleratorTable(HACCEL hAccel)
  825. {
  826. faulterrorcode = 0;
  827. }
  828. BOOL SetCursorPos( INT X, INT Y) =
  829. BOOL SetCursorPos( INT X, INT Y)
  830. {
  831. faulterrorcode = 0;
  832. }
  833. BOOL GetCursorPos( LPPOINT lpPoint) =
  834. BOOL GetCursorPos( LPPOINT lpPoint)
  835. {
  836. lpPoint = output;
  837. faulterrorcode = 0;
  838. }
  839. BOOL ClipCursor( LPRECT) =
  840. BOOL ClipCursor( LPRECT)
  841. {
  842. faulterrorcode = 0;
  843. }
  844. BOOL DrawIconEx(HDC, INT, INT, HICON, INT, INT, UINT, HBRUSH, UINT) =
  845. BOOL DrawIconEx(HDC, INT, INT, HICON, INT, INT, UINT, HBRUSH, UINT)
  846. {
  847. faulterrorcode = 0;
  848. }
  849. BOOL CreateCaret( HWND, HBITMAP, INT, INT) =
  850. BOOL CreateCaret( HWND, HBITMAP, INT, INT)
  851. {
  852. faulterrorcode = 0;
  853. }
  854. BOOL SetCaretBlinkTime( WORD) =
  855. BOOL SetCaretBlinkTime( UINT)
  856. {
  857. faulterrorcode = 0;
  858. }
  859. BOOL DestroyCaret( ) =
  860. BOOL DestroyCaret( )
  861. {
  862. faulterrorcode = 0;
  863. }
  864. BOOL HideCaret( HWND) =
  865. BOOL HideCaret( HWND)
  866. {
  867. faulterrorcode = 0;
  868. }
  869. BOOL ShowCaret( HWND) =
  870. BOOL ShowCaret( HWND)
  871. {
  872. faulterrorcode = 0;
  873. }
  874. BOOL SetCaretPos( INT, INT) =
  875. BOOL SetCaretPos( INT, INT)
  876. {
  877. faulterrorcode = 0;
  878. }
  879. /*
  880. * BOGUS
  881. * Implement natively in User32
  882. */
  883. BOOL GetCaretPos( LPPOINT lpPoint) =
  884. BOOL GetCaretPos( LPPOINT lpPoint)
  885. {
  886. lpPoint = output;
  887. faulterrorcode = 0;
  888. }
  889. HWND WindowFromPoint( POINT) =
  890. HWND WindowFromPoint( POINT)
  891. {
  892. faulterrorcode = 0;
  893. }
  894. HWND ChildWindowFromPointEx(HWND, POINT, UINT) =
  895. HWND ChildWindowFromPointEx(HWND, POINT, UINT)
  896. {
  897. faulterrorcode = 0;
  898. }
  899. BOOL PaintDesktop(HDC hdc) =
  900. BOOL PaintDesktop(HDC hdc)
  901. {
  902. faulterrorcode = 0;
  903. }
  904. INT DlgDirList( HWND, LPSTR, INT, INT, WORD) =
  905. INT DlgDirListA( HWND, LPSTR, INT, INT, DWORD)
  906. {
  907. faulterrorcode = 0;
  908. }
  909. BOOL DlgDirSelectEx( HWND hDlg, LPSTR lpString, INT nLength, INT nIDListBox) =
  910. BOOL DlgDirSelectExA( HWND hDlg, LPSTR lpString, INT nLength, INT nIDListBox)
  911. {
  912. faulterrorcode = 0;
  913. }
  914. INT DlgDirListComboBox( HWND, LPSTR, INT, INT, WORD) =
  915. INT DlgDirListComboBoxA( HWND, LPSTR, INT, INT, DWORD)
  916. {
  917. faulterrorcode = 0;
  918. }
  919. BOOL DlgDirSelectComboBoxEx( HWND hDlg, LPSTR lpString, INT nLength, int nIDComboBox) =
  920. BOOL DlgDirSelectComboBoxExA( HWND hDlg, LPSTR lpString, INT nLength, int nIDComboBox)
  921. {
  922. faulterrorcode = 0;
  923. }
  924. UINT ArrangeIconicWindows( HWND) =
  925. UINT ArrangeIconicWindows( HWND)
  926. {
  927. faulterrorcode = 0;
  928. }
  929. INT DrawTextEx(HDC, LPSTR, INT, LPRECT lprc, DWORD, LPDRAWTEXTPARAMS lpdtp) =
  930. INT DrawTextExA(HDC, LPSTR, INT, LPRECT lprc, DWORD, LPDRAWTEXTPARAMS lpdtp)
  931. {
  932. lprc = inout;
  933. lpdtp = inout;
  934. faulterrorcode = 0;
  935. }
  936. BOOL DrawFocusRect( HDC, LPRECT) =
  937. BOOL DrawFocusRect( HDC, LPRECT)
  938. {
  939. faulterrorcode = 0;
  940. }
  941. HDC GetWindowDC( HWND hWnd) =
  942. HDC GetWindowDC( HWND hWnd)
  943. {
  944. faulterrorcode = 0;
  945. }
  946. HDC GetDC( HWND hWnd) =
  947. HDC GetDC( HWND hWnd)
  948. {
  949. faulterrorcode = 0;
  950. }
  951. BOOL ReleaseDC( HWND hWnd, HDC hDC) =
  952. BOOL ReleaseDC( HWND hWnd, HDC hDC)
  953. {
  954. faulterrorcode = 0;
  955. }
  956. HWND WindowFromDC(HDC) =
  957. HWND WindowFromDC(HDC)
  958. {
  959. faulterrorcode = 0;
  960. }
  961. HDC GetDCEx(HWND hwnd, HRGN hrgnClip, DWORD flags)=
  962. HDC GetDCEx(HWND hwnd, HRGN hrgnClip, DWORD flags)
  963. {
  964. faulterrorcode = 0;
  965. }
  966. VOID SwitchToThisWindow(HWND hwnd, BOOL fAltTab) =
  967. VOID SwitchToThisWindow(HWND hwnd, BOOL fAltTab)
  968. {
  969. faulterrorcode = 0;
  970. }
  971. BOOL ExitWindowsEx(DWORD dwRetCode, DWORD dwUnused)=
  972. BOOL ExitWindowsEx(DWORD dwRetCode, DWORD dwUnused)
  973. {
  974. faulterrorcode = 0;
  975. }
  976. BOOL FillRect( HDC, LPRECT, HBRUSH) =
  977. BOOL FillRect( HDC, LPRECT, HBRUSH)
  978. {
  979. faulterrorcode = 0;
  980. }
  981. BOOL InvertRect( HDC, LPRECT) =
  982. BOOL InvertRect( HDC, LPRECT)
  983. {
  984. faulterrorcode = 0;
  985. }
  986. BOOL FrameRect( HDC, LPRECT, HBRUSH) =
  987. BOOL FrameRect( HDC, LPRECT, HBRUSH)
  988. {
  989. faulterrorcode = 0;
  990. }
  991. /*
  992. * BOGUS
  993. * Implement natively in User32
  994. */
  995. HANDLE GetCursor( )=
  996. HANDLE GetCursor( )
  997. {
  998. faulterrorcode = 0;
  999. }
  1000. BOOL DdeUninitialize(DWORD idInst) =
  1001. BOOL DdeUninitialize(DWORD idInst)
  1002. {
  1003. faulterrorcode = 0;
  1004. }
  1005. HCONV DdeQueryNextServer(HCONVLIST hConvList, HCONV hConvPrev) =
  1006. HCONV DdeQueryNextServer(HCONVLIST hConvList, HCONV hConvPrev)
  1007. {
  1008. faulterrorcode = 0;
  1009. }
  1010. BOOL DdeDisconnectList(HCONVLIST hConvList) =
  1011. BOOL DdeDisconnectList(HCONVLIST hConvList)
  1012. {
  1013. faulterrorcode = 0;
  1014. }
  1015. BOOL DdeDisconnect(HCONV hConv) =
  1016. BOOL DdeDisconnect(HCONV hConv)
  1017. {
  1018. faulterrorcode = 0;
  1019. }
  1020. HCONV DdeReconnect(HCONV hConv) =
  1021. HCONV DdeReconnect(HCONV hConv)
  1022. {
  1023. faulterrorcode = 0;
  1024. }
  1025. BOOL DdeSetUserHandle(HCONV hConv, DWORD id, DWORD hUser) =
  1026. BOOL DdeSetUserHandle(HCONV hConv, DWORD id, DWORD hUser)
  1027. {
  1028. faulterrorcode = 0;
  1029. }
  1030. BOOL DdeAbandonTransaction(DWORD idInst, HCONV hConv, DWORD idTransaction) =
  1031. BOOL DdeAbandonTransaction(DWORD idInst, HCONV hConv, DWORD idTransaction)
  1032. {
  1033. faulterrorcode = 0;
  1034. }
  1035. BOOL DdePostAdvise(DWORD idInst, HSZ hszTopic, HSZ hszItem) =
  1036. BOOL DdePostAdvise(DWORD idInst, HSZ hszTopic, HSZ hszItem)
  1037. {
  1038. faulterrorcode = 0;
  1039. }
  1040. BOOL DdeEnableCallback(DWORD idInst, HCONV hConv, UINT wCmd) =
  1041. BOOL DdeEnableCallback(DWORD idInst, HCONV hConv, UINT wCmd)
  1042. {
  1043. faulterrorcode = 0;
  1044. }
  1045. HDDEDATA DdeNameService(DWORD idInst, HSZ hsz1, HSZ hsz2, UINT afCmd) =
  1046. HDDEDATA DdeNameService(DWORD idInst, HSZ hsz1, HSZ hsz2, UINT afCmd)
  1047. {
  1048. faulterrorcode = 0;
  1049. }
  1050. HDDEDATA DdeCreateDataHandle(DWORD idInst, LPBYTE pSrc, DWORD cb, DWORD cbOff,
  1051. HSZ hszItem, UINT wFmt, UINT afCmd)
  1052. {
  1053. target = FakeDdeCreateDataHandle;
  1054. faulterrorcode = 0;
  1055. }
  1056. HDDEDATA FakeDdeAddData(HDDEDATA hData, LPBYTE pSrc, DWORD cb, DWORD cbOff) =
  1057. HDDEDATA DdeAddData(HDDEDATA hData, LPBYTE pSrc, DWORD cb, DWORD cbOff)
  1058. {
  1059. faulterrorcode = 0;
  1060. }
  1061. DWORD DdeGetData(HDDEDATA hData, LPBYTE pDst, DWORD cbMax, DWORD cbOff)
  1062. {
  1063. target = FakeDdeGetData;
  1064. faulterrorcode = 0;
  1065. }
  1066. LPBYTE DdeAccessData(HDDEDATA hData, LPDWORD pcbDataSize)
  1067. {
  1068. target = FakeDdeAccessData;
  1069. faulterrorcode = 0;
  1070. }
  1071. BOOL DdeUnaccessData(HDDEDATA hData)
  1072. {
  1073. target = FakeDdeUnaccessData;
  1074. faulterrorcode = 0;
  1075. }
  1076. BOOL DdeFreeDataHandle(HDDEDATA hData)
  1077. {
  1078. target = FakeDdeFreeDataHandle;
  1079. faulterrorcode = 0;
  1080. }
  1081. UINT DdeGetLastError(DWORD idInst) =
  1082. UINT DdeGetLastError(DWORD idInst)
  1083. {
  1084. faulterrorcode = 0;
  1085. }
  1086. HSZ DdeCreateStringHandle(DWORD idInst, LPSTR psz, int iCodePage) =
  1087. HSZ DdeCreateStringHandleA(DWORD idInst, LPSTR psz, int iCodePage)
  1088. {
  1089. faulterrorcode = 0;
  1090. }
  1091. DWORD DdeQueryString(DWORD idInst, HSZ hsz, LPSTR psz, DWORD cchMax,
  1092. int iCodePage) =
  1093. DWORD DdeQueryStringA(DWORD idInst, HSZ hsz, LPSTR psz, DWORD cchMax,
  1094. int iCodePage)
  1095. {
  1096. faulterrorcode = 0;
  1097. }
  1098. BOOL DdeFreeStringHandle(DWORD idInst, HSZ hsz) =
  1099. BOOL DdeFreeStringHandle(DWORD idInst, HSZ hsz)
  1100. {
  1101. faulterrorcode = 0;
  1102. }
  1103. BOOL DdeKeepStringHandle(DWORD idInst, HSZ hsz) =
  1104. BOOL DdeKeepStringHandle(DWORD idInst, HSZ hsz)
  1105. {
  1106. faulterrorcode = 0;
  1107. }
  1108. /* !!! is this in ddemlrtl.dll? */
  1109. int DdeCmpStringHandles(HSZ hsz1, HSZ hsz2) =
  1110. int DdeCmpStringHandles(HSZ hsz1, HSZ hsz2)
  1111. {
  1112. faulterrorcode = 0;
  1113. }
  1114. BOOL EnableScrollBar(HWND, INT, UINT) =
  1115. BOOL EnableScrollBar(HWND, INT, UINT)
  1116. {
  1117. faulterrorcode = 0;
  1118. }
  1119. BOOL GetClipCursor(LPRECT lprc) =
  1120. BOOL GetClipCursor(LPRECT lprc)
  1121. {
  1122. lprc = output;
  1123. faulterrorcode = 0;
  1124. }
  1125. BOOL RedrawWindow(HWND, LPRECT, HRGN, UINT) =
  1126. BOOL RedrawWindow(HWND, LPRECT, HRGN, UINT)
  1127. {
  1128. faulterrorcode = 0;
  1129. }
  1130. DWORD OemKeyScan (WORD) =
  1131. DWORD OemKeyScan (UINT)
  1132. {
  1133. faulterrorcode = 0;
  1134. }
  1135. HANDLE SelectPalette(HDC, HANDLE, BOOL) =
  1136. HANDLE ThkSelectPalette(HDC, HANDLE, BOOL)
  1137. {
  1138. faulterrorcode = 0;
  1139. }
  1140. UINT RealizePalette(HDC) =
  1141. UINT ThkRealizePalette(HDC)
  1142. {
  1143. faulterrorcode = -1;
  1144. }
  1145. BOOL SetForegroundWindow(HWND hWnd) =
  1146. BOOL SetForegroundWindow(HWND hWnd)
  1147. {
  1148. faulterrorcode = 0;
  1149. }
  1150. BOOL LockSetForegroundWindow(UINT) =
  1151. BOOL LockSetForegroundWindow(UINT)
  1152. {
  1153. faulterrorcode = 0;
  1154. }
  1155. BOOL AllowSetForegroundWindow(DWORD) =
  1156. BOOL AllowSetForegroundWindow(DWORD)
  1157. {
  1158. faulterrorcode = 0;
  1159. }
  1160. DWORD GetWindowThreadProcessId(HWND, LPDWORD lpdw) =
  1161. DWORD GetWindowThreadProcessId(HWND, LPDWORD lpdw)
  1162. {
  1163. lpdw = output;
  1164. faulterrorcode = 0;
  1165. }
  1166. DWORD WaitForInputIdle(DWORD, DWORD) =
  1167. DWORD WaitForInputIdle(DWORD, DWORD)
  1168. {
  1169. faulterrorcode = 0;
  1170. }
  1171. /* Private API: USER32 must run this thunk before any other.
  1172. *
  1173. */
  1174. VOID UsrThunkInit(DWORD pCB32Tab,
  1175. DWORD pfnCALLBACK_BODY_32,
  1176. LPDWORD ppfnWNDPROC_CALLBACK_16) =
  1177. VOID UsrThunkInit(DWORD pCB32Tab,
  1178. DWORD pfnCALLBACK_BODY_32,
  1179. LPDWORD ppfnWNDPROC_CALLBACK_16)
  1180. {
  1181. faulterrorcode = 0;
  1182. }
  1183. /* Signal proc called from Kernel32. See coresig.inc for detailed
  1184. * information about the various signals.
  1185. */
  1186. BOOL SignalProc32(DWORD dwSignal,
  1187. DWORD dwID,
  1188. DWORD dwFlags,
  1189. WORD hTask16) =
  1190. BOOL UserSignalProc(DWORD dwSignal,
  1191. DWORD dwID,
  1192. DWORD dwFlags,
  1193. DWORD hTask16)
  1194. {
  1195. faulterrorcode = 0;
  1196. }
  1197. BOOL AttachThreadInput(DWORD idAttach, DWORD idAttachTo, BOOL fAttach) =
  1198. BOOL AttachThreadInput(DWORD idAttach, DWORD idAttachTo, BOOL fAttach)
  1199. {
  1200. faulterrorcode = 0;
  1201. }
  1202. BOOL PlaySoundEvent(DWORD) =
  1203. BOOL PlaySoundEvent(DWORD)
  1204. {
  1205. faulterrorcode = 0;
  1206. }
  1207. /*
  1208. * Private api called by the gp fault thread and some shell threads.
  1209. */
  1210. VOID RegisterSystemThread(DWORD, DWORD) =
  1211. VOID RegisterSystemThread(DWORD, DWORD)
  1212. {
  1213. faulterrorcode = 0;
  1214. }
  1215. INT SysErrorBox(LPSTR text, LPSTR caption, WORD b1, WORD b2, WORD b3) =
  1216. INT SysErrorBox(LPSTR text, LPSTR caption, DWORD b1, DWORD b2, DWORD b3)
  1217. {
  1218. faulterrorcode = 0;
  1219. }
  1220. LONG WinOldAppHackoMatic(LONG) =
  1221. LONG WinOldAppHackoMatic(LONG)
  1222. {
  1223. faulterrorcode = 0;
  1224. }
  1225. //
  1226. // DRAG And Drop Menu
  1227. // Call back to 16 bit USER.EXE
  1228. //
  1229. BOOL MNDragOver(LPPOINT lppt, LPMNDRAGOVERINFO lpmndoi) =
  1230. BOOL MNDragOver(LPPOINT lppt, LPMNDRAGOVERINFO lpmndoi)
  1231. {
  1232. lpmndoi = output;
  1233. faulterrorcode = 0;
  1234. }
  1235. BOOL MNDragLeave () =
  1236. BOOL MNDragLeave ()
  1237. {
  1238. faulterrorcode = 0;
  1239. }
  1240. BOOL HasSystemSleepStarted(void) =
  1241. BOOL HasSystemSleepStarted(void)
  1242. {
  1243. faulterrorcode = 0;
  1244. }
  1245. BOOL UserIsSystemResumeAutomatic(void) =
  1246. BOOL UserIsSystemResumeAutomatic(void)
  1247. {
  1248. faulterrorcode = 0;
  1249. }
  1250. void UserTickleTimer(EXECUTION_STATE esFlags) =
  1251. void UserTickleTimer(EXECUTION_STATE esFlags)
  1252. {
  1253. faulterrorcode = 0;
  1254. }
  1255. void UserSetDeviceHoldState(EXECUTION_STATE esFlags, BOOL bState) =
  1256. void UserSetDeviceHoldState(EXECUTION_STATE esFlags, BOOL bState)
  1257. {
  1258. faulterrorcode = 0;
  1259. }
  1260. INT UserGetMouseMovePoints(LPVOID, LPVOID, UINT, DWORD) =
  1261. INT UserGetMouseMovePoints(LPVOID, LPVOID, UINT, DWORD)
  1262. {
  1263. faulterrorcode = 0;
  1264. }