Here is what I used for the IisAdmin.dll:
prototype cdecl iisadmin.InstallWebsite ( BYREF STRING, BYREF STRING );
prototype cdecl iisadmin.RemoveWebsite ( BYREF STRING );
//............................................................
// temp ------------------------------------------------------
UseDLL ( SUPPORTDIR ^ "iisadmin.dll" );
MessageBox ( "Installing Website", INFORMATION );
nTest = InstallWebsite ( "TestMe", "c:\\Temp" );
Sprintf ( szValue, "Installed Website nTest = %d", nTest );
MessageBox ( szValue, INFORMATION );
MessageBox ( "Removing Website", INFORMATION );
nTest = RemoveWebsite ( "TestMe" );
Sprintf ( szValue, "Removed Website nTest = %d", nTest );
MessageBox ( szValue, INFORMATION );
UnUseDLL ( SUPPORTDIR ^ "iisadmin.dll" );
IS will complain about the literals... To avoid this, simply replace the "TestMe" or what ever is in quotes with a variable. It was a 5 minute test for me and I did not want to spend much time on it since I was skeptical about it working.
This actually worked well for me. Did you use "cdecl" in your prototype? That is usually a common issue if your dll just fails.
Now here is my question... I don't usually like to include code in my projects if I can't compile it so I can make changes, if needed. Any tips on compiling this?
Thanx!