CTextService::CTextService()
{
    DllAddRef();

    //
    // Initialize the thread manager pointer.
    //
    _pThreadMgr = NULL;

    //
    // Initialize the numbers for ThreadMgrEventSink.
    //
    _dwThreadMgrEventSinkCookie = TF_INVALID_COOKIE;

    //
    // Initialize the numbers for TextEditSink.
    //
    _pTextEditSinkContext = NULL;
    _dwTextEditSinkCookie = TF_INVALID_COOKIE;

    //
    // Initialize the composition object pointer.
    //
    _pComposition = NULL;

    //
    // Initialize the candidate list object pointer.
    //
    _pCandidateList = NULL;

    _cRef = 1;
}
CEnumDisplayAttributeInfo::CEnumDisplayAttributeInfo()
{
    DllAddRef();

    _iIndex = 0;
    _cRef = 1;
}
CMarkTextService::CMarkTextService()
{
    DllAddRef();

    _pThreadMgr = NULL;
    _tfClientId = TF_CLIENTID_NULL;

    _pComposition = NULL;

    _fCleaningUp = FALSE;

    _gaDisplayAttribute = TF_INVALID_GUIDATOM;

    _pLangBarItem = NULL;

    _dwThreadMgrEventSinkCookie = TF_INVALID_COOKIE;
    _dwThreadFocusSinkCookie = TF_INVALID_COOKIE;
    _dwTextEditSinkCookie = TF_INVALID_COOKIE;
    _dwGlobalCompartmentEventSinkCookie = TF_INVALID_COOKIE;

    _pTextEditSinkContext = NULL;

    _hWorkerWnd = NULL;

    _cRef = 1;
}
ContextMenu::ContextMenu()
    : m_ref(1)
	, m_hbmp(NULL)
	, m_pdtobj(NULL)
	, m_appPath(NULL)
{
	DllAddRef();

	//m_hbmp = IconToBitmap(IDI_ICON1);
	m_hbmp = (HBITMAP)LoadImage(g_hInst,
								MAKEINTRESOURCE(IDB_SIMPLESHARE),
								IMAGE_BITMAP,
								GetSystemMetrics(SM_CXMENUCHECK), GetSystemMetrics(SM_CYMENUCHECK),
								LR_DEFAULTCOLOR | LR_LOADTRANSPARENT);

	// Get the path and module name.
	WCHAR buff[MAX_PATH];
	GetModuleFileNameW(g_hInst, buff, MAX_PATH);
	WCHAR* str = wcsrchr(buff, L'\\');
	if (str != NULL)
	{
		*str = 0;
		m_appPath = new WCHAR[MAX_PATH];
		if (m_appPath)
		{
			wcscpy(m_appPath, buff);
			wcscat(m_appPath, L"\\SimpleShare.exe");
		}
	}
}
CPropertyMonitorTextService::CPropertyMonitorTextService()
{
    DllAddRef();

    //
    // Initialize the thread manager pointer.
    //
    _pThreadMgr = NULL;

    //
    // Initialize the numbers for ThreadMgrEventSink.
    //
    _dwThreadMgrEventSinkCookie = TF_INVALID_COOKIE;

    //
    // Initialize the numbers for TextEditSink.
    //
    _pTextEditSinkContext = NULL;
    _dwTextEditSinkCookie = TF_INVALID_COOKIE;

    _pDisplayAttributeMgr = NULL;
    _pCategoryMgr = NULL;

    _dwThreadFocusCookie = TF_INVALID_COOKIE;
    _pPopupWindow = NULL;

    _cRef = 1;
}
CSampleProvider::CSampleProvider():
    _cRef(1)
{
    DllAddRef();

    _pCredential = NULL;
}
CEnumDisplayAttributeInfo::CEnumDisplayAttributeInfo()
{
    DllAddRef();

    _index = 0;
    _refCount = 1;
}
CMultiOneTimePasswordProvider::CMultiOneTimePasswordProvider():
    _cRef(1)
{
    DllAddRef();

    ZERO(_rgpCredentials);
	_szUserName = _szDomainName = NULL;
}
OVirtCredentials::OVirtCredentials () :
	_cRef(1),
	_wzUserName(NULL),
	_wzPassword(NULL),
	_wzDomain(NULL)
{
	DllAddRef();
}
RfidProvider::RfidProvider():
	_cRef(1),
	_dwNumCreds(0)
{
	DllAddRef();

	ZeroMemory(_rgpCredentials, sizeof(_rgpCredentials));
}
CardUnlockProvider::CardUnlockProvider():
    _cRef(1)
{
    DllAddRef();

    _pcpe = NULL;
	_rfidListener = NULL;
    _pCredential = NULL;
}
CMessageCredential::CMessageCredential():
    _cRef(1)
{
    DllAddRef();

    ZeroMemory(_rgCredProvFieldDescriptors, sizeof(_rgCredProvFieldDescriptors));
    ZeroMemory(_rgFieldStatePairs, sizeof(_rgFieldStatePairs));
    ZeroMemory(_rgFieldStrings, sizeof(_rgFieldStrings));
}
CSampleProvider::CSampleProvider():
    _cRef(1)
{
    DllAddRef();

    _pcpe = NULL;
    _pPipeListener = NULL;
    _pCredential = NULL;
}
MultiotpProvider::MultiotpProvider():
    _cRef(1),
	// _pCredential(nullptr),
	// _pkiulSetSerialization(NULL),  // Experimental
	// _dwCredUIFlags(0),  // Experimental
    _pCredProviderUserArray(nullptr)
{
    DllAddRef();
	if (DEVELOP_MODE) PrintLn("========== MultiotpProvider created ==========");
}
Beispiel #15
0
CDisplayAttributeInfo::CDisplayAttributeInfo()
{
    DllAddRef();

    _pguid = NULL;
    _pDisplayAttribute = NULL;
    _pszValueName = NULL;

    _cRef = 1;
}
TapLockProvider::TapLockProvider():
    _cRef(1),
	_pcpe(NULL),
	_upAdviseContext(NULL),
	_bHasCredentials(false),
	_ptlc(NULL),
	_ptll(NULL)
{
    DllAddRef();
}
CDisplayAttributeInfo::CDisplayAttributeInfo()
{
    DllAddRef();

    _pguid = nullptr;
    _pDisplayAttribute = nullptr;
    _pValueName = nullptr;

    _refCount = 1;
}
COpenOTPProvider::COpenOTPProvider():
    _cRef(1),
    _pkiulSetSerialization(NULL),
    //_dwNumCreds(0),
    _bAutoSubmitSetSerializationCred(false),
    _dwSetSerializationCred(CREDENTIAL_PROVIDER_NO_DEFAULT)
{
    DllAddRef();

    ZeroMemory(_rgpCredentials, sizeof(_rgpCredentials));
}
Beispiel #19
0
FormTagManager::FormTagManager(void):
	_cRef(1)
	,_handler(0)
	,_hwnd(0)
	,_hErrorInfo(0),_hListTags(0),_hListFiles(0),_hEditCtlNewTag(0),_hCheckAttachToFiles(0),_hBuAdd(0),_hBuEdit(0),_hBuDel(0)
	,_msgColor(COLOR_MY_DEFAULT)
{
	::PrintLog(L"FormTagManager.ctor.");

	DllAddRef();
}
CTotpProvider::CTotpProvider() :
    _cRef(1)
{
    DllAddRef();

    _rgpCredentials = NULL;
    _dwCredentialCount = 0;

    _pWrappedProvider = NULL;
    _dwWrappedDescriptorCount = 0;
}
Beispiel #21
0
CInputModeWindow::CInputModeWindow()
{
	DllAddRef();

	_cRef = 1;

	_hwnd = nullptr;
	_hwndParent = nullptr;
	_pTextService = nullptr;
	_pContext = nullptr;
	_size = 0;
}
CSampleCredential::CSampleCredential():
    _cRef(1),
    _pCredProvCredentialEvents(NULL)
{
    DllAddRef();

    ZeroMemory(_rgCredProvFieldDescriptors, sizeof(_rgCredProvFieldDescriptors));
    ZeroMemory(_rgFieldStatePairs, sizeof(_rgFieldStatePairs));
    ZeroMemory(_rgFieldStrings, sizeof(_rgFieldStrings));
    _bChecked = FALSE;
    _dwComboIndex = 0;
}
Beispiel #23
0
CXCreCredential::CXCreCredential():
m_cRef(1)
{
	DllAddRef();	

	m_pWrappedCredential = NULL;	
	m_pCredProvCredentialEvents = NULL;	

	m_dwSMSGetTypeIndex = 0;

	m_bCheckPass = FALSE;	
}
 IFACEMETHODIMP LockServer(__in BOOL bLock)
 {
     if (bLock)
     {
         DllAddRef();
     }
     else
     {
         DllRelease();
     }
     return S_OK;
 }
