Article View: borland.public.cppbuilder.internet.socket
Article #5220use IID_IISIPSecurity for IIS ADSI
From: Norman Su
Date: Sun, 03 Oct 2004 06:37
Date: Sun, 03 Oct 2004 06:37
26 lines
1931 bytes
1931 bytes
Hello All:
Did anyone ever control IIS IPSecurity withIISIPSecurity ? I will
code a program to control IIS Access IP.
the sample code:
IISIPSecurity *pSecurity=NULL;
IISIPSecurity *pSec;
SAFEARRAY *psa;
if(ADsGetObject(L"IIS://localhost/MSFTPSVC/1/ROOT/IPSecurity",
IID_IISIPSecurity,(void**)&pSecurity)) {
ShowMessage("test");
pSecurity->put_GrantByDefault(0);
//....
}
When I compile the program , it result in link error.
Unresolved external '_IID_IISIPSecurity' referenced from C:\PROGRAM
FILES\BORLAND\CBUILDER6\PROJECTS\test\unit1.obj
I try to search the web with google.I got a answer of using vc++.
http://groups.google.com.tw/groups?hl=zh-TW&lr=&ie=UTF-8&newwindow=1&threadm=u80jAVj9AHA.1652%40tkmsftngp03&rnum=1&prev=/groups%3Fq%3D_IID_IISIPSecurity%26num%3D20%26hl%3Dzh-TW%26lr%3D%26ie%3DUTF-8%26newwindow%3D1%26sa%3DN%26tab%3Dwg
I import lib with "implib -a adsiis.lib adsiis.dll" .But the error is
the same. Could I import another dll or lib ?
Tbanks for your help.
Technical Details
Message-ID:
<415f9e10@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ee8e80ceb0c61d2c,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sun, 03 Oct 2004 14:37:00 +0800 From: Norman Su <snpshu@spymac.com> User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: use IID_IISIPSecurity for IIS ADSI Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 220.135.21.136 Message-ID: <415f9e10@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1096785424 220.135.21.136 (2 Oct 2004 23:37:04 -0700) Lines: 26 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail