* hookapi.cc (ld_preload): Call LoadLibraryW.

* path.h (path_conv::get_wide_win32_path_len): Define.
This commit is contained in:
Corinna Vinschen
2007-08-20 15:41:08 +00:00
parent 876da7fb74
commit 891b6e885e
3 changed files with 13 additions and 1 deletions

View File

@ -240,6 +240,12 @@ class path_conv
PUNICODE_STRING get_nt_native_path ();
POBJECT_ATTRIBUTES get_object_attr (OBJECT_ATTRIBUTES &attr,
SECURITY_ATTRIBUTES &sa);
inline size_t get_wide_win32_path_len ()
{
get_nt_native_path ();
return uni_path.Length / sizeof (WCHAR);
}
PWCHAR get_wide_win32_path (PWCHAR wc);
operator DWORD &() {return fileattr;}
operator int () {return fileattr; }