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.

86 lines
3.0 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // File: cmcfg.cpp
  4. //
  5. // Module: CMCFG32.DLL
  6. //
  7. // Synopsis: This DLL contains the call CMConfig that transfers information from
  8. // a connectoid created by Connection Wizard to a Connection Manager
  9. // profile. The phone number, username, and password are transferred.
  10. // If a backup phone number exists in the pszInsFile, it also transferss
  11. // The backup file. The name of the connectoid to translate is pszDUN.
  12. // The format of the .ins file includes:
  13. //
  14. // [Backup Phone]
  15. // Phone_Number=<TAPI phone number starting with + or literal dial string>
  16. //
  17. // If the number starts with a +, it is assumed to be TAPI formatted
  18. //
  19. // Copyright (c) 1998-1999 Microsoft Corporation
  20. //
  21. // Author: a-frankh created 05/06/97
  22. // nickball cleaned-up 04/08/98
  23. // quintinb deprecated the CMConfig private interface 03/23/01
  24. //
  25. //+----------------------------------------------------------------------------
  26. #include "cmmaster.h"
  27. HINSTANCE g_hInst;
  28. //+---------------------------------------------------------------------------
  29. //
  30. // Function: CMConfig
  31. //
  32. // Synopsis: Transfers user information to CM profile
  33. //
  34. // Arguments: LPCSTR pszInsFile - full pathname of .ins file, pass NULL if no .ins file
  35. // LPCSTR pszDUN - name of connectoid/CM profile
  36. // THE NAME OF THE CONNECTOID AND SERVICE NAME OF THE CM PROFILE MUST MATCH!
  37. //
  38. // Notes: Operates by finding the location of the CM directory. Looks for .cmp files and
  39. // gets the .cms file. Looks in the .cms file for the service name and compares it.
  40. //
  41. //
  42. // Returns: TRUE if successful.
  43. //
  44. // History: a-frankh - Created - 5/6/97
  45. //----------------------------------------------------------------------------
  46. extern "C" BOOL WINAPI CMConfig(LPSTR pszInsFile, LPSTR pszDUN )
  47. {
  48. CMASSERTMSG(FALSE, TEXT("CMConfig -- The CMConfig Private Interface has been deprecated -- returning failure."));
  49. SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  50. return FALSE;
  51. }
  52. //+----------------------------------------------------------------------------
  53. //
  54. // Function: DllMain
  55. //
  56. // Synopsis: Main entry point into the DLL.
  57. //
  58. // Arguments: HINSTANCE hinstDLL - Our HINSTANCE
  59. // DWORD fdwReason - The reason we are being called.
  60. // LPVOID lpvReserved - Reserved
  61. //
  62. // Returns: BOOL WINAPI - TRUE - always
  63. //
  64. // History: nickball Created Header 4/8/98
  65. //
  66. //+----------------------------------------------------------------------------
  67. extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
  68. {
  69. if (fdwReason == DLL_PROCESS_ATTACH)
  70. {
  71. g_hInst = hinstDLL;
  72. //
  73. // Disable thread attach notification
  74. //
  75. DisableThreadLibraryCalls(hinstDLL);
  76. }
  77. return TRUE;
  78. }