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(); } }
ustring Item::get_user() const { auto config = QueryConfig(m_hndl); PCWSTR ret = config->lpServiceStartName ? config->lpServiceStartName : WEMPTY_STR; return ustring(ret); }
DWORD Item::get_type() const { return QueryConfig(m_hndl)->dwServiceType; }
Start Item::get_start_type() const { return static_cast<Start>(QueryConfig(m_hndl)->dwStartType); }