yashsingh1/xdaforums huggingface dataset:
[Shift General] saiweb:
I also reflected the dll in C# and here is the output

namespace SmartDeviceProject34

{

using System;

using System.ComponentModel;

using System.Windows.Forms;

public class UserControl1 : UserControl

{

private IContainer components = null;

public UserControl1()

{

this.InitializeComponent();

}

public void ActiveSDIO()

{

}

public int ConnectSDIO(string HardWareAddress)

{

return 0;

}

public void DefaultSDIO(int SDIOHandle)

{

}

protected override void Dispose(bool disposing)

{

if (disposing && (this.components != null))

{

this.components.Dispose();

}

base.Dispose(disposing);

}

private void InitializeComponent()

{

this.components = new Container();

base.AutoScaleMode = AutoScaleMode.Dpi;

}

}

}
[Shift General] saiweb:
I think I found issue with SD.

I might be wrong too. The FSD is screwed by HTC when they build the Platform using Platform Builder for SnapVue :mad:. The issue here is SD card is not mounted at all :eek:. If it is mounted the System.IO.DirectoryInfo and System.IO.FileSystemInfo would automatically recognize it, and by default the System.IO.FileAttributes.Temporary attribute would have been set to the Flash Memory or SD in Windows Mobile.

public static string GetStorageCard()
{
//initialize the path as an empty string
string firstCard = "";

System.IO.DirectoryInfo di = new System.IO.DirectoryInfo("\\");
System.IO.FileSystemInfo[] fsi = di.GetFileSystemInfos();
//iterate through them
for (int x = 0; x < fsi.Length; x++)
{
//check to see if this is a temporary storage card (e.g. SD card)
if ((fsi[x].Attributes & System.IO.FileAttributes.Temporary) == System.IO.FileAttributes.Temporary)
{
//if so, return the path of SD Card
firstCard = fsi[x].FullName;
}
}

return firstCard;
}

I ran this on HTC Shift, Omnia and Fuze. In the case of Fuze and Omnia it returned firstCard as "\Storage Card" and the case of Shift it is an empty string as expected. In Omnia and Fuze the Storage Card is mounted and in our Shift it is not mounted at all. Thats why it is not seeing it.

Now I am searching on Internet for any kind of help or example that would let me mount the storage card as soon as WM is booted. Until now no luck. :(

--Ram--
[Shift General] weixiong:
when i have time i will do that and upload it~~
[Shift General] weixiong:
im sure the sd can works,but the dll that person has uploaded is not the dll i have got.i think he just got the wrong dll..i remember the dll that i got is about 20k,so i dont think its an empty file.

so what do you think body?do you have any idea to solve the problem?
[Shift General] saiweb:
I think the original dll you were referring might be mounting the Storage Card as soon as WM boots. I am searching through the net for help on mounting storage card to Windows Mobile.

--Ram--
[Shift General] xda_shfit:
weixiong, i have seen the radio too, and i also wish the sd can work. However, I downloaded the dll file from the qq group 51955914. If you can recover your downloaded dll file, you will find it is the same one as me. I don't know why it is a empty file.
[Shift General] saiweb:
interesting

I installed neuROM neuStorageManager from http://www.nuerom.com/BlogEngine/page/nueStorageManager.aspx and checked to see if it lists out card as unmounted. Guess what, all I could see is FLASHDR Microsoft Flash Disk of size 86.13MB and 4 partitions. I am disappointed, but thats ok, we will find a solution. I am sure.

Thanks

Ram
[Shift General] weixiong:
i had downloaded the dll that you has uploaded,the size of the dll is not the same as the one i have got..im sure...and one of the group member,shes a lady,she said she used the dll and got the sd works....thats why i think you just got the wrong dll or something else....
[Shift General] weixiong:
i hope you can find a solutiong for the sd,i know the shift wm side cpu support the sd card,by the way,we just dont know how to make it works right now.i think some one can makes it works,and we can make it works too.am i right?
[Shift General] xda_shfit:
Perhaps the time we download the dll file is not same. It is said that the only members can use sd are 狂龙宝宝（kuanglongbaobao）who is the dll author and 小猪x（xiaozhux）who is the lady member.However, I can not contact them. I hope you are right, things will always get to the bottom.
[Shift General] weixiong:
yeah,when i get home,i will recover my dll.
[Shift General] weixiong:
alson,there are 2 or 3 "white mouse" using 狂龙宝宝's rom right now~~may be the author dont want them to tell.so..........
[Shift General] xda_shfit:
i think the uploaded dll file is the right dll file. the author said he has wrote a program to call the dll file. the program need read and write hardware addresses, because each shift has a different hardware address, Now there is no way to provide a common procedure. But your thinking is correct.
[Shift General] shawankit:
Hi Ram, check if this helps

http://stackoverflow.com/questions/40269/finding-the-storage-card-path-on-wm6

MSDN REGISTRY FOR AUTO MOUNTING :

http://msdn.microsoft.com/en-us/library/ms892393.aspx
[Shift General] lucid:
Project plan ;) :

