Hi I am facing a problem i need to read a 64 bit integer value the is the value of RID available pool: i have written this code: swprintf(strObjectDN, L"LDAP://CN=RID Manager$,CN=System,DC=ado701tre,DC=com"); hr = ADsGetObject(strObjectDN, IID_IADs, (void**)&pObj); if ( !SUCCEEDED(hr) ) { printf("\nFailure in connection"); return 0; } VariantInit(&tempVariant); hr = pObj->Get(CComBSTR("rIDAvailablePool"), &tempVariant); if(!SUCCEEDED(hr)) { printf("\nGet object Failed"); return 0; } Everything id wroking fine but i m not able to get the value of 64 bit integer from the Variant. the value i need to fetch is rIDAvailablePool: 4611686014132422211 any help would be highly appreciated. Thanks Anuj