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.

69 lines
2.6 KiB

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