Remove rosrtl from advapi

svn path=/trunk/; revision=16161
This commit is contained in:
Alex Ionescu 2005-06-20 18:58:56 +00:00
parent cf9968925b
commit 44b8b1697a
3 changed files with 16 additions and 7 deletions

View file

@ -15,7 +15,7 @@
/* PROTOTYPES ****************************************************************/
/* FIXME: FILE NEEDS TO BE CLEANED UP AT THE END WHEN ALL THE FUNCTIONS HAVE BEEN ADDED */
/* FIXME: FILE NEEDS SOME ALPHABETIZING AND REGROUP */
/* List Macros */
static __inline
@ -193,6 +193,16 @@ RemoveTailList(
InsertTailList(current, &((NewEntry)->ListEntryField));\
}
/*
* Constant String Macro
*/
#define RTL_CONSTANT_STRING(__SOURCE_STRING__) \
{ \
sizeof(__SOURCE_STRING__) - sizeof((__SOURCE_STRING__)[0]), \
sizeof(__SOURCE_STRING__), \
(__SOURCE_STRING__) \
}
/*
* Debug Functions
*/

View file

@ -15,5 +15,4 @@
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
/* FIXME: ROSRTL */
#include <rosrtl/string.h>
/* EOF */

View file

@ -179,7 +179,7 @@ static NTSTATUS
OpenClassesRootKey (PHANDLE KeyHandle)
{
OBJECT_ATTRIBUTES Attributes;
UNICODE_STRING KeyName = ROS_STRING_INITIALIZER(L"\\Registry\\Machine\\Software\\CLASSES");
UNICODE_STRING KeyName = RTL_CONSTANT_STRING(L"\\Registry\\Machine\\Software\\CLASSES");
DPRINT("OpenClassesRootKey()\n");
@ -198,7 +198,7 @@ static NTSTATUS
OpenLocalMachineKey (PHANDLE KeyHandle)
{
OBJECT_ATTRIBUTES Attributes;
UNICODE_STRING KeyName = ROS_STRING_INITIALIZER(L"\\Registry\\Machine");
UNICODE_STRING KeyName = RTL_CONSTANT_STRING(L"\\Registry\\Machine");
NTSTATUS Status;
DPRINT("OpenLocalMachineKey()\n");
@ -221,7 +221,7 @@ static NTSTATUS
OpenUsersKey (PHANDLE KeyHandle)
{
OBJECT_ATTRIBUTES Attributes;
UNICODE_STRING KeyName = ROS_STRING_INITIALIZER(L"\\Registry\\User");
UNICODE_STRING KeyName = RTL_CONSTANT_STRING(L"\\Registry\\User");
DPRINT("OpenUsersKey()\n");
@ -241,7 +241,7 @@ OpenCurrentConfigKey (PHANDLE KeyHandle)
{
OBJECT_ATTRIBUTES Attributes;
UNICODE_STRING KeyName =
ROS_STRING_INITIALIZER(L"\\Registry\\Machine\\System\\CurrentControlSet\\Hardware Profiles\\Current");
RTL_CONSTANT_STRING(L"\\Registry\\Machine\\System\\CurrentControlSet\\Hardware Profiles\\Current");
DPRINT("OpenCurrentConfigKey()\n");