search for: object_attributes

Displaying 9 results from an estimated 9 matches for "object_attributes".

2014 Jan 10
4
[PATCH] Add a minimal hive with "special" keys and values
...racter */ + +#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, + NULL, NULL); + HANDLE minimal_key_handle; + rc = ZwCreateKey (&minimal_key_handle, KEY_ALL_ACCESS, &root_key...
2014 Jan 13
0
Re: [PATCH 1/7] Add a minimal hive with "special" keys and values
...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); > + HANDLE key_handle; > + NTSTATUS rc; > + rc = ZwCreateKey (&key_handle, KEY_ALL_ACC...
2014 Jan 10
14
[PATCH 1/7] Add a minimal hive with "special" keys and values
....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); + HANDLE key_handle; + NTSTATUS rc; + rc = ZwCreateKey (&key_handle, KEY_ALL_ACCESS, &key_obj, +...
2007 Nov 02
0
[PATCH] PVWin: Fix warnings
...ruct write_req header_req = { &m, sizeof(m) }; @@ -347,16 +351,15 @@ char* xenbus_wait_for_value(const char* // else // wait_for_watch(); // } - return NULL; + UNREFERENCED_PARAMETER(path); + UNREFERENCED_PARAMETER(value); + + return NULL; } NTSTATUS XenBus_Init() { - OBJECT_ATTRIBUTES oa; - NTSTATUS status; - int i; - KdPrint((__DRIVER_NAME " --> XenBus_Init\n")); xen_store_evtchn = EvtChn_GetXenStorePort(); @@ -417,6 +420,8 @@ XenBus_Stop() // Does this actually stop the threads??? ZwClose(XenBus_WatchThreadHandle); ZwClose(XenBus_ReadThreadHandle...
2014 Jan 14
2
Re: [PATCH 1/7] Add a minimal hive with "special" keys and values
...clude <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); > > + HANDLE key_handle; > > + NTSTATUS rc; > > + rc = ZwCreateKey...
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
2007 Oct 26
0
Wine release 0.9.48
...he unknown value for sid use in the LookupAccountName test, instead of the known value. server: Use the security descriptor passed in when creating events. kernel32: Add tests for creating events with different initial security descriptors. server: Make create_semaphore use struct object_attributes and set the security descriptor of semaphore objects. server: Make create_mutex use struct object_attributes and set the security descriptor of mutex objects. server: Make create_mapping use struct object_attributes and set the security descriptor of file mapping objects. advapi32...
2016 Jan 22
0
Wine release 1.9.2
...msvcrt: Don't import atexit to avoid conflicts with the Mingw runtime. msvcrt/tests: Don't check array pointer for NULL. explorer: Support a quoted /desktop option. xaudio2: Remove unnecessary kernel32 imports. ntdll: Add a helper function to allocate the full object_attributes structure. server: Store the attributes in the object_attributes structure. server: Add a helper function to validate and return object attributes. server: Allow the object attributes to be omitted in requests. server: Pass full object attributes in the create_timer request....
2007 Nov 09
0
Wine release 0.9.49
...Report FIXME only once. advapi32/tests: Make tests run on win98 again. dsound/tests: Fix test failures on WinXP and 2003. Rob Shearman (36): urlmon: Add tests for BindToObject for URL monikers based on the existing tests for BindToStorage. server: Add the name length to the object_attributes structure so that other variable length data can be present after object_attributes. server: Pass the security descriptor into create_file, if one is specified, and set the initial mode for the file appropriately. advapi32: Implement CredWriteW. advapi32: Implement CredReadW and C...