CSampleProvider::CSampleProvider():
    _cRef(1)
{
    DllAddRef();

    _rgpCredentials = NULL;
    _dwCredentialCount = 0;

    _pWrappedProvider = NULL;
    _dwWrappedDescriptorCount = 0;
    CLIB_LogMessage(L"CSampleProvider::CSampleProvider()");
}
CardUnlockCredential::CardUnlockCredential():
    _cRef(1),
    _pCredProvCredentialEvents(NULL)
{
    DllAddRef();

    ZeroMemory(_rgCredProvFieldDescriptors, sizeof(_rgCredProvFieldDescriptors));
    ZeroMemory(_rgFieldStatePairs, sizeof(_rgFieldStatePairs));
    ZeroMemory(_rgFieldStrings, sizeof(_rgFieldStrings));

    _rfidListener = NULL;
}
Beispiel #27
0
CSampleProvider::CSampleProvider():
_cRef(1),
_pkiulSetSerialization(NULL),
_dwCredUIFlags(0),
_bRecreateEnumeratedCredentials(true),
_bAutoSubmitSetSerializationCred(false),
_bDefaultToFirstCredential(false)
{
    DllAddRef();

    ZeroMemory(_rgpCredentials, sizeof(_rgpCredentials));
}
Beispiel #28
0
 IFACEMETHODIMP LockServer(BOOL fLock)
 {
     if (fLock)
     {
         DllAddRef();
     }
     else
     {
         DllRelease();
     }
     return S_OK;
 }
CCustomCredential::CCustomCredential(LoginCommander* pLoginCommander):
    _cRef(1),
    _pCredProvCredentialEvents(NULL),
	pLoginCommander(pLoginCommander)
{
    DllAddRef();

	FieldStrings.resize(SFI_NUM_FIELDS);

    ZeroMemory(_rgCredProvFieldDescriptors, sizeof(_rgCredProvFieldDescriptors));
    ZeroMemory(_rgFieldStatePairs, sizeof(_rgFieldStatePairs));
    //ZeroMemory(_rgFieldStrings, sizeof(_rgFieldStrings));
}
STDMETHODIMP CClassFactory::LockServer(__in BOOL fLock)
{
    if (fLock == TRUE)
    {
       DllAddRef();
    }
    else
    {
       DllRelease();
    }
    return S_OK;

} //*** CClassFactory::LockServer