JNIEXPORT void JNICALL Java_altermarkive_uploader_Sampler_initiate(JNIEnv *JNI, jobject Self) {
    if (NULL == State) {
        State = (StateStructure *) malloc(sizeof(StateStructure));
        State->JNI = JNI;
        QuerySensors();
        QueryConfig(JNI, Self);
        ConfigureSampling(JNI, Self);
        StartSampling();
    }
}
Пример #2
0
	ustring Item::get_user() const
	{
		auto config = QueryConfig(m_hndl);
		PCWSTR ret = config->lpServiceStartName ? config->lpServiceStartName : WEMPTY_STR;
		return ustring(ret);
	}
Пример #3
0
	DWORD Item::get_type() const
	{
		return QueryConfig(m_hndl)->dwServiceType;
	}
Пример #4
0
	Start Item::get_start_type() const
	{
		return static_cast<Start>(QueryConfig(m_hndl)->dwStartType);
	}