netid.cpp
资源名称:shell.rar [点击查看]
上传用户:xhy777
上传日期:2007-02-14
资源大小:24088k
文件大小:1k
源码类别:
系统编程
开发平台:
Visual C++
- // Copyright (C) 1997 Microsoft Corporation
- //
- // Network ID Tab hook
- //
- // 3-07-98 sburns
- #include "sysdm.h"
- HPROPSHEETPAGE
- CreateNetIDPage(HINSTANCE hInst)
- {
- TCHAR dll_name[MAX_PATH + 1] = {0};
- if (!::LoadString(hInst, IDS_NETID_DLL_NAME, dll_name, MAX_PATH))
- {
- return 0;
- }
- HPROPSHEETPAGE result = 0;
- HINSTANCE netid = ::LoadLibrary(dll_name);
- if (netid)
- {
- typedef HPROPSHEETPAGE (*CreateProc)();
- CreateProc proc =
- reinterpret_cast<CreateProc>(
- ::GetProcAddress(netid, "CreateNetIDPropertyPage"));
- if (proc)
- {
- result = proc();
- }
- }
- return result;
- }
English
