|
My question is related to ISAPI programming using vc++.
Can any one tell me what is the format of URL that ISA passes to Web filters
Does the URL contain the user's login name ("AUTH_NAME") header and the group information of the user (in the sense which Group in Active directory does the user belong to)?
Thank you.
|
|
|
|
|
Did you not understand ferrix reply to you on the ISAServer.org forum ?
"Easiest resource I found is to try it "
led mike
|
|
|
|
|
"
led mike wrote: "Easiest resource I found is to try it [Smile] "
????
If I could try it why would I approach code project. What are you nuts? or you think you are ruler in this field?. The simplest answer for me would me YES or NO
For any one searching for the answer, yes you can. You needs to listed to "SF_NOTIFY_AUTH_COMPLETE" event sent by ISA and get the server variable "AUTH_USER", and by the way ferrix is the one who have me the idea on isaserver.org
|
|
|
|
|
I want to create ActiveX control which calls COM DLL from Delphi. I have tried this way
HINSTANCE m_sampleDLL = LoadLibrary("D:\\SampleDLL.dll");
m_sample_dll = (SAMPLE)GetProcAddress(m_sampleDLL,"TestFunction");
but I am unable to get handle to Testfunction.
Is this way is correct? or wether I have to use some other technique to call DLL which COM and written in Delphi.
Please Help!
THANX...
CraZyToLearn
|
|
|
|
|
You have to access COM components methods following COM rules.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Thanks CPallini,
I really new to all these, Will you please help me in this respect, Means How to access COM components Methods.
CraZyToLearn
|
|
|
|
|
See here.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Pallini's reply still holds.
But are you sure SampleDLL.dll has exported function called TestFunction.
|
|
|
|
|
Thanks Rajkumar ,
TestFunction is not export function, but its COM componet so is there any other way, We cant change Delphi DLL.
CraZyToLearn
|
|
|
|
|
what you are expected from sampleDLL.dll. As you are calling from your activex, you might be having some specfication to use it. Do you want the COM object to be created from the dll?
|
|
|
|
|
I had a very length process(unestimated time) on my dialog box and I need
to display progress bar on the MainFrame. wht I did is start a thread on the first line of the button press event
and from the thread I will calling the Function in the MAinFrame. I am able to acces the funcion, but it did not work.
|
|
|
|
|
Why?
Didn't you read DavidCrow answer, did you?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
|
Then you did something wrong because that's the way to go...
|
|
|
|
|
|
Please tell me how to inject a dll into another process ?
Thanx in advance ...
|
|
|
|
|
there are several articles about that on codeproject..
Don't try it, just do it!
|
|
|
|
|
|
tina- wrote: Please tell me how to inject a dll into another process ?
By searching.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
tina- wrote: Please tell me how to inject a dll into another process ?
hacking??
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
I had a very length process(unestimated time) on my dialog box and I need
to display progress bar on the MainFrame. wht I did is start a thread on the first line of the button press event
and from the thread I will calling the Function in the MAinFrame. I am able to acces the funcion, but it did not work.
May I know, if you have any smart idea to do this...
----------------------------------------------------------------------------------
CMainFrame *pfrm = ptp->pCA; // alone works fine on button click event, but doesn't work from thread
pfrm->OnTestBar();
-------------------------------------------------------------------------------------
UINT TestPbDlg:: thPrgbar( LPVOID pParam )
{
THREADPARAMS *ptp = reinterpret_cast<THREADPARAMS *>(pParam);
CMainFrame *pfrm = ptp->pCA;
pfrm->OnTestBar();
..
}
void CMainFrame::OnTestBar()
{
CProgressBar bar(_T("Progress"), 40, 100, TRUE); //CProgressBar drived from CProgressCtrl
for (int i = 0; i <100; i++)
{
bar.StepIt();
PeekAndPump();
Sleep(10);
if (bar.GetPos()==500)
{
bar.SetStep(-1);
}
else if (bar.GetPos()==0)
{
bar.SetStep(1);
}
}
}
BOOL PeekAndPump()
{
static MSG msg;
while (::PeekMessage(&msg,NULL,0,0,PM_NOREMOVE)) {
if (!AfxGetApp()->PumpMessage()) {
::PostQuitMessage(0);
return FALSE;
}
}
return TRUE;
}
|
|
|
|
|
ptr_Electron wrote: I am able to acces the funcion
But you shouldn't be. That defeats the whole purpose for having a secondary thread. Instead, as the secondary thread does its work, have it post "update" messages to the primary thread.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I sorry it did not work..
|
|
|
|
|
Ok.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|