Lines Matching defs:handle
119 let mut handle: HMODULE = std::ptr::null_mut();
121 let result = libloaderapi::GetModuleHandleExW(0, std::ptr::null_mut(), &mut handle);
125 Some(Library(handle))
138 /// modules corresponding to the `filename`, it is impossible to predict which module handle
152 let mut handle: HMODULE = std::ptr::null_mut();
156 let result = libloaderapi::GetModuleHandleExW(0, wide_filename.as_ptr(), &mut handle);
160 Some(Library(handle))
196 let handle =
198 if handle.is_null() {
201 Some(Library(handle))
257 /// Convert the `Library` to a raw handle.
259 let handle = self.0;
261 handle
264 /// Convert a raw handle to a `Library`.
268 /// The handle must be the result of a successful call of `LoadLibraryA`, `LoadLibraryW`,
269 /// `LoadLibraryExW`, or `LoadLibraryExA`, or a handle previously returned by the
271 pub unsafe fn from_raw(handle: HMODULE) -> Library {
272 Library(handle)
334 /// Convert the loaded `Symbol` into a handle.