|
Definition at line 76 of file rtdmpb.c.
References Dump(), exit, L, NT_SUCCESS, NtOpenKey(), NTSTATUS(), NULL, ObjectAttributes, processargs(), WORK_SIZE, workbuffer, and WorkName.
00080 {
00081 NTSTATUS status;
00082 OBJECT_ATTRIBUTES ObjectAttributes;
00083 HANDLE BaseHandle;
00084
00085
00086
00087
00088
00089 WorkName.MaximumLength = WORK_SIZE;
00090 WorkName.Length = 0 L;
00091 WorkName.Buffer = &( workbuffer[0]);
00092
00093 processargs(argc, argv);
00094
00095
00096
00097
00098
00099
00100 printf( "rtdmp: starting\n");
00101
00102 InitializeObjectAttributes(
00103 &ObjectAttributes,
00104 &WorkName,
00105 0,
00106 (HANDLE)NULL,
00107 NULL
00108 );
00109 ObjectAttributes.Attributes |= OBJ_CASE_INSENSITIVE;
00110
00111 status = NtOpenKey(
00112 &BaseHandle,
00113 MAXIMUM_ALLOWED,
00114 &ObjectAttributes
00115 );
00116 if (! NT_SUCCESS(status)) {
00117 printf( "rtdmp: t0: %08lx\n", status);
00118 exit(1);
00119 }
00120
00121 Dump(BaseHandle);
00122 }
|