Bridge Base Class (Windows CE 5.0)
The bridge base class for the PC Card socket service shared code library can be found in %_WINCEROOT%\Public\Common\Oak\Drivers\PCCard\Common\Bridgebase.h. This class is used to provide hardware access, handle the registry and manage resources. The CPCCARDBusBridgeBase class is the common code for a bridge class driver and implements all common code necessary for a bridge class. The following code example shows the data and function members provided by the CPCCardBusBridgeBase class.
BOOL loadPcCardEntry(); \\Establishes a connection to the PCMCIA service driver
LPCTSTR GetSocketName(); \\Returns a user friendly socket name
\\Pointers to PCMCIA Servicce driver functions
PF_SS_CALLBACK m_pCallBackToCardService;
PF_CS_ADD_SOCKET m_pRequestSocketNumber;
PF_CS_DELETE_SOCKET m_pDeleteSocket;
BOOL LoadWindowsSettings();
The LoadWindowsSettings function reads the memory and I/O window initialization settings from the registry. For more information, see PC Card Socket Service Shared Code Library Registry Settings.
The GetMemWindowCount function returns the number of memory windows as indicated in the registry. If the nSlotNo parameter is set to -1, the total number of memory windows as specified in the registry will be returned. Otherwise, the function returns the number of memory windows designated for the specified slot.
The GetIoWindowCount function returns the number of I/O windows as indicated in the registry. If the nSlotNo parameter is set to -1, the total number of I/O windows as specified in the registry will be returned. Otherwise, the function returns the number of I/O windows designated for the specified slot.
During initialization of the bridge class, the LoadPCCardEntry function should be called to establish a connection to the PC Card server driver. The LoadWindowsSettings function should also be called to load the windows settings from the registry.
See Also
PC Card Socket Service Shared Code Library | Window Classes | Socket Class | Static Window Classes | PC Card Socket Service Shared Code Library Registry Settings
Send Feedback on this topic to the authors