You just write a method with the same signature as the 'real' function, and add your own code to return a good or bad status as appropriate. For example the Windows function GetFileVersionInfo() could be coded like this
BOOL GetFileVersionInfo(LPCTSTR lptstrFilename,
DWORD dwHandle,
DWORD dwLen,
LPVOID lpData
)
{
OutputDebugString("My test");
return TRUE;
}
MVP 2010 - are they mad?