Source code of Windows XP (NT5)
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.

41 lines
661 B

  1. // Copyright (C) 1997 Microsoft Corporation
  2. //
  3. // Network ID Tab hook
  4. //
  5. // 3-07-98 sburns
  6. #include "sysdm.h"
  7. HPROPSHEETPAGE
  8. CreateNetIDPage(int, DLGPROC)
  9. {
  10. TCHAR dll_name[MAX_PATH + 1] = {0};
  11. if (!::LoadString(hInstance, IDS_NETID_DLL_NAME, dll_name, MAX_PATH))
  12. {
  13. return 0;
  14. }
  15. HPROPSHEETPAGE result = 0;
  16. HINSTANCE netid = ::LoadLibrary(dll_name);
  17. if (netid)
  18. {
  19. typedef HPROPSHEETPAGE (*CreateProc)();
  20. CreateProc proc =
  21. reinterpret_cast<CreateProc>(
  22. ::GetProcAddress(netid, "CreateNetIDPropertyPage"));
  23. if (proc)
  24. {
  25. result = proc();
  26. }
  27. }
  28. return result;
  29. }