Bluetooth Block
-
If you want help, you have to explain your problem more in details. If you didn't get any answers till now, it probably means what you are trying to do is not feasible (besides, not all computers have BT by default). So, what is your problem exactly ? Why do you want to turn BT off ? What were you saying with your code ? And please, don't use text speak, it makes your post much more difficult to read.
Cédric Moonen Software developer
Charting control [v3.0] OpenGL game tutorial in C++hi.. My Exact Prob is that Im making a small project on bluetooth,and I want that my project has option through which a user can disable the access through bluetooth.. Thanks :)
-
If it's that urgent, wouldn't it be simpler to just disable it via Windows? You'll spend more time reading from and posting to this forum than you would by just opening some Control Panel applet and turning BT off.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
hi.. Does any body have Idea of how to turn off bluetooth through code in computer,so that it is not able to connect with any other bluetoth device. Thanks :)
-
hi.. Does any body have Idea of how to turn off bluetooth through code in computer,so that it is not able to connect with any other bluetoth device. Thanks :)
If it's a registry setting, you could use regmon to see what key/value is changed.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
If it's a registry setting, you could use regmon to see what key/value is changed.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
hi. Sry bt its not registry setting,it has to be done through sum code in c/c++ :)
-
hi. Sry bt its not registry setting,it has to be done through sum code in c/c++ :)
I was not aware that the registry could not be changed via code. Hmmm, you learn something new each day.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
I was not aware that the registry could not be changed via code. Hmmm, you learn something new each day.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
hi.. Know Im able to disable bluetooth throughcode,but it ask for a restart. But I dont want to restart the system.. can anyone help me in this regard. And after sum search I found a function named BluetoothSetServiceState() It is used to disable bluetooth.. but it is not working,neither it is giving any error.. Does any 1 have any idea about this function,how to use it? Thanks in advance Nidhi. :)
-
hi.. Know Im able to disable bluetooth throughcode,but it ask for a restart. But I dont want to restart the system.. can anyone help me in this regard. And after sum search I found a function named BluetoothSetServiceState() It is used to disable bluetooth.. but it is not working,neither it is giving any error.. Does any 1 have any idea about this function,how to use it? Thanks in advance Nidhi. :)
tanu misra wrote:
And after sum search I found a function named BluetoothSetServiceState() It is used to disable bluetooth.. but it is not working...
What does it return?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
tanu misra wrote:
And after sum search I found a function named BluetoothSetServiceState() It is used to disable bluetooth.. but it is not working...
What does it return?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
Syntax- DWORD BluetoothSetServiceState( HANDLE hRadio, BLUETOOTH_DEVICE_INFO *pbtdi, GUID *pGuidService, DWORD dwServiceFlags ); Return Value Returns ERROR_SUCCESS upon successful completion. The following lists common errors. Return code Description ERROR_INVALID_PARAMETER The dwServiceFlags are not valid. ERROR_SERVICE_DOES_NOT_EXIST The GUID specified in pGuidService is not supported. E_INVALIDARG dwServiceFlags is set to BLUETOOTH_SERVICE_DISABLE and the service is already disabled, or dwServiceFlags is set to BLUETOOTH_SERVICE_ENABLE and the service is already enabled.
-
Syntax- DWORD BluetoothSetServiceState( HANDLE hRadio, BLUETOOTH_DEVICE_INFO *pbtdi, GUID *pGuidService, DWORD dwServiceFlags ); Return Value Returns ERROR_SUCCESS upon successful completion. The following lists common errors. Return code Description ERROR_INVALID_PARAMETER The dwServiceFlags are not valid. ERROR_SERVICE_DOES_NOT_EXIST The GUID specified in pGuidService is not supported. E_INVALIDARG dwServiceFlags is set to BLUETOOTH_SERVICE_DISABLE and the service is already disabled, or dwServiceFlags is set to BLUETOOTH_SERVICE_ENABLE and the service is already enabled.
Um, why are you sending this to me? :confused:
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
Um, why are you sending this to me? :confused:
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
hi I though u asked me that what does this function return..
-
hi I though u asked me that what does this function return..
I did. You were supposed to tell me what it returns when you use it.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
I did. You were supposed to tell me what it returns when you use it.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
Hi.. it returns me following error ERROR_SERVICE_DOES_NOT_EXIST,which means GUID does not exist..
-
Hi.. it returns me following error ERROR_SERVICE_DOES_NOT_EXIST,which means GUID does not exist..
hi.. NEED HELP those who have laptops with inbuild bluetooth plz tell me the services used by bluetooth you can find bluetooth sevices in task manager these services will start from BT... or bt... and manufacture of driver used by bluetooth.. Thanks :)