Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#ifndef _SHSRVOBJ_H
#define _SHSRVOBJ_H
#include "dpa.h"
//
// class to manage shell service objects
//
typedef struct { CLSID clsid; IOleCommandTarget* pct; } SHELLSERVICEOBJECT, *PSHELLSERVICEOBJECT;
class CShellServiceObjectMgr { public: HRESULT Init(); void Destroy(); HRESULT LoadRegObjects(); HRESULT EnableObject(const CLSID *pclsid, DWORD dwFlags);
virtual ~CShellServiceObjectMgr();
private: static int WINAPI DestroyItemCB(SHELLSERVICEOBJECT *psso, CShellServiceObjectMgr *pssomgr); HRESULT _LoadObject(REFCLSID rclsid, DWORD dwFlags); int _FindItemByCLSID(REFCLSID rclsid);
static BOOL WINAPI EnumRegAppProc(LPCTSTR pszSubkey, LPCTSTR pszCmdLine, RRA_FLAGS fFlags, LPARAM lParam);
CDSA<SHELLSERVICEOBJECT> _dsaSSO; };
#endif // _SHSRVOBJ_H
|