Link to home
Start Free TrialLog in
Avatar of DavidDunn
DavidDunn

asked on

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?
ASKER CERTIFIED SOLUTION
Avatar of jhance
jhance

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DavidDunn
DavidDunn

ASKER

Could You give the exact location - I have the MSDN Library Visual Studio edition but I cannot find it.
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.
I don't know if the Visual Studio Library Edition has the SDK Samples.  BTW, the above reference is from the Oct97 issue.