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.

77 lines
2.0 KiB

  1. // stdafx.h : include file for standard system include files,
  2. // or project specific include files that are used frequently,
  3. // but are changed infrequently
  4. #if !defined(AFX_STDAFX_H__F29E75EE_C15E_45E7_BFDD_D8D5F7CB49CC__INCLUDED_)
  5. #define AFX_STDAFX_H__F29E75EE_C15E_45E7_BFDD_D8D5F7CB49CC__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #ifndef STRICT
  10. #define STRICT
  11. #endif
  12. #ifndef _ATL_APARTMENT_THREADED
  13. #define _ATL_APARTMENT_THREADED
  14. #endif
  15. #ifndef _WIN32_WINNT
  16. #define _WIN32_WINNT 0x0400
  17. #endif
  18. //#include <win95def.h>
  19. #include <atlbase.h>
  20. //#include "wmsstd.h"
  21. //
  22. // Guid for property page
  23. //
  24. struct __declspec (uuid("{D1063C57-F968-4d6e-BAB7-EE8C8782D53E}")) FavoritesPropPage;
  25. class CRapiModule : public CComModule
  26. {
  27. public:
  28. CRapiModule() : g_fDeviceConnected(FALSE)
  29. {
  30. #ifdef ATTEMPT_DEVICE_CONNECTION_NOTIFICATION
  31. g_fInitialAttempt = TRUE;
  32. #endif
  33. }
  34. BOOL g_fDeviceConnected;
  35. #ifdef ATTEMPT_DEVICE_CONNECTION_NOTIFICATION
  36. BOOL g_fInitialAttempt;
  37. #endif
  38. };
  39. //You may derive a class from CComModule and use it if you want to override
  40. //something, but do not change the name of _Module
  41. extern CRapiModule _Module;
  42. #include <atlcom.h>
  43. #include <atlctl.h>
  44. #include <mswmdm.h>
  45. //
  46. // Functions for CE Device
  47. //
  48. #include "rapi.h"
  49. #include <dccole.h>
  50. #include "scserver.h"
  51. extern CSecureChannelServer *g_pAppSCServer;
  52. extern HRESULT __stdcall CeUtilGetSerialNumber(WCHAR *wcsDeviceName, PWMDMID pSerialNumber, HANDLE hExit, ULONG fReserved);
  53. extern HRESULT __stdcall CeGetDiskFreeSpaceEx(LPCWSTR lpDirectoryName, PULARGE_INTEGER lpFreeBytesAvailableToCaller, PULARGE_INTEGER lpTotalNumberOfBytes, PULARGE_INTEGER lpTotalNumberOfFreeBytes);
  54. #define STRSAFE_NO_DEPRECATE
  55. #include "StrSafe.h"
  56. //{{AFX_INSERT_LOCATION}}
  57. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  58. #endif // !defined(AFX_STDAFX_H__F29E75EE_C15E_45E7_BFDD_D8D5F7CB49CC__INCLUDED)