1- asses validity of the claim. Video seems convincing, although no file I/O was seen

2- when valid, try establish communications with author.

Surely, the author of the code must know that if he can do it, more people will be able to do it. Unless he has some very specific HTC engineering secrets up his sleeve that is....

I think the author (when valid) should get same applause as Cmonex, ThaiHugo, pof, and many others, regardless of the fact he/she might not be willing to share his work.

It shows us what is possible.

I do however, consider it utterly strange that the guy supposedly got mad because people supposedly told him it's a fake. Wizards like that are usually above ego.
[Shift General] keithpupu:
In the qq group ,the man says:SD and BT are developed on his own machine,he can not provide rom yet since it's still under testing and modifing ,it may not work well on others'. He is woking on it.

So let's just wait ,give him some time. However, it is still a big step ,wish him good luck .
[Shift General] saiweb:
Hi

I went through those links, I modified the registry settings for HKLM\System\StorageManager\SDCard to reflect the settings guided by Microsoft. And also I created the HKLM\System\Loader, which is missing in the default, but still no use. I used the code snippets available in the stackoverflow page (1st one is similar to the one I wrote) also I ran the one that FindFirstFlashCard, and FindNextFlashCard methods, but they did not work either.

I am still keep on looking into it.
[Shift General] saiweb:
Bluetooth Interesting and disappointing finding

Hi I ran couple of c# applicaitons to turn on the Bluetooth.

1. using BthUtil.dll BthGetMode and BthSetMode methods.

2. using Microsoft SharedSource of Bluetooth, I picked it up from Windows Mobile 6 SDK samples and trying to create the service at a specified port.

Interestingly both applications showed me the Bluetooth is turned off (which we know) and interesting part is the bluetooth is not activated in the radio.

Now if either cmonex or thaihugo can take a close look into the radio and check this out, that would be realy great.

And I think the same is true for WiFi too.

--Ram--
[Shift General] shawankit:
Hi Ram,

Can you try replacing the core.dll file from other HTC Machine onto shift and check if either bluetooth or SD works ?

I have seen it somewhere on MSDN that Core.dll is also linked with SD and Bluetooth.
[Shift General] saiweb:
Hi

Good idea. I will try and see.

Update:

I am recooking thaihugo's lighter ROM with modified coredll, bthutil, fatfsd, mspart, and other related dlls from kaiser or rapheal and see what happens. I will update the progress here.

--Ram--
[Shift General] saiweb:
Yes. You are absolutely right. We need the actual devices hardware address to activate it. This is true for both Bluetooth and SD Card. For bluetooth, I was using Microsoft Stack initially and was getting errors, and thought they radio might not be supporting it. In fact they are there in the radio, the issue is the bluetooth stack I was talking to is not from Microsoft. When I corrected it, now I am not seeing those errors, but I am getting unknown state of bluetooth instead of "Off" and error messages. My analysis may not be correct also.

correction:

I was too quick, in fact it is Microsoft Bluetooth Stack. There was a bug in my code and I fixed it. But still no near to BT.

--Ram--
[Shift General] saiweb:
I think one of our friends is requesting the same there. After seeing that title, I thought somebody posted the ROM. :o, but infact s/he is requesting it, may be for the benefit of us to follow the original author who claimed SD Access.

http://digital.xy.hk/forum/viewthread.php?tid=6471&extra=page=1

--Ram--
[Shift General] hdbueller:
We are getting close......I can feel it..... ;)
[Shift General] saiweb:
Breakthrough in BT.

