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.

38 lines
677 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 szDllName[MAX_PATH] = {0};
  11. LoadString(hInstance, IDS_NETID_DLL_NAME, szDllName, ARRAYSIZE(szDllName));
  12. HPROPSHEETPAGE result = 0;
  13. HINSTANCE netid = ::LoadLibrary(szDllName);
  14. if (netid)
  15. {
  16. typedef HPROPSHEETPAGE (*CreateProc)();
  17. CreateProc proc =
  18. reinterpret_cast<CreateProc>(
  19. ::GetProcAddress(netid, "CreateNetIDPropertyPage"));
  20. if (proc)
  21. {
  22. result = proc();
  23. }
  24. }
  25. return result;
  26. }