Question about W2K3 Fax Security

G

Guest

I have written an install that installs the W2K3 fax service. I am running
into a problem setting security with the install program (Wise for Windows).
I want to enable the "Manage Fax Documents" for everyone but have haven't
had any luck. I have tried the registry setting
HKLM\Software\Microsoft\Fax\Security\Descriptor but that wasn't it.

Does anyone have any ideas where to go next? I would rather not have the
user have to go in to the fax console and set the security.

I appreciate any help.

Thanks,
Dave
 
R

Raghavendra R [MSFT]

You must make use of FaxSecurity Extended COM Object. Editing the registry
is not the proper way to do it as the location is not guaranteed to be the
same in future. I guess this has to be done in some sort of a custom action.

--
Raghavendra R
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.'
 
G

Guest

Do you know if there are any examples to look at? If not, can you provide one?

Thanks,
Dave
 
R

Raghavendra R [MSFT]

I cannot give you an example of custom action doing this. But if you are
asking for the code that shows how to use FaxSecurity object, here is the
snippet. This code reads the security descriptor & in your case you need to
create the desired SD & stuff it inside a variant as a SAFEARRAY of bytes.
void CFaxSecurityTest::Run()
{
HRESULT hr = S_OK;
CComPtr<IFaxSecurity> pFaxSecurity;
CComVariant vSD;
hr = pFaxServer->get_Security(&pFaxSecurity); // pFaxServer is
IFaxServer* - use CoCreateInstance to create & call Connect on it.
if (FAILED(hr))
{
return;
}
hr = pFaxSecurity->get_Descriptor(&vSD);
if (FAILED(hr))
{
return;
}
PSECURITY_DESCRIPTOR pSD = NULL;
hr = SafeArrayAccessData(vSD.parray, (void **) &pSD);
if (SUCCEEDED(hr))
{
if (!IsValidSecurityDescriptor(pSD))
{
hr = E_FAIL;
}
else
{
//
// Security descriptor is valid");
//
}
SafeArrayUnaccessData(vSD.parray);
}
return;
}


--
Raghavendra R
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top