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.

75 lines
2.8 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // File: cm_def.h
  4. //
  5. // Module: CMDIAL32.DLL, CMDL32.EXE, CMMGR32.EXE, CMMON32.EXE, etc.
  6. //
  7. // Synopsis: Header file for all definitions common to the main CM components (CMDIAL,
  8. // CMMON, CMDL, etc.)
  9. //
  10. // Copyright (c) 1997-1999 Microsoft Corporation
  11. //
  12. // Author: nickball created 04/28/97
  13. // nickball moved globals to cmglobal.h 07/10/98
  14. //
  15. //+----------------------------------------------------------------------------
  16. #ifndef _CM_DEF
  17. #define _CM_DEF
  18. const TCHAR* const c_pszCmMonReadyEvent = TEXT("CmMon Ready");
  19. const TCHAR* const c_pszCMPhoneBookMutex = TEXT("Connection Manager Phonebook Access");
  20. //
  21. // IDs for data passed from CMDIAL to CMMON via WM_COPYDATA
  22. //
  23. #define CMMON_CONNECTED_INFO 0x0000
  24. #define CMMON_HANGUP_INFO 0x0001
  25. //
  26. // Structure of data passed from CMDIAL to CMMON via WM_COPYDATA
  27. //
  28. #define CMLEN 256
  29. typedef struct tagCmConnectedInfo
  30. {
  31. TCHAR szEntryName[CMLEN + 1]; // Name of Ras entry in connection table
  32. TCHAR szProfilePath[MAX_PATH + 1]; // Path of .CMP for entry
  33. TCHAR szUserName[CMLEN+1]; // For reconnect
  34. TCHAR szPassword[CMLEN + 1]; // For reconnect
  35. TCHAR szInetPassword[CMLEN + 1]; // For reconnect
  36. TCHAR szRasPhoneBook[MAX_PATH + 1]; // For reconnect
  37. DWORD dwCmFlags; // Cm specific flags
  38. DWORD dwInitBytesRecv; // For MSDUN12, read from registry pre-dial
  39. DWORD dwInitBytesSend; // initial bytes send
  40. BOOL fDialup2; // Whether the stat is in Dialup-adapter#2 registry key
  41. HANDLE ahWatchHandles[1]; // (MUST ALWAYS BE LAST MEMBER OF STRUCT) -
  42. // Array (null terminated) of Process handles
  43. } CM_CONNECTED_INFO, * LPCM_CONNECTED_INFO;
  44. typedef struct tagCmHangupInfo
  45. {
  46. TCHAR szEntryName[CMLEN + 1]; // Name of Ras entry in connection table
  47. } CM_HANGUP_INFO, * LPCM_HANGUP_INFO;
  48. //
  49. // Cm specific flags
  50. //
  51. #define FL_PROPERTIES 0x00000001 // settings display only
  52. #define FL_AUTODIAL 0x00000002 // autodialing
  53. #define FL_UNATTENDED 0x00000004 // unattended dial
  54. #define FL_RECONNECT 0x00000008 // its a reconnect request
  55. #define FL_REMEMBER_DIALAUTO 0x00000010 // dial-auto on reconnect
  56. #define FL_REMEMBER_PASSWORD 0x00000020 // remember password on reconnect
  57. #define FL_DESKTOP 0x00000040 // instance initiated from desktop
  58. #define FL_GLOBALCREDS 0x00000080 // has global credentials stored
  59. #define CELEMS(x) ((sizeof(x))/(sizeof(x[0])))
  60. #endif