Friday, June 25, 2010

Stream Driver Load Issue

Hi All,
We would have seen many issues while writing a stream drvier. Today i faced an peculiar issue.
I was trying to implement a service ( a stream Interface DLL).
DLL_PROCESS_ATTACH is called and immediately DLL_PROCESS_DETACH is called, i was struggling for more than 3 hours why?.
I changed the .cpp to .c and was changing the Sources file, Registry file and everything. Nothing helped.
Atlast the issue was Uppercase I. Yes.
In my Deinit function instead of XXX_Deinit I had XXX_DeInit. This is the culpirit.

When the Device.exe/Services.exe loads the DLL, it checks whether all the interfaces are properly defined. It sees that XXX_Deinit is not defined properly, so it unloads the DLL and sends DLL_PROCESS_DETACH .. and exits.

So friends, be Sensitive for Case Sensitive

Monday, June 21, 2010

AKU Version In Windows Mobile Build Tree

Sometimes we may not know what is the AKU Version and would like to see that.
Where to see?
bldver.h contains OS version, Build Version.

Location: WM6530\PUBLIC\COMMON\SDK\INC\
One sample data:
#define CE_MAJOR_VER 0x0005
#define CE_MINOR_VER 0x0002 // Minor version is in hundredths

#define CE_BUILD_VER 23096
#define CE_BUILD_SYSVER 4134

this OS Kernel is CE5.02 , AKU Version is 23096