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?
DavidDunnAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.