mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 00:32:57 +00:00
[WDF] Add Windows Driver Framework files
Takern from Microsoft GitHub repo:
d9c6040fe9
Licensed under MIT
This commit is contained in:
parent
545df81502
commit
8a978a179f
475 changed files with 285099 additions and 0 deletions
41
sdk/lib/drivers/wdf/shared/primitives/um/mxfileobjectum.cpp
Normal file
41
sdk/lib/drivers/wdf/shared/primitives/um/mxfileobjectum.cpp
Normal file
|
@ -0,0 +1,41 @@
|
|||
/*++
|
||||
|
||||
Copyright (c) Microsoft Corporation
|
||||
|
||||
ModuleName:
|
||||
|
||||
MxFileObjectUm.cpp
|
||||
|
||||
Abstract:
|
||||
|
||||
Implementation of MxFileObjectUm functions.
|
||||
|
||||
Author:
|
||||
|
||||
Revision History:
|
||||
|
||||
|
||||
|
||||
--*/
|
||||
|
||||
#include "Mx.h"
|
||||
|
||||
#include <strsafe.h>
|
||||
|
||||
#include "fxmin.hpp"
|
||||
|
||||
PUNICODE_STRING
|
||||
MxFileObject::GetFileName(
|
||||
_Inout_opt_ PUNICODE_STRING Filename
|
||||
)
|
||||
{
|
||||
LPCWSTR name;
|
||||
|
||||
ASSERTMSG("Filename parameter cannot be NULL\n", Filename != NULL);
|
||||
|
||||
name = m_FileObject->GetName();
|
||||
RtlInitUnicodeString(Filename, name);
|
||||
|
||||
return Filename;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue