fr:code:core:processhandle
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| fr:code:core:processhandle [2012/03/21 11:14] – [clone] wismerheal | fr:code:core:processhandle [2021/02/13 11:23] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 7: | Ligne 7: | ||
| Fonction de Construction. | Fonction de Construction. | ||
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| var myObject = new ProcessHandle(); | var myObject = new ProcessHandle(); | ||
| Ligne 20: | Ligne 20: | ||
| === Arguments === | === Arguments === | ||
| - otherProcessHandle - (ProcessHandle) autre " | - otherProcessHandle - (ProcessHandle) autre " | ||
| - | - processId - (entier) identifiant de processus pour gérer/ | + | - processId - (integer) identifiant de processus pour gérer/ |
| === Exceptions === | === Exceptions === | ||
| Ligne 41: | Ligne 41: | ||
| ===== Méthodes ===== | ===== Méthodes ===== | ||
| ==== clone ==== | ==== clone ==== | ||
| - | Renvoi | + | Renvoie |
| === Syntax === | === Syntax === | ||
| Ligne 48: | Ligne 48: | ||
| </ | </ | ||
| - | === Returns | + | === Renvoie |
| * (ProcessHandle) une copie de ce " | * (ProcessHandle) une copie de ce " | ||
| Ligne 56: | Ligne 56: | ||
| </ | </ | ||
| ==== equals ==== | ==== equals ==== | ||
| - | Returns true if this ProcessHandle | + | Renvoie vrai si ce "ProcessHandle" et un autre se réfèrent au même processus. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.equals(other); | myObject.equals(other); | ||
| Ligne 64: | Ligne 64: | ||
| === Arguments === | === Arguments === | ||
| - | - other - (ProcessHandle) | + | - other - (ProcessHandle) |
| - | === Returns | + | === Renvoi |
| - | * (bool) | + | * (bool) |
| === Example === | === Example === | ||
| Ligne 75: | Ligne 75: | ||
| </ | </ | ||
| ==== toString ==== | ==== toString ==== | ||
| - | Returns a string representing this ProcessHandle. | + | Renvoie une chaîne représentant ce "ProcessHandle". |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.toString(); | myObject.toString(); | ||
| </ | </ | ||
| - | === Returns | + | === Renvoie |
| - | * (string) | + | * (string) |
| === Example === | === Example === | ||
| Ligne 91: | Ligne 91: | ||
| === Notes === | === Notes === | ||
| - | This method is automatically called when trying to convert a ProcessHandle | + | Cette méthode est appelée automatiquement quand vous tentez de convertir un "ProcessHandle" en chaîne. |
| ==== id ==== | ==== id ==== | ||
| - | Returns the process | + | Renvoie l' |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.id(); | myObject.id(); | ||
| </ | </ | ||
| - | === Returns | + | === Renvoie |
| - | * (integer) | + | * (integer) |
| ==== kill ==== | ==== kill ==== | ||
| - | Try to kill the process. | + | Tenter d' |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.kill(killMode, | myObject.kill(killMode, | ||
| Ligne 112: | Ligne 113: | ||
| === Arguments === | === Arguments === | ||
| - | - killMode - ([[# | + | - killMode - ([[# |
| - | - timeout - (integer) | + | - timeout - (integer) |
| - | === Returns | + | === Renvoie |
| - | * (boolean) | + | * (boolean) |
| ==== isRunning ==== | ==== isRunning ==== | ||
| - | Returns true if the process is currently running. | + | Renvoie vrai si le processus est actuellement en exécution. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.isRunning(); | myObject.isRunning(); | ||
| </ | </ | ||
| - | === Returns | + | === Renvoie |
| - | * (boolean) | + | * (boolean) |
| ==== command ==== | ==== command ==== | ||
| - | Returns the command that was used to start this process. | + | Renvoie la commande qui fut utilisée pour lancer le processus. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.command(); | myObject.command(); | ||
| </ | </ | ||
| - | === Returns | + | === Renvoie |
| - | * (string) the command that was used to start this process | + | * (c) la commande qui fut utilisée pour lancer le processus |
| === Exceptions === | === Exceptions === | ||
| - | * (OpenProcessError) | + | * (OpenProcessError) |
| - | * (GetModuleFilenameError) unable to get the module | + | * (GetModuleFilenameError) |
| - | * (GetProcessError) | + | * (GetProcessError) |
| ==== priority ==== | ==== priority ==== | ||
| - | Returns the priority of this process. | + | Renvoie la priorité de ce processus. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.priority(); | myObject.priority(); | ||
| </ | </ | ||
| - | === Returns | + | === Renvoie |
| - | * ([[# | + | * ([[# |
| === Exceptions === | === Exceptions === | ||
| - | * (OpenProcessError) | + | * (OpenProcessError) |
| - | * (GetPriorityClassError) | + | * (GetPriorityClassError) |
| - | * (OperatingSystemError) | + | * (OperatingSystemError) |
| === Notes === | === Notes === | ||
| - | This method only works on Windows, because | + | Cette Méthode fonctionne seulement sur Windows |
| ===== Enumerations ===== | ===== Enumerations ===== | ||
| ==== KillMode ==== | ==== KillMode ==== | ||
| - | Policy to use when trying to kill a process. | + | Politique à respecter pour utiliser la tentative d' |
| - | === Values | + | === Valeurs |
| - | - Graceful: Linux: | + | - Graceful |
| - | - Forceful: Linux: | + | - Forceful |
| - | - GracefulThenForceful: | + | - GracefulThenForceful |
| ==== Priority ==== | ==== Priority ==== | ||
| - | A process priority. | + | La priorité d'un processus. |
| - | === Values | + | === Valeurs |
| - | - AboveNormal: | + | - AboveNormal: |
| - | - BelowNormal: | + | - BelowNormal: |
| - | - High: high | + | - High: haute |
| - | - Idle: idle | + | - Idle: en attente / au repos |
| - | - Normal: | + | - Normal: |
| - | - Realtime: | + | - Realtime: |
fr/code/core/processhandle.1332328474.txt.gz · Dernière modification : (modification externe)
