home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / sdktools / spy / app / spyfuncs.h < prev    next >
Text File  |  1997-10-05  |  2KB  |  89 lines

  1.  
  2. /******************************************************************************\
  3. *       This is a part of the Microsoft Source Code Samples. 
  4. *       Copyright (C) 1993-1997 Microsoft Corporation.
  5. *       All rights reserved. 
  6. *       This source code is only intended as a supplement to 
  7. *       Microsoft Development Tools and/or WinHelp documentation.
  8. *       See these sources for detailed information regarding the 
  9. *       Microsoft samples programs.
  10. \******************************************************************************/
  11.  
  12. /*****************************************************************************\
  13. *
  14. * Module: spyfuncs.h
  15. *
  16. *   External function declarations for the Windows debugging Spy SDK applet.
  17. *
  18. \*****************************************************************************/
  19.  
  20.  
  21. //
  22. // dialogs.c
  23. //
  24.  
  25. BOOL MyDialogBox(INT idDlg, DLGPROC pfnDlgProc);
  26. BOOL CALLBACK AboutDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  27. BOOL CALLBACK SelectWindowDlgProc(HWND hwnd, UINT msg, WPARAM wParam,
  28.     LPARAM lParam);
  29. BOOL CALLBACK OutputDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  30. VOID SelectFont(VOID);
  31. BOOL CALLBACK MessagesDlgProc(HWND hwnd, UINT msg, WPARAM wParam,
  32.     LPARAM lParam);
  33.  
  34.  
  35. //
  36. // hook.c
  37. //
  38.  
  39. BOOL CreateHookThread(VOID);
  40. DWORD HookMain(LPVOID lpv);
  41. LRESULT CALLBACK HookWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  42. BOOL SetSpyHook(BOOL fSet);
  43. VOID SetWindowToSpyOn(HWND hwndSpyingOn);
  44.  
  45. #ifdef DBG
  46. VOID DbgPrintf(LPTSTR fmt, ...);
  47. #endif
  48.  
  49.  
  50. //
  51. // misc.c
  52. //
  53.  
  54. VOID ReadRegistry(VOID);
  55. VOID WriteRegistry(VOID);
  56. INT Message(UINT fuStyle, LPSTR pszFormat, ...);
  57. VOID SetSpyCaption(VOID);
  58. LPTSTR LoadResourceString(UINT wId);
  59.  
  60.  
  61. //
  62. // spy.c
  63. //
  64.  
  65. INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
  66.     LPSTR lpCmdLine, INT nCmdShow);
  67. LRESULT CALLBACK SpyWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  68.  
  69.  
  70. //
  71. // wm.c
  72. //
  73.  
  74. VOID CalculatePrintfTabs(HFONT hfont);
  75. VOID PrintMsg(LPMSG lpMsg);
  76.  
  77.  
  78. //
  79. // wprintf.c
  80. //
  81.  
  82. VOID MyCreatePrintfWin(HWND hwnd);
  83. VOID SetPrintfFont(HWND hwnd, HFONT hfont);
  84. VOID SetPrintfTabs(INT n, LPINT pTabs);
  85. VOID ClearPrintfWindow(HWND hwnd);
  86. BOOL CopyToClipboard(VOID);
  87. BOOL IsPrintfEmpty(VOID);
  88.  
  89.