input
stringlengths 10
828
| output
stringlengths 5
107
|
---|---|
private void install hook if global false descriptor is global only throw new unsupported operation exception the descriptor get name hook doesn t support thread hook int thread id 0 if global false thread id extension get current thread id extension install system hook descriptor get value thread id installed true | installs the hook |
public int get point x if struct null return struct point x else return 0 | specifies the x coordinates of the cursor in screen coordinates |
public int get point y if struct null return struct point y else return 0 | specifies the y coordinates of the cursor in screen coordinates |
private void notify listeners hook data data for int i 0 i listeners size message thread alive i hook event listener listener hook event listener listeners get i listener accept hook data data | notifies listeners about a hook event |
public int get mouse data if struct null return struct mouse data else return 0 | if the message is |
public void run message thread alive true event object new event object descriptor get name event object reset event loop install hook while message thread alive event object wait for if message thread alive hook data hook data hook data extension read hook data descriptor get value notify listeners hook data event object reset un install hook event object reset event object close installed false | starts the event loop |
public int get flags if struct null return struct flags else return 0 | specifies the event injected flag |
public int get extra info if struct null return struct dw extra info else return 0 | specifies extra information associated with the message |
private void uninstall message thread alive false event object notify event | uninstalls the hook |
public mouse llhook struct get struct return new mouse llhook struct struct | get msllhookstruct struct from hook proc |
public int get lparam return l param | get hook proc lparam |
public int get wparam return w param | get hook proc wparam |
public int get ncode return n code | get hook proc n code |
public boolean save to point int point return extension save struct to point msg point | set java object data to memory point |
public void set value event msg msg if this msg null this msg msg msg else this msg hwnd msg msg hwnd this msg message msg msg message this msg param h msg msg param h this msg param l msg msg param l this msg time msg msg time | set specified event msg object as this object content |
public boolean save to point int point return extension save struct to point struct point | set java object data to memory point |
public void set value mouse hook struct struct if this struct null this struct struct struct else this struct point x struct struct point x this struct point y struct struct point y this struct hwnd struct struct hwnd this struct w hit test code struct struct w hit test code this struct dw extra info struct struct dw extra info | set specified mouse hook struct object as this object content |
public void set value mouse llhook struct struct if this struct null this struct struct struct else this struct point x struct struct point x this struct point y struct struct point y this struct mouse data struct struct mouse data this struct flags struct struct flags this struct time struct struct time this struct dw extra info struct struct dw extra info | set specified mouse llhook struct object as this object content |
public void save to point int point os move memory point msg msg sizeof | set java object data to memory point |
public void set value msg msg if this msg null this msg msg msg else this msg hwnd msg msg hwnd this msg message msg msg message this msg w param msg msg w param this msg l param msg msg l param this msg time msg msg time this msg x msg msg x this msg y msg msg y | set specified msg object as this object content |
public int get scan code if struct null return struct scan code else return 0 | get kbdllhookstruct member scan code from hook proc |
public void set value keyboard llhook struct struct if this struct null this struct struct struct else this struct vk code struct struct vk code this struct scan code struct struct scan code this struct flags struct struct flags this struct time struct struct time this struct dw extra info struct struct dw extra info | set specified keyboard llhook struct object as this object content |
public int vk code if struct null return struct vk code else return 0 | get kbdllhookstruct member time from hook proc |
public int get hit test code if struct null return struct w hit test code else return 0 | specifies the hit test value |
public mouse hook struct get struct return new mouse hook struct struct | get mousehookstruct struct from hook proc |
public keyboard llhook struct get struct return new keyboard llhook struct struct | get kbdllhookstruct struct from hook proc |
public interceptor flag intercept int n code int w param int l param keyboard llhook data hook data new keyboard llhook data hook data set wparam w param hook data set lparam l param hook data set ncode n code hook data set struct kbdllhookstruct value of l param return intercept hook data | create the keyboard llhook data and allow user to intercept hook proc by |
public boolean is custom return true equals this false equals this | check if the value is user custom defining |
public int get oem id return oem id | get os oem id |
public int get number of processors return number of processors | get the number of computer processor |
public int get processor type return processor type | get processor type |
public string get computer name return extension get computer name | get computer name |
public string get value string variable if registry key exists throw new unsupported operation exception if registry key has value variable return string registry key get value variable get data else return null | returns the value of the specified variable from the environment block of |
public boolean set computer name string name if name get bytes length 31 throw new unsupported operation exception compute name length can t more than 31 return extension set computer name name | set computer name |
public void set variable string variable string value if registry key exists throw new unsupported operation exception registry key set value new registry value variable value fire setting changed | sets the value of an environment variable for the current process |
public string get user name return extension get user name | get current login user name |
private void fire setting changed extension send message hwnd broadcast extension wm settingchange 0 0 | sends a broadcast message saying that a variable is changed |
public boolean contains string variable if registry key exists throw new unsupported operation exception return registry key has value variable | verifies if there is a specified variable in the environment |
public int get platform id return platform id | returns the platform identifier for which the dll was built |
public string to string return dll version info major version get major version minor version get minor version build number get build number platform id get platform id | returns the specified library information details |
public int get build number int result build number if is nt return result extract build number from the structure value on windows 95 98 me the low order word contains the build number and the high order word contains the major and minor version numbers return result 0x ffff | get os build number |
public int get minor return minor version | get os minor version |
public string get service pack return c sdversion | returns additional version information string |
public int invoke i throws exception check state return extension invoke i f point | for calling native methods taking no args and returning an int |
public int invoke i int arg0 throws exception check state return extension invoke i i arg0 f point | for calling native methods taking one int arg and returning an int |
public int invoke i int arg0 int arg1 throws exception check state return extension invoke ii i arg0 arg1 f point | for calling native methods taking two int args and returning an int |
public int invoke i int arg0 int arg1 int arg2 throws exception check state return extension invoke iii i arg0 arg1 arg2 f point | for calling native methods taking two int args and returning an int |
public int invoke i string arg0 throws exception check state return extension invoke g i arg0 f point | for calling native methods taking one string arg and returning an int |
public int invoke i string arg0 string arg1 throws exception check state return extension invoke gg i arg0 arg1 f point | for calling native methods taking two string args and returning an int |
public int invoke i int arg0 string arg1 throws exception check state return extension invoke ig i arg0 arg1 f point | for calling native methods taking one int and one string args and |
public int invoke i byte arg0 throws exception check state return extension invoke p i arg0 f point | for calling native methods taking one pointer to a byte array and |
public int invoke oi int arg0 string arg1 throws exception check state return extension invoke igo arg0 arg1 f point | for calling native methods taking one in int one in string and one |
public void menu hidden event e | sent when a menu is hidden |
public void menu selected event e | sent when a menu is selected |
public void menu shown event e | sent when a menu is shown |
public void install hook if ole msg callback null ole msg callback new callback this ole msg proc 3 ole msg proc address ole msg callback get address if ole msg proc address 0 swt error swt error no more callbacks int thread id extension get current thread id proc handle extension set windows hook ex extension wh getmessage ole msg proc address 0 thread id display get default set data hhook new long proc handle display get default set data hhookmsg new msg | install the hook |
public void un install hook if ole msg callback null extension unhook windows hook ex proc handle ole msg callback dispose ole msg callback null ole msg proc address 0 | uninstall the hook and dispose the system garbage |
public object next if key get path length 0 return new registry key key get root key key get path get next else return new registry key key get root key get next next | returns the next code registry key code element in the iteration |
public void remove throw new unsupported operation exception the remove operation is not supported by this iterator remove | the optional code remove code operation is not supported by this |
public value type get type return this type get type | returns this code registry value code s code value type code |
public void set type value type type this type type set type | sets this code registry value code s code value type code |
public object get data return this data get data | returns this code registry value code s data |
public void set data byte data set data new byte data set data | sets this code registry value code s data |
public boolean has next return key value iterator has next | returns code true code if the iteration contains more registry value |
public object next return key get value get next return new registry key key get root key key get path string get next next | returns the next registry value element in the iteration |
private string get next return key value iterator get next | returns the next registry value element in the iteration |
protected int get value return this value get value | returns the integer value used by the native windows registry functions |
public root key get root key return root get root key | returns this code registry key code s root key |
public string get path return path get path | returns this code registry key code s code path code |
public string get name return path substring 1 path last index of get name | returns this code registry key code s code name code |
public void create create key | creates this registry key in the system registry |
public registry key create subkey string name registry key r new registry key this root this path name r create return r create subkey | creates the specified subkey |
public void delete delete key | deletes this registry key and any subkeys or values from the system |
public int get ready state if created return flash object get integer property dispid readystate else return readystate uninitialized | returns the current state of the control |
public boolean has subkeys return has subkeys | tests if this registry key possesses subkeys |
public boolean has subkey string name registry key r new registry key this root this path name return r exists has subkey | tests if this registry key possesses the specified subkey |
public iterator subkeys return new key iterator this subkeys | returns an iterator for available subkeys |
public registry key get subkey string name if has subkey name iterator iter subkeys while iter has next registry key subkey registry key iter next if name equals subkey get name return subkey return null | returns the specified subkey |
public iterator values return new value iterator this values | returns an iterator for available values |
public int get total frames if created get ready state readystate complete return flash object get integer property dispid totalframes else return 0 | returns the total number of frames in the movie |
public boolean has value string name return has key value name | tests if this registry key possess the specified value |
public boolean has values return has key values | tests if this registry key possess any values |
public registry value get value string name return get key value name | returns a code registry value code representing the specified value |
public void set value registry value value set key value value | sets the properties of a registry value according to the properties of |
public void delete value string name delete key value name | deletes the specified value from this registry key |
public string to string return root to string this path to string | returns a string representation of this code registry key code |
public void wait for int time extension wait for single object event handle time | waits for an event object |
public void wait for extension wait for single object event handle win32 infinite timeout | waits for an event object |
public void reset extension reset event event handle | resets the state of the event object |
public void notify event extension set event event handle | notifies the event object |
public void close extension2 close handle event handle | closes the event object |
public int get event handle return event handle | return the event handle |
public void set variable string name string value if created return variant args new variant 2 args 0 new variant name args 1 new variant value flash object invoke no reply dispid setvariable args | sets the value of the flash variable specified by name to the value |
public string get variable string name if created return null variant args new variant 1 args 0 new variant name variant result flash object invoke dispid getvariable args return result null result get string | returns the value of the flash variable specified by var name |
public void set color color color f indicator color color | sets the header color |
private void handle dispose if f text viewer null f text viewer remove text listener f internal listener f text viewer null if f model null f model remove annotation model listener f internal listener if f buffer null f buffer dispose f buffer null f configured annotation types clear f allowed annotation types clear f configured header annotation types clear f allowed header annotation types clear f annotation types2 colors clear f annotations sorted by layer clear f layers sorted by layer clear | disposes the rulers resources |
protected iregion find extended double click selection idocument document int offset return null | tries to find a suitable double click selection for the given offset |
private void double buffer paint gc dest point size f canvas get size if size x 0 size y 0 return if f buffer null rectangle r f buffer get bounds if r width size x r height size y f buffer dispose f buffer null if f buffer null f buffer new image f canvas get display size x size y gc gc new gc f buffer try gc set background f canvas get background gc fill rectangle 0 0 size x size y cache annotations do paint gc finally gc dispose dest draw image f buffer 0 0 | double buffer drawing |
private void redraw if f text viewer null f model null return if f canvas null f canvas is disposed if is mac f canvas redraw f canvas update else gc gc new gc f canvas double buffer paint gc gc dispose | redraws the overview ruler |
private int find best matching line number int line numbers if line numbers null line numbers length 1 return 1 try position pos get annotation position line numbers if pos null return 1 return f text viewer get document get line of offset pos get offset catch bad location exception ex return 1 | returns the line which corresponds best to one of |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.