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.

84 lines
2.5 KiB

  1. #ifndef _H_CECONFIG
  2. #define _H_CECONFIG
  3. #ifndef OS_WINCE
  4. #error The header ceconfig.h was intended for use on CE platforms only!
  5. #endif
  6. //CE control build no
  7. #define CE_TSC_BUILDNO 1000
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif /* __cplusplus */
  11. // Included in Windows CE builds only, this allows TS to determine at runtime
  12. // what platform it's running on.
  13. // WBT is basically a dumb terminal. Maxall is the fullblown OS with
  14. // all standard configurations included. Minshell is the OS with bare
  15. // bones UI support (including no auto-hide of the taskbar by default.)
  16. // Rapier is a palmsized device that lacks a keyboard.
  17. // Note: You want to run the following in your build windows on CE:
  18. // SET BUILD_OPTIONS=~win16 ~win32 wince
  19. typedef enum
  20. {
  21. CE_CONFIG_WBT,
  22. CE_CONFIG_MAXALL,
  23. CE_CONFIG_MINSHELL,
  24. CE_CONFIG_PALMSIZED // For CE 3.0, aka Rapier. For 2.11, wyvern.
  25. }
  26. CE_CONFIG;
  27. typedef HCURSOR (WINAPI *PFN_CREATECURSOR)(
  28. HINSTANCE hInst, // handle to application instance
  29. int xHotSpot, // x coordinate of hot spot
  30. int yHotSpot, // y coordinate of hot spot
  31. int nWidth, // cursor width
  32. int nHeight, // cursor height
  33. CONST VOID *pvANDPlane, // AND mask array
  34. CONST VOID *pvXORPlane // XOR mask array
  35. );
  36. extern CE_CONFIG g_CEConfig;
  37. extern BOOL g_CEUseScanCodes;
  38. extern PFN_CREATECURSOR g_pCreateCursor;
  39. #define UTREG_CE_LOCAL_PRINTERS TEXT("WBT\\Printers\\DevConfig")
  40. #define UTREG_CE_CACHED_PRINTERS TEXT("Software\\Microsoft\\Terminal Server Client\\Default\\AddIns\\RDPDR\\")
  41. #define UTREG_CE_NAME TEXT("Name")
  42. #define UTREG_CE_PRINTER_CACHE_DATA TEXT("PrinterCacheData0")
  43. #define UTREG_CE_CONFIG_KEY TEXT("Software\\Microsoft\\Terminal Server Client")
  44. #define UTREG_CE_CONFIG_NAME TEXT("CEConfig")
  45. #define UTREG_CE_USE_SCAN_CODES TEXT("CEUseScanCodes")
  46. #define UTREG_CE_CONFIG_TYPE_DFLT CE_CONFIG_WBT
  47. #define UTREG_CE_USE_SCAN_CODES_DFLT 1
  48. void CEUpdateCachedPrinters();
  49. CE_CONFIG CEGetConfigType(BOOL *CEUseScanCodes);
  50. void CEInitialize(void);
  51. BOOL OEMGetUUID(GUID* pGuid);
  52. extern BOOL gbFlushHKLM;
  53. //To AutoHide taskbar on CE
  54. void AutoHideCE(HWND hwnd, WPARAM wParam);
  55. //The English name for the CE root dir (used instead of drive letters for drive redirection)
  56. #define CEROOTDIR L"\\"
  57. #define CEROOTDIRNAME L"Files:"
  58. #ifdef __cplusplus
  59. }
  60. #endif /* __cplusplus */
  61. #endif // _H_CECONFIG