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.

67 lines
2.5 KiB

  1. //
  2. // Microsoft Windows Media Technologies
  3. // Copyright (C) Microsoft Corporation, 1999 - 2001. All rights reserved.
  4. //
  5. // MSHDSP.DLL is a sample WMDM Service Provider(SP) that enumerates fixed drives.
  6. // This sample shows you how to implement an SP according to the WMDM documentation.
  7. // This sample uses fixed drives on your PC to emulate portable media, and
  8. // shows the relationship between different interfaces and objects. Each hard disk
  9. // volume is enumerated as a device and directories and files are enumerated as
  10. // Storage objects under respective devices. You can copy non-SDMI compliant content
  11. // to any device that this SP enumerates. To copy an SDMI compliant content to a
  12. // device, the device must be able to report a hardware embedded serial number.
  13. // Hard disks do not have such serial numbers.
  14. //
  15. // To build this SP, you are recommended to use the MSHDSP.DSP file under Microsoft
  16. // Visual C++ 6.0 and run REGSVR32.EXE to register the resulting MSHDSP.DLL. You can
  17. // then build the sample application from the WMDMAPP directory to see how it gets
  18. // loaded by the application. However, you need to obtain a certificate from
  19. // Microsoft to actually run this SP. This certificate would be in the KEY.C file
  20. // under the INCLUDE directory for one level up.
  21. // stdafx.h : include file for standard system include files,
  22. // or project specific include files that are used frequently,
  23. // but are changed infrequently
  24. #if !defined(AFX_STDAFX_H__896E741D_3851_11D3_AA54_00C04FD22F6C__INCLUDED_)
  25. #define AFX_STDAFX_H__896E741D_3851_11D3_AA54_00C04FD22F6C__INCLUDED_
  26. #if _MSC_VER >= 1000
  27. #pragma once
  28. #endif // _MSC_VER >= 1000
  29. #define STRICT
  30. #if !defined(_WIN32_WINNT)
  31. #define _WIN32_WINNT 0x0400
  32. #endif
  33. #define _ATL_APARTMENT_THREADED
  34. #include <atlbase.h>
  35. //You may derive a class from CComModule and use it if you want to override
  36. //something, but do not change the name of _Module
  37. extern CComModule _Module;
  38. #include <atlcom.h>
  39. #include <atlctl.h>
  40. #include "hdspRC.h" // main symbols
  41. #include "MsHDSP.h"
  42. #include "MdspDefs.h"
  43. #include "loghelp.h"
  44. #include "scserver.h"
  45. #include "MDServiceProvider.h"
  46. #include "MDSPDevice.h"
  47. #include "MDSPStorage.h"
  48. #include "MDSPStorageGlobals.h"
  49. #include "MDSPEnumDevice.h"
  50. #include "MDSPEnumStorage.h"
  51. //{{AFX_INSERT_LOCATION}}
  52. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  53. #endif // !defined(AFX_STDAFX_H__896E741D_3851_11D3_AA54_00C04FD22F6C__INCLUDED)