|
Definition at line 148 of file string.c.
References SourceString, and USHORT.
Referenced by _UserTestForWinStaAccess(), AllocateUnicodeString(), ArbpGetRegistryValue(), bCheckAndDeleteTTF(), bCleanConvertedTTFs(), bLoadableFontDrivers(), ChangeDisplaySettingsEx(), CheckDesktopPolicy(), CheckRestricted(), CheckValidLayoutName(), CleanupSessionObjectDirectories(), CliGetImeHotKeysFromRegistry(), CliGetPreloadKeyboardLayouts(), CliReadRegistryValue(), CmDeleteKeyRecursive(), CmGetSystemControlValues(), CmGetSystemDriverList(), CmInitSystem1(), CmpAddAcpiAliasEntry(), CmpAddAliasEntry(), CmpAddDockingInfo(), CmpAddDriverToList(), CmpAddToHiveFileList(), CmpCloneControlSet(), CmpCloneHwProfile(), CmpCreateControlSet(), CmpCreateHwProfileFriendlyName(), CmpCreateObjectTypes(), CmpCreatePerfKeys(), CmpCreatePredefined(), CmpCreateRootNode(), CmpFindControlSet(), CmpFindDrivers(), CmpFindNLSData(), CmpFindProfileOption(), CmpFindRSDTTable(), CmpGetAcpiProfileInformation(), CmpGetRegistryValue(), CmpInitializeHiveList(), CmpInitializeMachineDependentConfiguration(), CmpInitializeRegistryNames(), CmpInitializeRegistryNode(), CmpInterlockedFunction(), CmpIsLoadType(), CmpLinkKeyToHive(), CmpMapPhysicalAddress(), CmpMoveBiosAliasTable(), CmpOpenHiveFiles(), CmpRemoveFromHiveFileList(), CmpSaveBootControlSet(), CmpSetCurrentProfile(), CmpSetVersionData(), CmpSortDriverList(), CmpWalkPath(), CmSetAcpiHwProfile(), CommonCreateWindowStation(), CommonOpenWindowStation(), ComPortDBAdd(), ConnectToTerminalServer(), ConsoleClientConnectRoutine(), CreateDesktopW(), CreateWindowStationW(), CtLpcQos(), DbgkCreateThread(), DbgSspConnectToDbg(), DbgUiConnectToDbg(), DoEventTest(), DoMutantTest(), DoSemaphoreTest(), DoTimerTest(), DrGetDeviceName(), DriverEntry(), EhOpenHive(), EisaBuildEisaDeviceNode(), EisaGetEisaDevicesResources(), EnumDisplayDevices(), EnumDisplaySettingsEx(), ExpEventInitialization(), ExpEventPairInitialization(), ExpGetCurrentUserUILanguage(), ExpGetUILanguagePolicy(), ExpInitializeCallbacks(), ExpMutantInitialization(), ExpProfileInitialization(), ExpQueryLegacyDriverInformation(), ExpSemaphoreInitialization(), ExpSetCurrentUserUILanguage(), ExpSystemErrorHandler(), ExpTimerInitialization(), ExpUuidLoadSequenceNumber(), ExpUuidSaveSequenceNumber(), ExpValidateLocale(), ExpWin32Initialization(), FastGetProfileDwordW(), FastGetProfileIntW(), FastGetProfileStringW(), FastGetProfileValue(), FastWriteProfileStringW(), FastWriteProfileValue(), FsRecCreateAndRegisterDO(), FsRecLoadFileSystem(), FsRtlpOpenDev(), FsRtlpSetSymbolicLink(), FsRtlRegisterUncProvider(), FsVgaServiceParameters(), GetActiveKeyboardName(), GetBadAppCmdLine(), GetConsoleInputExeNameA(), GetDeviceChangeInfo(), GetErrorMode(), GetHardErrorText(), GetRealDllFileNameWorker(), GetRegIntFromID(), GetServerIMEKeyboardLayout(), HalpEnableAutomaticDriveLetterAssignment(), HalpNextDriveLetter(), HalpNextMountLetter(), HalpSetMountLetter(), InitCreateObjectDirectory(), InitCreateUserSubsystem(), InitializeFullScreen(), InitializeRestrictedStuff(), InitiateWin32kCleanup(), InternalRegisterClassEx(), IoCreateDevice(), IoepGetErrCaseDB(), IoepGetErrMessage(), IoepHandleErrCase(), IoepLogErr(), IoErrInitSystem(), IoGetDeviceProperty(), IoGetLegacyVetoList(), IoInitSystem(), IoIsValidNameGraftingBuffer(), IopAddRemoteBootValuesToRegistry(), IopAppendStringToValueKey(), IopAssignNetworkDriveLetter(), IopBootLog(), IopBootLogToFile(), IopBuildCmResourceList(), IopCacheNetbiosNameForIpAddress(), IopCallDriverAddDevice(), IopCallDriverAddDeviceQueryRoutine(), IopChangeDeviceObjectFromRegistryProperties(), IopCheckDependencies(), IopConnectLinkTrackingPort(), IopCopyBootLogRegistryToFile(), IopCreateArcNames(), IopCreateMadeupNode(), IopCreateObjectTypes(), IopCreateRootDirectories(), IopDeleteKeyRecursive(), IopDeleteSessionSymLinks(), IopDriverCorrectnessProcessParams(), IopDriverLoadingFailed(), IopErrorLogConnectPort(), IopExecuteHardwareProfileChange(), IopGetLegacyVetoListDrivers(), IopGetRegistryValue(), IopInitializeBootDrivers(), IopInitializeDeviceInstanceKey(), IopInitializePlugPlayServices(), IopInitializeResourceMap(), IopIsFirmwareDisabled(), IopIsReportedAlready(), IopLoadDriver(), IopLoadDumpDriver(), IopMakeGloballyUniqueId(), IopOpenDeviceParametersSubkey(), IopProcessCriticalDevice(), IopProcessNewDeviceNode(), IopProcessSetInterfaceState(), IopProtectSystemPartition(), IopRaiseHardError(), IopReadDumpRegistry(), IopRemoveDeviceInterfaces(), IopRemoveStringFromValueKey(), IopRestartDeviceNode(), IopSafebootDriverLoad(), IopSetDefaultGateway(), IopSetLegacyDeviceInstance(), IopSetSecurityObjectFromRegistry(), IopSetupRemoteBootCard(), IopStartNetworkForRemoteBoot(), IopStartTcpIpForRemoteBoot(), IopUnloadAttachedDriver(), IopUpdateHardwareProfile(), IopWriteAllocatedResourcesToRegistry(), IopWriteIpAddressToRegistry(), IoRegisterPlugPlayNotification(), IoReportDetectedDevice(), IoReportHalResourceUsage(), IsPrivileged(), KbdLayerRealDllFileForWBT(), KeI386VdmInitialize(), KeSetup80387OrEmulate(), LB_CreateLBLine(), LdrGetDllHandle(), LdrLoadAlternateResourceModule(), LdrpCheckForKnownDll(), LdrpDphDetectSnapRoutines(), LdrpDphInitializeTargetDll(), LdrpInitializeProcess(), LdrpLoadDll(), LdrpMapDll(), LdrQueryApplicationCompatibilityGoo(), LdrQueryImageFileExecutionOptions(), LoadAppDlls(), LpcInitSystem(), LpcpCreatePort(), main(), MapperConstructRootEnumTree(), MapperMarkKey(), MapperPhantomizeDetectedComPorts(), MapperSeedKey(), MenuLoadChicagoTemplates(), MenuLoadWinTemplates(), MiBuildImportsForBootDrivers(), MiInitializeDriverVerifierList(), MiLoadSystemImage(), MiSectionInitialization(), MiSessionWideInsertImageAddress(), MiSuperSectionInitialization(), MmGetSystemRoutineAddress(), MyRegOpenKey(), MyRegQueryValue(), NlsKbdInitializePerSystem(), NotificationThread(), NtCreateSymbolicLinkObject(), NtQueryDirectoryObject(), NtQueryOpenSubKeys(), NtSetDefaultLocale(), NtUserCreateWindowStation(), NtUserOpenWindowStation(), NtUserThunkedMenuItemInfo(), ObGetObjectInformation(), ObInitSystem(), ObpCreateDosDevicesDirectory(), ObpProcessDosDeviceSymbolicLink(), OpenDesktopW(), OpenDeviceReparseIndex(), OpenKeyboardLayoutFile(), OpenMultiplePortDevice(), OpenWindowStationW(), ParseReserved(), PnPBiosCopyDeviceParamKey(), PnPBiosCopyIoDecode(), PnPBiosEliminateDupes(), PnPBiosGetBiosInfo(), PnPBiosWriteInfo(), PnPCheckFixedIoOverrideDecodes(), PnPGetDevnodeExcludeList(), processargs(), PsLocateSystemDll(), PspInitPhase0(), RawInputThread(), RegInitialize(), RegReadApcProcedure(), RegReadBinaryFile(), RemoteMessageThread(), RtlAddActionToRXact(), RtlAppendUnicodeToString(), RtlApplyRXact(), RtlConvertUiListToApiList(), RtlCreateUserProcess(), RtlDeleteRegistryValue(), RtlDosPathNameToNtPathName_U(), RtlDosSearchPath_U(), RtlGetFullPathName_U(), RtlGetFullPathName_Ustr(), RtlGetNtProductType(), RtlInitializeRXact(), RtlInitUnicodeStringOrId(), RtlIsDosDeviceName_U(), RtlIsDosDeviceName_Ustr(), RtlOpenCurrentUser(), RtlpCheckRelativeDrive(), RtlpDebugPageHeapCreate(), RtlpResetDriveEnvironment(), RtlpValidateCurrentDirectory(), RtlQueryRegistryValues(), RtlVolumeDeviceToDosName(), RtlWriteRegistryValue(), SepAdtInitializeAuditingOptions(), SepAdtInitializeBounds(), SepAdtInitializeCrashOnFail(), SepAdtInitializePhase1(), SepAdtInitializePrivilegeAuditing(), SepAuditFailed(), SepRmCommandServerThreadInit(), SepTokenInitialization(), ServiceMessageBox(), SetAppCompatFlags(), SetAppImeCompatFlags(), SetConsolePalette(), SmbTraceStart(), SrvAllocConsole(), StartRegReadRead(), SubstituteDeviceName(), TerminalServerRequestThread(), UserBeep(), UserClientDllInitialize(), vCleanConvertedTTFs(), VdmpInitialize(), vProcessFontEntry(), vSweepFonts(), xHalIoAssignDriveLetters(), xxxAddFontResourceW(), xxxConnectService(), xxxCreateDisconnectDesktop(), xxxCreateWindowStation(), xxxDesktopThread(), xxxLoadDesktopWallpaper(), xxxLoadHmodIndex(), xxxLoadKeyboardLayoutEx(), xxxMNFindChar(), xxxPSMTextOut(), xxxRegisterForDeviceClassNotifications(), xxxRemoteReconnect(), xxxResolveDesktop(), xxxResolveDesktopForWOW(), xxxSetClassData(), xxxUpdateSystemCursorsFromRegistry(), and xxxUpdateSystemIconsFromRegistry().
00155 :
00156
00157 The RtlInitUnicodeString function initializes an NT counted
00158 unicode string. The DestinationString is initialized to point to
00159 the SourceString and the Length and MaximumLength fields of
00160 DestinationString are initialized to the length of the SourceString,
00161 which is zero if SourceString is not specified.
00162
00163 Arguments:
00164
00165 DestinationString - Pointer to the counted string to initialize
00166
00167 SourceString - Optional pointer to a null terminated unicode string that
00168 the counted string is to point to.
00169
00170
00171 Return Value:
00172
00173 None.
00174
00175 --*/
00176
00177 {
00178 ULONG Length;
00179
00180 DestinationString->Buffer = (PWSTR) SourceString;
00181 if (ARGUMENT_PRESENT( SourceString )) {
00182 Length = wcslen( SourceString ) * sizeof( WCHAR );
00183 DestinationString->Length = ( USHORT)Length;
00184 DestinationString->MaximumLength = ( USHORT)(Length + sizeof(UNICODE_NULL));
00185 }
00186 else {
00187 DestinationString->MaximumLength = 0;
00188 DestinationString->Length = 0;
00189 }
00190 }
|