您的位置:首页 > 理论基础 > 计算机网络

如何创建一个映射驱动器使用的网络连接对话框

2009-11-07 09:28 615 查看
; -- MapDrive1.iss --
;
; This script shows how to create a drive map using the network connection dialog box.
; - Lambert Antonio.

[Setup]
AppName=ISX [Map Drive]
AppVerName=ISX [Map Drive] 1.0
DefaultDirName=C:\ISX

[Files]

[Code]
const
RESOURCETYPE_DISK = 1;

function WNetConnectionDialog(hWnd: Integer; dwType: Integer): Integer;
external 'WNetConnectionDialog@mpr.dll stdcall';

function NextButtonClick(CurPage: Integer): Boolean;
begin
if CurPage = 0 then
WNetConnectionDialog(0, RESOURCETYPE_DISK);
Result := True;
end;本文出自 “学无止境” 博客,请务必保留此出处http://dqk1985.blog.51cto.com/1005868/223418
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