Win2k下isapi dll调试设置
1.控制面板/管理工具/Internet Services Manager/要设置的网站/属性/主目录
设置最下面的"应用程序保护"为"低(IIS 进程)"
将存放dll的虚拟目录同样设置……
2.控制面板/管理工具/服务
将HTTP/FTP/SMTP服务设置为手工开启
3.控制面板/管理工具/本地安全设置/本地策略/用户权利指派
在"以操作系统方式操作"中添加你的用户名,
如果不清楚或者是开发用机器,就设置为everyone算了,呵呵
4.将以下文本粘贴到一个新文件中,保存为IISProcess.reg
并双击合并之,以设置IIS作为一个进程而不是缺省的服务运行
如果要恢复则复制下面的另外一个IISService.reg合并之
不过偶发现不进行这一步好像也可以调试,只是不知有何缺陷 :)
5.重起 :)
很简单,但是不知道的怎么做的话就是想不到,呵呵
Delphi中将要调试的ISAPI DLL的选项里的输出目录设置为你的IIS的
scripts目录,在DELPHI/运行/参数/Host Application里面填
?:\winnt\system32\inetsrv\inetinfo.exe
参数为-e w3svc,然后就可以运行,再通过浏览器访问你的DLL
即可进行断点、跟踪调试……
IISProcess.reg
REGEDIT4
[HKEY_CLASSES_ROOT\AppID\{61738644-F196-11D0-9953-00C04FD919C1}]
"LocalService"=-
"RunAs"=-
[HKEY_CLASSES_ROOT\AppID\{9F0BD3A0-EC01-11D0-A6A0-00A0C922E752}]
"LocalService"=-
"RunAs"=-
[HKEY_CLASSES_ROOT\AppID\{A9E69610-B80D-11D0-B9B9-00A0C922E750}]
"LocalService"=-
"RunAs"="Interactive User"
[HKEY_CLASSES_ROOT\ClsID\{61738644-F196-11D0-9953-00C04FD919C1}]
"LocalService"=-
[HKEY_CLASSES_ROOT\ClsID\{9F0BD3A0-EC01-11D0-A6A0-00A0C922E752}]
"LocalService"=-
[HKEY_CLASSES_ROOT\ClsID\{A9E69610-B80D-11D0-B9B9-00A0C922E750}]
"LocalService"=-
[HKEY_CLASSES_ROOT\ClsID\{61738644-F196-11D0-9953-00C04FD919C1}\LocalServer32]
""="c:\\winnt\\system32\\inetsrv\\inetinfo.exe -e w3svc"
[HKEY_CLASSES_ROOT\ClsID\{9F0BD3A0-EC01-11D0-A6A0-00A0C922E752}\LocalServer32]
""="c:\\winnt\\system32\\inetsrv\\inetinfo.exe -e w3svc"
[HKEY_CLASSES_ROOT\ClsID\{A9E69610-B80D-11D0-B9B9-00A0C922E750}\LocalServer32]
""="c:\\winnt\\system32\\inetsrv\\inetinfo.exe -e w3svc"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\IISADMIN]
"Start"=dword:3
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSDTC]
"Start"=dword:3
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC]
"Start"=dword:3
IISService.reg
REGEDIT4
[HKEY_CLASSES_ROOT\AppID\{61738644-F196-11D0-9953-00C04FD919C1}]
"LocalService"="IISADMIN"
"RunAs"=-
[HKEY_CLASSES_ROOT\AppID\{9F0BD3A0-EC01-11D0-A6A0-00A0C922E752}]
"LocalService"="IISADMIN"
"RunAs"=-
[HKEY_CLASSES_ROOT\AppID\{A9E69610-B80D-11D0-B9B9-00A0C922E750}]
"LocalService"="IISADMIN"
"RunAs"=-
[HKEY_CLASSES_ROOT\ClsID\{61738644-F196-11D0-9953-00C04FD919C1}]
"LocalService"="IISADMIN"
[HKEY_CLASSES_ROOT\ClsID\{9F0BD3A0-EC01-11D0-A6A0-00A0C922E752}]
"LocalService"="IISADMIN"
[HKEY_CLASSES_ROOT\ClsID\{A9E69610-B80D-11D0-B9B9-00A0C922E750}]
"LocalService"="IISADMIN"
[-HKEY_CLASSES_ROOT\ClsID\{61738644-F196-11D0-9953-00C04FD919C1}\LocalServer32]
[-HKEY_CLASSES_ROOT\ClsID\{9F0BD3A0-EC01-11D0-A6A0-00A0C922E752}\LocalServer32]
[-HKEY_CLASSES_ROOT\ClsID\{A9E69610-B80D-11D0-B9B9-00A0C922E750}\LocalServer32]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\IISADMIN]
"Start"=dword:3
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSDTC]
"Start"=dword:2
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC]
"Start"=dword:2