Yes. Shift's WM side BT listens on COM ports COM8 and COM4 (for gps Tx through BT). When I try to start it, it is returning message saying S: HCI_VS_Start_VS_Lock. If I try to turn on using BthSetMode, it is throwing a COM Write Exception and Event Wait fail Exception. I am guessing it is locked on vista side I think. thaihugo, I think you are right. You are guessing right from the begining that BT/Wifi are locked to Vista side.

--Ram--
[Shift General] weixiong:
hi saiweb,the author said you are very close to enble the sd and bt
[Shift General] shawankit:
"Yes. You are absolutely right. We need the actual devices hardware address to activate it."

check this if it helps

http://msdn.microsoft.com/en-us/library/aa909722.aspx

Sharing Blueetooth and requiring device address

http://msdn.microsoft.com/en-us/library/bb202948.aspx

and

http://msdn.microsoft.com/en-us/library/bb203124.aspx
[Shift General] shawankit:
i think you need device.dll to be fixedc to muont sd

File System (FileSys.dll)

FileSys.dll loads file system drivers. For more information, see File Systems.

Device Manager (Device.dll)

Device.dll loads audio drivers, battery drivers, keyboard drivers, mouse drivers, NDIS drivers, notification LED drivers, serial drivers, PC Card drivers, USB drivers, and any other driver that exposes the stream interface. Device.dll loads most of its drivers with ActivateDeviceEx, and these drivers expose a stream interface. For more information, see Device Manager.
[Shift General] lucid:
Think HTC

Thought expiriment :

You are HTC and you are designing a hybrid WinMo, Vista machine where some resources ought to be shared.

You intend to create a fully working WinMo device and an EC controller to help share the resources when switching from one OS to the other.

You find out that some of that isn't easily achieved, i.e. having SD, BT and Wifi both in WinMo and Vista at the same time.

You then have to choose between Vista and WinMo to have the SD, BT and Wifi, and you choose Vista.

You must prevent the hypothetical errors when SD, BT and Wifi are shared between OS'es.

What would you do ?

----------------------------

It seems from reading all the posts that we possibly get two pieces of candy at once, BT and SD.

Wifi has been reported to be able to share with WinMo when Vista is running.

Taking a leap and asuming that SD and BT are "done" , the last hurdle would be having WiFi when Vista is "off"

Has anyone read about having wifi working when vista is off, with respect to these new developments ??

Godspeed to all of you trying to achieve the latest feat with the Shift.
[Shift General] saiweb:
Oh. that is really really cool.

--Ram--
[Shift General] saiweb:
Oh sure. I am cooking the one right now.

--Ram--
[Shift General] saiweb:
Ok, I will read those and see.

Also I noticed that if we turn on Vista/Bluetooth, the COM8 will not respond anymore on WinMo side. Once you turn of Bluetooth and wait for a few seconds to power recycle, COM8 comes back alive on WinMo side. This is a very interesting.

--Ram--
[Shift General] saiweb:
Status Update

I am half way through enabling Bluetooth. Yes. I successfully opened COM8 for serial communication. I am able to write and read from that port. Now I have to engage this port to Bluetooth. Side Note: Once you engage the COM8 on WinMo side for serial port communication, USB to PC will not work. Period. Shift is using COM8 on WinMo for ActiveSync with Vista. This leads us to assign a different port for USB 2 PC communication somehow. How it can be done, I don't know right now.

I am trying to sniff the device address of Bluetooth from the sockets/ports I am using. Once I am able to do this I think BT can be taken out from the list, fingers crossed.

:)

Update: Touch Diamond also uses the same port for Bluetooth communication and the device address is same. Hurray. My next step is how to activate it through the device address.

--Ram--
[Shift General] weixiong:
wowowow,you bring a bigest news to this shift users.

yes,the author also said we can not use the sd/bt/wifi between vista and mobile side.

if you enble the sd/bt/wifi,can you pm me first?i link you to talk with the author with somethings OK saiweb?
[Shift General] saiweb:
weixiong,

Sure, I will PM you.

Update: Touch Diamond also uses the same port for Bluetooth communication and the device address is same. Hurray. My next step is how to activate it through the device address.

