예제 #1
0
 private static SafeLibraryHandle NullifyInvalidHandle(SafeLibraryHandle handle)
 {
     return(handle.IsInvalid ? null : handle);
 }
예제 #2
0
 public static IntPtr LoadProcedure(SafeLibraryHandle handle, string functionName)
 {
     return(dlsym(handle, functionName));
 }
예제 #3
0
 private static extern IntPtr dlsym(SafeLibraryHandle handle, string symbol);
예제 #4
0
 private static extern IntPtr GetProcAddress(SafeLibraryHandle moduleHandle, string procname);