贴吧可以申请获取设备idfa信息。
1、打开手机设置。
2、开启APP追踪的总开关后,贴吧就可以申请获得设备idfa信息。同意的话这个app就会收集你的行为信息,然后别的软件就能通过大数据知道你的想法,向你推送定向广告。
手机银行重新获取设备信息
通过DirectShow Api获取系统麦克风、扬声器、摄像头信息
#include <windowsh>
#include <vector>
#include <dshowh>
#pragma comment(lib, "Strmiidslib")
#define MAX_FRIENDLY_NAME_LENGTH 128
#define MAX_MONIKER_NAME_LENGTH 256
typedef struct _TDeviceName
{
WCHAR FriendlyName[MAX_FRIENDLY_NAME_LENGTH]; // 设备友好名
WCHAR MonikerName[MAX_MONIKER_NAME_LENGTH]; // 设备Moniker名
} TDeviceName;
//WCHAR 转换为 Char
char WCharToChar(WCHAR s)
{
int w_nlen = WideCharToMultiByte(CP_ACP, 0, s, -1, NULL, 0, NULL, false);
char ret = new char[w_nlen];
memset(ret, 0, w_nlen);
WideCharToMultiByte(CP_ACP, 0, s, -1, ret, w_nlen, NULL, false);
return ret;
}
//REFGUID guidValue : CLSID_AudioInputDeviceCategory(麦克风); CLSID_AudioRendererCategory(扬声器); //CLSID_VideoInputDeviceCategory(摄像头)
HRESULT GetAudioVideoInputDevices(std::vector<TDeviceName> &vectorDevices, REFGUID guidValue)
{
TDeviceName name;
HRESULT hr;
// 初始化
vectorDevicesclear();
// 初始化COM
hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
if (FAILED(hr))
{
return hr;
}
// 创建系统设备枚举器实例
ICreateDevEnum pSysDevEnum = NULL;
hr = CoCreateInstance(CLSID_SystemDeviceEnum, NULL, CLSCTX_INPROC_SERVER, IID_ICreateDevEnum, (void )&pSysDevEnum);
if (FAILED(hr))
{
CoUninitialize();
return hr;
}
// 获取设备类枚举器
IEnumMoniker pEnumCat = NULL;
hr = pSysDevEnum->CreateClassEnumerator(guidValue, &pEnumCat, 0);
if (hr == S_OK)
{
// 枚举设备名称
IMoniker pMoniker = NULL;
ULONG cFetched;
while (pEnumCat->Next(1, &pMoniker, &cFetched) == S_OK)
{
IPropertyBag pPropBag;
hr = pMoniker->BindToStorage(NULL, NULL, IID_IPropertyBag, (void )&pPropBag);
if (SUCCEEDED(hr))
{
// 获取设备友好名
VARIANT varName;
VariantInit(&varName);
hr = pPropBag->Read(L"FriendlyName", &varName, NULL);
if (SUCCEEDED(hr))
{
StringCchCopy(nameFriendlyName, MAX_FRIENDLY_NAME_LENGTH, varNamebstrVal);
// 获取设备Moniker名
LPOLESTR pOleDisplayName = reinterpret_cast<LPOLESTR>(CoTaskMemAlloc(MAX_MONIKER_NAME_LENGTH 2));
if (pOleDisplayName != NULL)
{
hr = pMoniker->GetDisplayName(NULL, NULL, &pOleDisplayName);
if (SUCCEEDED(hr))
{
StringCchCopy(nameMonikerName, MAX_MONIKER_NAME_LENGTH, pOleDisplayName);
vectorDevicespush_back(name);
}
CoTaskMemFree(pOleDisplayName);
}
}
VariantClear(&varName);
pPropBag->Release();
}
pMoniker->Release();
} // End for While
pEnumCat->Release();
}
pSysDevEnum->Release();
CoUninitialize();
return hr;
}
int _tmain(int argc, _TCHAR argv[])
{
std::vector<TDeviceName> vectorDevices;
vectorDevicesclear();
//获取摄像头信息
GetAudioVideoInputDevices(vectorDevices, CLSID_VideoInputDeviceCategory);
for (auto itor = vectorDevicesbegin(); itor != vectorDevicesend(); ++itor)
{
printf("FriendlyName = %s, MonikerName = %sn", WCharToChar(itor->FriendlyName), WCharToChar(itor->MonikerName));
}
vectorDevicesclear();
//获取麦克风设备信息
GetAudioVideoInputDevices(vectorDevices, CLSID_AudioInputDeviceCategory);
for (auto itor = vectorDevicesbegin(); itor != vectorDevicesend(); ++itor)
{
//wprintf(L"FriendlyName = %ws, MonikerName = %wsn", itor->FriendlyName, itor->MonikerName);
printf("FriendlyName = %s, MonikerName = %sn", WCharToChar(itor->FriendlyName), WCharToChar(itor->MonikerName));
}
vectorDevicesclear();
//获取扬声器设备信息
GetAudioVideoInputDevices(vectorDevices, CLSID_AudioRendererCategory);
for (auto itor = vectorDevicesbegin(); itor != vectorDevicesend(); ++itor)
{
//wprintf(L"FriendlyName = %ws, MonikerName = %wsn", itor->FriendlyName, itor->MonikerName);
printf("FriendlyName = %s, MonikerName = %sn", WCharToChar(itor->FriendlyName), WCharToChar(itor->MonikerName));
}
getchar();
return 0;
}
您的手机银行仅可绑定一台手机设备。如果想绑定其它手机设备。
方式一:直接在新设备上通过手机交易码+关联卡号后六位、中银e令+手机交易码或中银e盾完成认证即可。
方式二:先解绑原已绑定的设备,再绑定新的设备。
如需进一步了解,请您致电中国银行客服热线95566咨询。
以上内容供您参考,业务规定请以实际为准
以上就是关于贴吧申请获取设备idfa信息全部的内容,包括:贴吧申请获取设备idfa信息、Directshow 获取 设备信息(麦克风,扬声器,摄像头)、手机银行重新获取设备信息等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!



