--Ram--
[Shift General] weixiong:
omg,you are the hero of the shift.you are the king of the world.

did you try to do somethings to get the full screen on the wm side?

i think you can enble the sd/bt/wifi in a week.

good luck!
[Shift General] saiweb:
No, I am not hero. thaihugo and cmonex should be given that credit.

Yes, I think I will open BT definately in a week time.

Touch Diamond and Shift sharing things make sense, because both of them have SD Card part dummied. We are going to undummy for Shift definately though. :)

--Ram--
[Shift General] FOOFTR:
Well done so far - amazing dedication...good luck wit the rest of the mission! At least for me, SD card opens the most benefit...
[Shift General] Pantaloonie:
Saiweb, good luck with this, we are all watching with interest.

Weixong, if you are able to put Saiweb in touch with this guy, why not do it now? Could save a lot of trial and error.
[Shift General] mying:
It's glad to hear what Saiweb said ,wating for the SD/BT/WIFI's coming.

WM in full view seem to be more close also....

Good luck .
[Shift General] koala996:
mmh... it means that we will have to make a small application to enable BT or USBtool ? I guess it will not be that hard. It's a great news !
[Shift General] shawankit:
great work

great news ,all of us appreciate your hard work and the work done by thaihugo and cmonex ...wish you best of luck...

by the way i was tryung to connect to camera on wm6 side i get a black screen....but looks like it is connectingbut missing some tiny detail...i think if you great developers cook it in a rom and chech if it really works....attached are the files and dependency...
[Shift General] saiweb:
Hi

Thank you! definately I will take a look into that too.

--Ram--
[Shift General] Scott's Shift:
Hi saiweb, great work!! well done and keep trying!!

one quick question, once you have SD, BT etc working how much more would it take the get WM to commuicate through the usb port ? (The one on the side of the Shift)
[Shift General] Lyvia:
One step after another?

SD is important to install large applications like tomtom, to use WM like an smartphone. Bt is important for phone users ... USB, camera, xvga may be usefull later, not yet.

Well, i will watch this thread more often :)
[Shift General] shawankit:
i agree , one thing at a time....lets hope Ram hard work turns a success for bt and sd for all shift users across globe
[Shift General] apoparis:
Great topic. While reading it I catched myself eating my nails trying to guess what happens next! Congratulations for the hard work so far and good luck.

PS1.No news since yesterday but i think it's normal.After all it's weekend. Hope to hear positive news during the week.

PS2.I agree that the SD is the most important. SD= huge capacity for wm6 applications + maps + e-books + ..
[Shift General] joshuauy:
Does this could be something?
[Shift General] weixiong:
of cause no.you can try it by yourself
[Shift General] saiweb:
Update

Hi all

I am still working on it. I am able to disable COM8 port successfully from USB. After that the mess I created in the registry killed the SnapVue good number of times and I had to reflash and flash again and again. I am still working on assigning two things, recognizing BT device address and assign it to COM8. BTTester and the Microsoft.Shared.Source for Bluetooth are showing BT is available on the system, that is good news, but it is deactivated. I will update you as soon as I make some progress.

--Ram--
[Shift General] saiweb:
Hi

We tried it before, and it is no use.

