Lines Matching defs:session
246 * In order to manipulate the registered machine, we must open a session
249 nsCOMPtr<ISession> session;
262 getter_AddRefs(session));
265 printf("Error, could not instantiate session object! rc=%#x\n", rc);
269 rc = machine->LockMachine(session, LockType_Write);
272 printf("Error, could not lock the machine for the session! rc=%#x\n", rc);
279 * it from the opened session object.
281 rc = session->GetMachine(getter_AddRefs(sessionMachine));
284 printf("Error, could not get machine session! rc=%#x\n", rc);
402 * It is always important to close the open session when it becomes not
405 session->UnlockMachine();