Can you find in a running CL program the lib that it was started from? For example in a C program you can get the library name from argv[0].