Answered by:
ask for zhe SHA and SHV

Question
-
hi,all
I am a NAP for beginners,The development of the NAP also do not quite understand,There is a small problem now ask everyonein SdkSamples ,I can not run the Sdksha,void DoSHAExecution ( ) throw()
{
HRESULT hr = S_OK;
// Create Callback
IShaCallbackPtr callback = NULL;// pointer to the binding interface
CComPtr<INapSystemHealthAgentBinding> binding = NULL;// Create binding.
hr = binding.CoCreateInstance(CLSID_NapSystemHealthAgentBinding,
NULL,
CLSCTX_INPROC_SERVER);
if (FAILED(hr))
{
wprintf(L"\nSHA main: Failed to create an instance to QuarSystemHealthAgentBinding (error = %x)\n", hr);
goto Cleanup;
}callback = ShaCallback::CreateInstance(binding);
if (!callback)
{
wprintf(L"\nSHA main: Failed to call ShaCallback::CreateInstance (error = %x)\n", hr);
goto Cleanup;
}
hr = binding->Initialize(QuarSampleSystemHealthId,callback);When running to the last line,the error is "E_ACCESSDENIED",what can i do?In addition,Who developed the sha and shv ,can you give me some Tutorial?thanksmy english is very poor,sorrymy email is WillJGL@hotmail.comFriday, October 12, 2007 9:29 AM
Answers
-
Please refer to the infomation at http://www.microsoft.com/nap; specifically, the Network Access Protection Platform Architecture (http://www.microsoft.com/technet/network/nap/naparch.mspx) document. This documentation describes how SHAs and SHVs (and QECs) integrate with the NAP platform, how each component communicates with the NAP platform and when, and the greater site links should provide you with a little more information on how to create an SHV/SHA pair.
-Chris
Chris.Edson@online.microsoft.com *
SDET, Network Access Protection
* Remove the "online" make the address valid.
** This posting is provided "AS IS" with no warranties, and confers no rights.
Monday, October 22, 2007 10:12 PM
All replies
-
Hi,
Are your doing development on a Vista Client? If yes, did you make sure that your are running the code in an elevated window?
To launch an elevated window,
Click on Start->All Programs-> Accessories->Command Prompt
Right click on command prompt and click "Run as administrator" and enter the admin credentials if prompted.
Then run your program in this window and see if you get the same error.
Thanks,
Kedar
Friday, October 12, 2007 4:47 PM -
thinks
I know where is the wrong,i forget start the NAPAgent Servicesorrybut,I still do not understand with zhe sha and shvWhat is the use of sampleshvui?do you have some data of development?SHA sent to the health status can be arbitrarily added and SHV can validate any health of SHA sendedorthe health only is include in SoHAttributeValuetypedef union tagSoHAttributeValue {
SystemHealthEntityId idVal;
struct tagIpv4Addresses v4AddressesVal;
struct tagIpv6Addresses v6AddressesVal;
ResultCodes codesVal;
FILETIME dateTimeVal;
struct tagVendorSpecific vendorSpecificVal;
UINT8 uint8Val;
struct tagOctetString octetStringVal;
} SoHAttributeValue;the SoHAttributeValue can be extend?SHA sent what SoH said health?how zhe shv judge whether SoH is health?When the system calls callback method?I am very depressed nowTuesday, October 16, 2007 2:13 AM -
Please refer to the infomation at http://www.microsoft.com/nap; specifically, the Network Access Protection Platform Architecture (http://www.microsoft.com/technet/network/nap/naparch.mspx) document. This documentation describes how SHAs and SHVs (and QECs) integrate with the NAP platform, how each component communicates with the NAP platform and when, and the greater site links should provide you with a little more information on how to create an SHV/SHA pair.
-Chris
Chris.Edson@online.microsoft.com *
SDET, Network Access Protection
* Remove the "online" make the address valid.
** This posting is provided "AS IS" with no warranties, and confers no rights.
Monday, October 22, 2007 10:12 PM