VS 2010 β2
ITaskbarList3* GetITaskbarList3 (void)
{
ITaskbarList3* pTL3 = NULL ;
HRESULT hr = NULL ;
hr = CoCreateInstance(CLSID_TaskbarList, NULL, CLSCTX_INPROC_SERVER,IID_ITaskbarList3, (void**)&pTL3) ;
if (hr == NOERROR) {
return pTL3 ;
}
return NULL ;
}
if (TL3 != NULL) {
TL3->SetProgressState(this->GetSafeHwnd(),TBPF_NORMAL) ;
}
ITaskbarList3* GetITaskbarList3 (void)
{
ITaskbarList3* pTL3 = NULL ;
HRESULT hr = NULL ;
hr = CoCreateInstance(CLSID_TaskbarList, NULL, CLSCTX_INPROC_SERVER,IID_ITaskbarList3, (void**)&pTL3) ;
if (hr == NOERROR) {
return pTL3 ;
}
return NULL ;
}
if (TL3 != NULL) {
TL3->SetProgressState(this->GetSafeHwnd(),TBPF_NORMAL) ;
}
if (TL3 != NULL) {
TL3->SetProgressValue(this->GetSafeHwnd(),Counter,100) ;
}
TL3->SetProgressValue(this->GetSafeHwnd(),Counter,100) ;
}