44 Connection->Options =
NULL;
49 if (Connection->Buffer)
50 *ConnectionName = (
LPWSTR)Connection->Buffer->Buffer;
77 if (Connection->Options && Connection->Options->Length)
83 Buffer->EaLength = Connection->Options->Length;
95 if (Connection->Buffer)
98 Connection->Buffer =
NULL;
100 Connection->Options =
NULL;
101 Connection->BufferSize = 0;
void MarshalConnectionInfo(IN OUT PCONNECTION_INFO Connection)
DWORD InitializeConnectionInfo(IN OUT PCONNECTION_INFO Connection, IN PMOUNT_OPTION_BUFFER Options, OUT LPWSTR *ConnectionName)
static FORCEINLINE SIZE_T ConnectionBufferSize(IN PCONNECTION_BUFFER Buffer)
void FreeConnectionInfo(IN PCONNECTION_INFO Connection)
#define MAX_CONNECTION_BUFFER_SIZE(EaSize)
#define MOUNT_OPTION_BUFFER_SECRET
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
HLOCAL NTAPI LocalFree(HLOCAL hMem)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
#define RtlCopyMemory(Destination, Source, Length)
_In_ PWDFDEVICE_INIT _In_ PWDF_REMOVE_LOCK_OPTIONS Options