Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 3 of file proto.c.
Referenced by RunTest(), and TiCreateFileObject().
{ UNICODE_STRING us; NTSTATUS Status; ULONG Value; PWSTR Name; TI_DbgPrint(MAX_TRACE, ("Called. FileName (%wZ).\n", FileName)); Name = FileName->Buffer; if (*Name++ != (WCHAR)L'\\') return STATUS_UNSUCCESSFUL; if (*Name == L'\0') return STATUS_UNSUCCESSFUL; RtlInitUnicodeString(&us, Name); Status = RtlUnicodeStringToInteger(&us, 10, &Value); if (!NT_SUCCESS(Status) || ((Value > 255))) return STATUS_UNSUCCESSFUL; *Protocol = Value; return STATUS_SUCCESS; }