Source code of Windows XP (NT5)
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.

17 lines
950 B

  1. 1. To create a standalone snapin do the following
  2. a) A sample snapin is created in samplesnap.?xx files. Use this to get started for a standalone snapin. (USe the standalone part & ignore namespace sample).
  3. b) A CBaseSnapin derived class is created for each snapin. This encapsulates the ComponentData and can create component.
  4. c) The ComponentData and Component delegates any calls to the underlying CBaseSnapinItem derived object. A CBaseSnapinItem is derived from IDataObject (which is also a cookie) which implements default implementation for most of the actions.
  5. d) Add your SNAPININFO and nodetypes to inc\nodetypes.hxx. (Use these snapininfo & nodetypes in CBaseSnapinItem derived class).
  6. e) Add your ComponentData & About objects in TestSnapins.idl.
  7. f) Add any of your resources to TestSnapins.rc.
  8. g) Add an entry to your CBaseSnapin derived object in TestSnapinsList.hxx.
  9. 2. To create a namespace extension snapin do the following