• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 338
  • Last Modified:

Windows 95 Spy APIs

There is a Windows 95 DLL named WSIHK32.DLL which (from loading it up as a text-file
and viewing it) appears to contain the following functions:

@__lockDebuggerData$qv
@__unlockDebuggerData$qv
ShkAddInfo
ShkCallWndProcHook
ShkFindInfo
ShkFini
ShkGetMessageHook
ShkIniDrawTreeBits
ShkInit
ShkLiteIndex
ShkUpdateInfo
SpyAppendBitNames
SpyBitNames
SpyCancelFindWindowMode
SpyChooseDiamond
SpyCloseMutex
SpyFindClassInfo
SpyFindMsgInfo
SpyFlushTraceMsg
SpyFormatChar
SpyFormatClassName
SpyFormatWindowPos
SpyGetClassInfoIdx
SpyGetIndexRect
SpyGetInfo
SpyGetMutex
SpyGetNextProcessInfo
SpyGetProcessInfo
SpyGetTraceLostCount
SpyGetTraceMsg
SpyGetTrueParent
SpyGetWindowRectInParent
SpyGrabMem
SpyGrabString
SpyIndexOfClass
SpyIndexOfWindow
SpyInfoOfIndex
SpyKeyName
SpyLineOfIndex
SpyLoadExtDlls
SpyMarkWindow
SpyMemoryBox
SpyOpenMutex
SpyPaintClassStyle
SpyPaintNonzeroHiLP
SpyPaintNonzeroLP
SpyPaintNonzeroLoLP
SpyPaintNonzeroWP
SpyPaintWinExStyle
SpyPaintWinStyle
SpyRegisterClassInfo
SpyReleaseMutex
SpyScreenRectToClient
SpyTraceProcess
SpyUnloadExtDlls
SpyUpdateInfoTitle
SpyValueName
SpyVisibleIndex
TreGetScrollRange
WfoAddAtom
WfoCheckAllClasses
WfoDeleteAtom
WfoFindAtom
WfoGetModuleName
_Shk_fDebug3
_Shk_fDebug4
_Shk_fGrabDebugLog
_Shk_fPaintDebugLog
_Shk_uiSema4Timeout
_Spy_Frame
_Spy_aClassDInfo
_Spy_aTraceMsg
_Spy_aTreeDInfo
_Spy_afMsgSelected
_Spy_ahmodDll
_Spy_apClassInfo
_Spy_apfnMsgPainter
_Spy_cmdTrace
_Spy_cxFrame
_Spy_cxScrollIncr
_Spy_cxTreeBits
_Spy_cyFrame
_Spy_cySysChar
_Spy_fCheckTree
_Spy_fTraceAll
_Spy_fTraceNew
_Spy_fTraceOther
_Spy_fs
_Spy_fsOptions
_Spy_hbmpTree
_Spy_hdcBits
_Spy_hinst
_Spy_hwndDesktop
_Spy_hwndDoodle
_Spy_hwndFrame
_Spy_lpClassInfoFirst
_Spy_lpScratchSeg
_Spy_msgNew
_Spy_nIgnoreLevel
_Spy_szDebugMsgLog
_Spy_szExtDLLProf
_Spy_szTemp
_Spy_wWinVer
__DebuggerHookData
_dbg1
_dbg2
_dbg3
_dbg4
_fCloseDown
_fLoadWindows
_fstrncpyz

Where can I find details on how to declare them (ie. their prototype) and
descriptions of their functionality?
0
DavidDunn
Asked:
DavidDunn
  • 3
1 Solution
 
jhanceCommented:
The program and DLL referenced above is documented (including source code) on the MSDN (Microsoft Developer Network) CDROM.  Since the code says it is copyrighted I cannot reproduce it here but I can recommend that if you plan on doing any serious Windows development, you should subscribe to it youself anyway.

The information you need will be on the LIBRARY CDROM and you can get it with any subscription level.  I'd recommend the PROFESSIONAL, however.
0
 
DavidDunnAuthor Commented:
Could You give the exact location - I have the MSDN Library Visual Studio edition but I cannot find it.
0
 
jhanceCommented:
Just search for keyword SPY.  One of the items is at: mk:@ivt:vcsample/F14/F1D/D3E/S1CD56.HTM

SPY: Monitoring Messages with SPY

Click to open or copy the Spy project files.


The Spy tool demonstrates how to monitor system messages sent to a specified window. Spy records the messages and displays them on the specified device. Spy is also useful in debugging, to verify that the messages you think a window is receiving are actually being received.

Spy demonstrates the following techniques:

Using a system message hook.
Using the WM_COPYDATA message to pass data to another application.
Reading and writing the registry.
Creating a thread.
Creating a DLL for the hook.
0
 
jhanceCommented:
I don't know if the Visual Studio Library Edition has the SDK Samples.  BTW, the above reference is from the Oct97 issue.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now