All Forums
 Microsoft Windows CE
 eVC Application Development
 Enabling WEP Through Registry Settings
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

ccoats

18 Posts

Posted - 16 Feb 2005 :  11:37:28  Show Profile  Email Poster
We are trying to enable the WEP feature on our ADS DCA through a registry setting and we are not having any success writing what is in the registry file and what actually gets stored into the Windows Registry.

We first enabled WEP manually by going into the Aironet Client Utility and setting the WEP by using a STATIC 128 bit WEP Key Value. After setting the value, we went into the Windows registry setting and read the data that we thought we needed. The data that we collected after enabling WEP was located at HKEY_LOCAL_MACHINE\Comm\Cisco1\Parms\Profile0 and the (3) binary values we saw were UserData, WepKeyTx, and WepKey1. We then read off the data for these 3 binary values and tried to in our software to read our registry settings file and based on these values set the Windows registry such that WEP would be enabled by writing these binary values in the Windows Registry.

The problem that we are having with our software is we are able to read these binary values out of the registry but when these values are written out to the Windows registry location the data that is actually being written to the Windows Registry is not correct. The data that appears to written to Windows registry is the data at the top of the stack and not the literal binary values that were read in by the software.

This Windows set value registry function call is the software we are utilizing to set the WEP registry information:

void registryIoWriteValue ( LPCWSTR entryName, char *theValues, DWORD noOfBytes)
{
LONG status;
DWORD size = sizeof(DWORD);

status = RegSetValueEx( hKeyResults, entryName, NULL, REG_BINARY,
(LPBYTE) &theValues, noOfBytes );
}

A binary value actually gets stored in the correct Windows Registry location but the data is not correct in the registry. We are wondering if the data is being manipulated because we are trying to establish the WEP through the registry and not by using the Aironet Client Utility.

Any help or suggestions would be appreciated.

ctacke

877 Posts

Posted - 16 Feb 2005 :  16:29:37  Show Profile  Email Poster
No, the driver won't be affecting the registry write. Can you send us the code you're using to do the actual write?
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.03 seconds. Snitz Forums 2000