search for: unicode_str

Displaying 12 results from an estimated 12 matches for "unicode_str".

Did you mean: t_unicode_str
2014 Jan 10
4
[PATCH] Add a minimal hive with "special" keys and values
...s/mkzero/mkzero.c @@ -0,0 +1,48 @@ +/* use the NT native API to create registry key and value that contain + a zero character */ + +#include <ntdef.h> +#include <stdio.h> +#include <ddk/wdm.h> +#include <windef.h> + +int main (int argc, char **argv) +{ + NTSTATUS rc; + + UNICODE_STRING root_key_name; + RtlInitUnicodeString(&root_key_name, L"\\Registry\\Machine\\minimal"); + OBJECT_ATTRIBUTES root_key_obj; + InitializeObjectAttributes (&root_key_obj, &root_key_name, + OBJ_OPENIF | OBJ_CASE_INSENSITIVE, +...
2014 Jan 13
0
Re: [PATCH 1/7] Add a minimal hive with "special" keys and values
...value that contain > + a zero character */ > + > +#include <ntdef.h> > +#include <stdio.h> > +#include <ddk/wdm.h> > +#include <windef.h> > + > +void create_key_value (PHANDLE handle, WCHAR* key, int key_len, WCHAR* val, int val_len) > +{ > + UNICODE_STRING key_name = { key_len, key_len, key }; > + UNICODE_STRING value_name = { val_len, val_len, val }; > + OBJECT_ATTRIBUTES key_obj; > + InitializeObjectAttributes (&key_obj, &key_name, > + OBJ_OPENIF | OBJ_CASE_INSENSITIVE, > +...
2014 Jan 10
14
[PATCH 1/7] Add a minimal hive with "special" keys and values
...use the NT native API to create registry key and value that contain + a zero character */ + +#include <ntdef.h> +#include <stdio.h> +#include <ddk/wdm.h> +#include <windef.h> + +void create_key_value (PHANDLE handle, WCHAR* key, int key_len, WCHAR* val, int val_len) +{ + UNICODE_STRING key_name = { key_len, key_len, key }; + UNICODE_STRING value_name = { val_len, val_len, val }; + OBJECT_ATTRIBUTES key_obj; + InitializeObjectAttributes (&key_obj, &key_name, + OBJ_OPENIF | OBJ_CASE_INSENSITIVE, + *handle, NULL...
2006 Jun 18
0
Rails Core Weekly June 11 - June 18
...g time for Railsday or perhaps they we''re all having fun at RubyKaigi 2006. No one knows. But we did have some threads so here they are. Threads ------- [ thread: http://www.ruby-forum.com/topic/68960#new ] Julian Tarkhanov provides proxy access to allow for Unicode support like this: @unicode_str.u.length @unicode_str.u.reverse This sets off a very lengthy cross-list discussion about Rails'' and Ruby''s Unicode support in general. Relevant for us is that Julian has provided the solution in a nice little plugin available here: http://julik.textdriven.com/svn/tools/rails_plu...
2014 Jan 14
2
Re: [PATCH 1/7] Add a minimal hive with "special" keys and values
...t; > + > > +#include <ntdef.h> > > +#include <stdio.h> > > +#include <ddk/wdm.h> > > +#include <windef.h> > > + > > +void create_key_value (PHANDLE handle, WCHAR* key, int key_len, WCHAR* > val, int val_len) > > +{ > > + UNICODE_STRING key_name = { key_len, key_len, key }; > > + UNICODE_STRING value_name = { val_len, val_len, val }; > > + OBJECT_ATTRIBUTES key_obj; > > + InitializeObjectAttributes (&key_obj, &key_name, > > + OBJ_OPENIF | OBJ_CASE_INSENSITIVE, >...
2014 Jan 08
5
hivex: Make node names and value names with embedded null characters accessible
On Windows, there exist at least two APIs for dealing with the Registry: The Win32 API (RegCreateKeyA, RegCreateKeyW, etc.) works with null-terminated ASCII or UTF-16 strings. The native API (ZwCreateKey, etc.), on the other hand works with UTF-16 strings that are stored as buffers+length and may contain null characters. Malware authors have been relying on the Win32 API's inability to
2011 Aug 13
3
User32::MENU_CopySysPopup problem
When this code may fail? Code: /*********************************************************************** * MENU_CopySysPopup * * Return the default system menu. */ static HMENU MENU_CopySysPopup(BOOL mdi) { static const WCHAR sysmenuW[] = {'S','Y','S','M','E','N','U',0}; static const WCHAR sysmenumdiW[] =
2007 Nov 02
0
[PATCH] PVWin: Fix warnings
...sk = 1; KdPrint((__DRIVER_NAME " <-- EvtInterruptDisable\n")); + + return STATUS_SUCCESS; } static NTSTATUS @@ -611,13 +597,14 @@ XenPCI_ChildListCreateDevice(WDFCHILDLIS XEN_IFACE_XENBUS XenBusInterface; XEN_IFACE_XEN XenInterface; XEN_IFACE_GNTTBL GntTblInterface; - UNICODE_STRING DeviceId; DECLARE_UNICODE_STRING_SIZE(buffer, 20); WDF_OBJECT_ATTRIBUTES PdoAttributes; DECLARE_CONST_UNICODE_STRING(DeviceLocation, L"Xen Bus"); WDF_QUERY_INTERFACE_CONFIG qiConfig; - WDF_PDO_EVENT_CALLBACKS PdoCallbacks; PXENPCI_XEN_DEVICE_DATA ChildDeviceData = NULL...
2020 Jul 17
0
Wine release 5.13
...in the caller. winebuild: Fix retrieving syscall arg length on x86_64. ntdll: Return a char pointer instead of an ANSI_STRING in nt_to_unix_file_name(). ntdll: Allocate the return buffer in the caller for wine_nt_to_unix_file_name(). ntdll: Use char pointers instead of ANSI/UNICODE_STRING in unix_to_nt_file_name(). ntdll: Allocate the buffer in the caller for wine_unix_to_nt_file_name(). ntdll: Clear the reply data on error in virtual_locked_server_call(). mountmgr: Fix handling of buffer overflows in IOCTL_MOUNTMGR_QUERY_UNIX_DRIVE. ntdll: Use stack buffe...
2016 Feb 19
0
Wine release 1.9.4
...passed to VirtualFree in multiple tests. ntoskrnl.exe: Fix calling convention of InterlockedPopEntrySList. ntoskrnl.exe: Fix calling convention of InterlockedPushEntrySList. ntoskrnl.exe: Fix calling convention of ObfReferenceObject. ntoskrnl.exe: Use debugstr_us() to trace UNICODE_STRING. oleaut32/tests: Avoid misleading assignment in refcounting tests. ws2_32/tests: Add tests for getsockopt() with SO_SNDBUF and SO_RCVBUF optname. kernel32: Do not inherit QT_* environment variables to Windows environment. services: Start SERVICE_FILE_SYSTEM_DRIVER service...
2007 Jan 09
0
Wine release 0.9.29
...ailed. kernel32: Be more verbose about the expected and received values for failures in the resource function tests. ole32: Make sure to reset the message state if it has been changed in RPC_ExecuteCall before returning. ntdll: RtlInitUnicodeString on a string too long to fit in a UNICODE_STRING ntdll: Fix some test failures of RtlGUIDFromString and RtlStringFromGUID rpcrt4: Pass WT_EXECUTELONGFUNCTION to QueueUserWorkItem since the wininet: Remove the custom thread pool implementation and use QueueUserWorkItem instead. ntdll: Don't print a fixme in RtlQueueU...
2008 Jun 27
0
Wine release 1.1.0
.... d3d9: Make Direct3DCreate9 fail if we can't initialize wined3d. d3d9/tests: Test for Direct3DCreate9 failure. ole32: Don't consider RPC_S_UUID_LOCAL_ONLY an error in CoCreateGuid. oleaut32/tests: Allow UuidCreate to return RPC_S_UUID_LOCAL_ONLY. server: Use a unicode_str to represent atom names. server: Add support for a top-level message parent window in parallel to the desktop window. user32: Register the builtin 'Message' window class. user32: Add support for a top-level message parent window in parallel to the desktop window. ser...