--Ram--
[Shift General] go2home:
Thank you so much for your hard work Ram.
[Shift General] Rabia:
good job saiweb, i would have to say i fount i ate 10% of my actual fingures so plz find a solution before my fingures become useless :), this site has contribued in the whole success of HTC and people like Saiweb Cmonex Thaihugo etc have the biggest hand in the success, go guys and godspeed
[Shift General] alex_time:
weixiong, why don't you ask to the Chines guy for a tip to help saiweb?! He said last week that saiweb was near the solution but enabling the BT SD access is not that easy...maybe a private help or advise can solve all, and maybe saiweb does not have to spent all this time...
[Shift General] PlayStation:
:( I dont understand this Chinese guy at all. Unless he is a sadist I dont see why he would be doing this. And why would he even bother to say Saiweb is close to the solution! I am not hating on him its just that something does not seem right. I got a feeling that the alleged "Chinese Guy" is someone from HTC who is teasing this community. :mad: And this Weixiong - what happened to the file he was supposed to retrieve after deleting? plus the alleged communication between weixiong and chinese guy sounds just too fake. Certain things do not add up at all. Sure the video is there for all to see SD card working but do we deserve this cruelty! :mad: Know what; I would rather we let Saiweb and all the other good developers here continue with the project and forget the weixiongs of this world. Of course weixiong is the alleged "chinese guy" who is trying to make a fool of everyone. All the best Saiweb, thaihugo, cmonex (talking of which we have not heard from cmonex for a while now...... ;)
[Shift General] Qtek9000Jan:
Using usb tool results in stopping bluetooth on Vista side

Hi,

It is probably noticed before but i noticed that when i use the usb tool on windows mobile side, the earlier activated bluetooth on Vista side is stopped automatically.

Hope this might shine a extra light on the Bluetooth saga for windows mobile side.

Best regards,

Qtek9000Jan
[Shift General] weixiong:
could u stop fartting?are u stupid?if u dont like me and that author,just dont care about us,and stopping being smart,im sure u are nut,what you mean

I got a feeling that the alleged "Chinese Guy" is someone from HTC who is teasing this community

are you ok?i dont think they will do this kid of stupid **** like what u just did.u just hurtting the developers.do u know this dum ass?if he wants to share his work he will shares it,if he doesnt want to share his works,and u can not say he is wrong.u should know,you got no rights to require some one to do somethings for u with out money.if u think this is fake,u can just do it by ur self.and stopping fartting anymore please.............
[Shift General] koala996:
stay quiet guys... the problem is that it is a waste of time duplicating the solution to use BT and SD in WM.

sure I understand the guy who is not sharing is work... but if he knows what saiweb is doing, it should be better to tell what to do now.. instead of saying "you are close.. but I will not help".

both of you (PlayStation & weixiong) are rude.. and that's because there is no solution found here yet.. and that's why PlayStation said that we should not be treated like a toy
[Shift General] weixiong:
mmmmm,i know im rude,i just got mad with him,him dont do something that can help to enble the sd/bt/wifi ,but come here to said something like that.

the author said he will share he work,but just not right now.what we know is,he is working on the wifi and full screen.

there were many group members said give him some money and ask him to provide he rom,but he said:i dont need you guys money,im doing this is not for moneys,i just want to make the shift to works as a phone.

i think he is a very rich guy and a very nice guy,i just dont want some one hurting him,if he stop working on shift,i dont know how long we got to wait..........
[Shift General] PlayStation:
Sorry guys. I apologize for my part in this. Its just that hitting the refresh button every few hours was starting to hurt my fingers. I guess I touched a very raw nerve but at least I didnt insult anyone. Sorry Weixiong if I hurt your feelings..... Does anyone know whether the Chinese guy flashed the rom with phone and GPS in his Shift ?????? Or maybe he cooked his rom with phone and gps too...... ;)
[Shift General] weixiong:
thats ok man..im sorry too
[Shift General] hdbueller:
I would also like to point out something here.....Hong Kong and Taiwan are pretty close to each other....What I mean is that this guy/gal might actually be from HTC (Taiwan) and is trying to stay a bit removed from this to protect him/her self. At any rate, bickering and *****ing NEVER solved anything! Stay focused and be patient folks. Saiweb, weixiong, and others are working hard on this!! It is not a "walk in the park" to accomplish this!!

Just my 2 cents worth.....Later
[Shift General] weixiong:
what do you mean my friend?

are you talking about PlayStation?
[Shift General] hdbueller:
....I mean when people complain about things when others (i.e. you,Saiweb,others) are trying to help them, it just irritates me......Later
[Shift General] unapproachable2kx:
I have just speak with the author and it is really gentle and helpful person,

Currently it is working on enabling WiFi and Fullscreen on Windows Mobile side

I will let you know asap about patch or even maybe HE will let us know (because I invited him to join our community,together we could learn alot and get further on development).
[Shift General] FOOFTR:
thanks unapproachable2kx - next time you speak to him maybe let him know where our own skilled people are at and maybe he can provide a little direction...I'm sure saiweb would appreciate it...

Everyone, I know it's very exciting what's going on here, but let's all take a deep breath and let some things just play out in their own time...placing pressure on someone outside this forum or turning on each other could potentially derail this forward progress...and we really don't want that.

Best wishes, FOOFTR