Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Group: Dynamically Linked Library
See also: dlopen dlclose dlcall dlcallex

Function: dlquery
Description: dlquery returns the handles and names of the loaded dlls.

Link:
Usage: q = dlquery ()
Output:
q.name n vector of strings containing the names of the loaded dlls
q.location n vector of strings containing the absolute pathes of the loaded dlls
q.count n vector which tells how often dlopen was called on the loaded dlls

Note:

Example:
proc()=loaddll(name)
  if(getenv("os")=="unix")
    dllname=name+".so"
  else
    dllname=name+".dll"
  endif
  h=dlopen(dllname)
  dlquery()
endp
loaddll("gplm")

Result:
Contents of dlquery.name
[ 1,] "gplm.dll"
[ 2,] ""
[ 3,] ""
[ 4,] ""
[ 5,] ""
[ 6,] ""
[ 7,] ""
[ 8,] ""
[ 9,] ""
[10,] ""
[11,] ""
[12,] ""
[13,] ""
[14,] ""
[15,] ""
[16,] ""
Contents of dlquery.location
[ 1,] "G:\xplore\dll\gplm.dll"
[ 2,] ""
[ 3,] ""
[ 4,] ""
[ 5,] ""
[ 6,] ""
[ 7,] ""
[ 8,] ""
[ 9,] ""
[10,] ""
[11,] ""
[12,] ""
[13,] ""
[14,] ""
[15,] ""
[16,] ""
Contents of dlquery.count
[ 1,]        1
[ 2,]       -1
[ 3,]       -1
[ 4,]       -1
[ 5,]       -1
[ 6,]       -1
[ 7,]       -1
[ 8,]       -1
[ 9,]       -1
[10,]       -1
[11,]       -1
[12,]       -1
[13,]       -1
[14,]       -1
[15,]       -1
[16,]       -1



(C) MD*TECH Method and Data Technologies, 05.02.2006