Home
last modified time | relevance | path

Searched refs:Buf (Results 1 – 25 of 57) sorted by relevance

123

/reactos/modules/rostests/apitests/fontext/
H A DGetDisplayNameOf.cpp93 WCHAR Buf[MAX_PATH], *Ptr; in Test_GetDisplayNameOf() local
106 ok(Ptr != (Buf + wcslen(Buf)), "Did not find a separator in '%s'!\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
112 bRelative = PathIsRelativeW(Buf); in Test_GetDisplayNameOf()
116 ok(Ptr == (Buf + wcslen(Buf)), "Found a separator in '%s'!\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
122 bRelative = PathIsRelativeW(Buf); in Test_GetDisplayNameOf()
126 ok(Ptr == (Buf + wcslen(Buf)), "Found a separator in '%s'!\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
132 bRelative = PathIsRelativeW(Buf); in Test_GetDisplayNameOf()
139 ok(Ptr != (Buf + wcslen(Buf)), "Did not find a separator in '%s'!\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
144 ok(Ptr == (Buf + wcslen(Buf)), "Found a separator in '%s'!\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
160 ok(Ptr == (Buf + wcslen(Buf)), "Found a separator in '%s'!\n", wine_dbgstr_w(Buf)); in Test_GetDisplayNameOf()
[all …]
/reactos/modules/rosapps/applications/sysutils/systeminfo/
H A Dsysteminfo.c230 WCHAR Buf[4096]; in Usage() local
251 Buf[0] = L'\0'; in PrintRow()
255 else if (Buf[0]) in PrintRow()
378 sizeof(Buf)/sizeof(Buf[0]), in AllSysInfo()
382 GetSMBiosStringW(DmiStrings[SYS_VENDOR], Buf, _countof(Buf), FALSE); in AllSysInfo()
391 sizeof(Buf)/sizeof(Buf[0]), in AllSysInfo()
395 GetSMBiosStringW(DmiStrings[SYS_PRODUCT], Buf, _countof(Buf), FALSE); in AllSysInfo()
451 Buf, in AllSysInfo()
466 Buf, in AllSysInfo()
487 Buf, in AllSysInfo()
[all …]
/reactos/sdk/lib/rtl/
H A Ddbgbuffer.c32 PVOID Buf; in RtlpDebugBufferCommit() local
88 Buf->ViewBaseClient = Buf; in RtlCreateQueryDebugBuffer()
91 Buf->OffsetFree = sizeof(*Buf); in RtlCreateQueryDebugBuffer()
93 return Buf; in RtlCreateQueryDebugBuffer()
106 if (NULL != Buf) in RtlDestroyQueryDebugBuffer()
347 Hp = (PRTL_PROCESS_HEAPS)((PUCHAR)Buf + Buf->OffsetFree); in RtlQueryProcessDebugInformation()
358 Buf->OffsetFree = Buf->OffsetFree + HSize; in RtlQueryProcessDebugInformation()
367 Lp = (PRTL_PROCESS_LOCKS)((PUCHAR)Buf + Buf->OffsetFree); in RtlQueryProcessDebugInformation()
370 Buf->OffsetFree = Buf->OffsetFree + LSize; in RtlQueryProcessDebugInformation()
445 Buf->OffsetFree = Buf->OffsetFree + HSize; in RtlQueryProcessDebugInformation()
[all …]
/reactos/dll/win32/windowscodecs/
H A Dungif.c358 GifByteType Buf; in DGifGetRecordType() local
367 switch (Buf) { in DGifGetRecordType()
524 *ExtCode = Buf; in DGifGetExtension()
544 if (Buf > 0) { in DGifGetExtensionNext()
547 if (READ(GifFile, &((*Extension)[1]), Buf) != Buf) { in DGifGetExtensionNext()
589 if (Buf > 0) { in DGifGetCodeNext()
592 if (READ(GifFile, &((*CodeBlock)[1]), Buf) != Buf) { in DGifGetCodeNext()
856 if (READ(GifFile, &Buf[1], Buf[0]) != Buf[0]) { in DGifBufferedInput()
861 Buf[0]--; in DGifBufferedInput()
863 *NextByte = Buf[Buf[1]++]; in DGifBufferedInput()
[all …]
/reactos/base/services/eventlog/
H A Deventlog.c284 PWSTR Buf = NULL, Expanded = NULL; in LoadLogFile() local
303 if (!Buf) in LoadLogFile()
333 Buf = Expanded; in LoadLogFile()
373 DPRINT("%S -> %S\n", Buf, Expanded); in LoadLogFile()
424 HeapFree(GetProcessHeap(), 0, Buf); in LoadLogFile()
434 PWSTR Buf = NULL; in LoadLogFiles() local
448 if (!Buf) in LoadLogFiles()
458 Buf, in LoadLogFiles()
464 DPRINT("%S\n", Buf); in LoadLogFiles()
477 DPRINT("Loaded %S\n", Buf); in LoadLogFiles()
[all …]
H A Deventsource.c89 PWSTR Buf = NULL, SourceList = NULL, Source = NULL; in LoadEventSources() local
105 Buf = HeapAlloc(GetProcessHeap(), 0, dwMaxSubKeyLength * sizeof(WCHAR)); in LoadEventSources()
106 if (!Buf) in LoadEventSources()
140 Buf, in LoadEventSources()
144 if (_wcsicmp(pLogFile->LogName, Buf) != 0) in LoadEventSources()
146 DPRINT("Event Source: %S\n", Buf); in LoadEventSources()
147 Success = AddNewEventSource(pLogFile, Buf); in LoadEventSources()
151 StringCchCopyExW(Source, cchRemaining, Buf, &Source, &cchRemaining, 0); in LoadEventSources()
193 HeapFree(GetProcessHeap(), 0, Buf); in LoadEventSources()
/reactos/drivers/setup/blue/
H A Dblue.c1066 if ( Buf->dwCoord.X < 0 || Buf->dwCoord.X >= DeviceExtension->Columns || in ScrIoControl()
1067 Buf->dwCoord.Y < 0 || Buf->dwCoord.Y >= DeviceExtension->Rows || in ScrIoControl()
1079 offset = (Buf->dwCoord.X + Buf->dwCoord.Y * DeviceExtension->Columns) * 2 + 1; in ScrIoControl()
1130 if ( Buf->dwCoord.X < 0 || Buf->dwCoord.X >= DeviceExtension->Columns || in ScrIoControl()
1131 Buf->dwCoord.Y < 0 || Buf->dwCoord.Y >= DeviceExtension->Rows ) in ScrIoControl()
1266 if ( Buf->dwCoord.X < 0 || Buf->dwCoord.X >= DeviceExtension->Columns || in ScrIoControl()
1267 Buf->dwCoord.Y < 0 || Buf->dwCoord.Y >= DeviceExtension->Rows || in ScrIoControl()
1279 offset = (Buf->dwCoord.X + Buf->dwCoord.Y * DeviceExtension->Columns) * 2; in ScrIoControl()
1330 if ( Buf->dwCoord.X < 0 || Buf->dwCoord.X >= DeviceExtension->Columns || in ScrIoControl()
1331 Buf->dwCoord.Y < 0 || Buf->dwCoord.Y >= DeviceExtension->Rows ) in ScrIoControl()
[all …]
/reactos/drivers/filesystems/udfs/
H A Dpnp.cpp246 PPREVENT_MEDIA_REMOVAL_USER_IN Buf = NULL; in UDFPnpQueryRemove() local
271 UDFDoDismountSequence(Vcb, Buf, FALSE); in UDFPnpQueryRemove()
390 PPREVENT_MEDIA_REMOVAL_USER_IN Buf = NULL; in UDFPnpRemove() local
467 UDFDoDismountSequence(Vcb, Buf, FALSE); in UDFPnpRemove()
487 if(Buf) in UDFPnpRemove()
488 MyFreePool__(Buf); in UDFPnpRemove()
542 PPREVENT_MEDIA_REMOVAL_USER_IN Buf = NULL; in UDFPnpSurpriseRemove() local
591 if(!Buf) { in UDFPnpSurpriseRemove()
597 UDFDoDismountSequence(Vcb, Buf, FALSE); in UDFPnpSurpriseRemove()
621 if(Buf) in UDFPnpSurpriseRemove()
[all …]
H A Dshutdown.cpp124 PPREVENT_MEDIA_REMOVAL_USER_IN Buf = NULL; in UDFCommonShutdown() local
134Buf = (PPREVENT_MEDIA_REMOVAL_USER_IN)MyAllocatePool__(NonPagedPool, sizeof(PREVENT_MEDIA_REMOVAL_… in UDFCommonShutdown()
135 if(!Buf) in UDFCommonShutdown()
203 UDFDoDismountSequence(Vcb, Buf, FALSE); in UDFCommonShutdown()
225 if(Buf) MyFreePool__(Buf); in UDFCommonShutdown()
H A Ddevcntrl.cpp169 PPREVENT_MEDIA_REMOVAL_USER_IN Buf = NULL; // FSD buffer in UDFCommonDeviceControl() local
424 if(!Buf) in UDFCommonDeviceControl()
431 UDFDoDismountSequence(Vcb, Buf, FALSE); in UDFCommonDeviceControl()
432 MyFreePool__(Buf); in UDFCommonDeviceControl()
433 Buf = NULL; in UDFCommonDeviceControl()
929 if(!Buf) in UDFCommonDeviceControl()
944 UDFDoDismountSequence(Vcb, Buf, FALSE); in UDFCommonDeviceControl()
945 MyFreePool__(Buf); in UDFCommonDeviceControl()
946 Buf = NULL; in UDFCommonDeviceControl()
1023 if(Buf) { in UDFCommonDeviceControl()
[all …]
/reactos/dll/win32/ws2_32/src/
H A Ddcatitem.c72 LPBYTE Buf; in WsTcEntryInitializeFromRegistry() local
93 if (!(Buf = HeapAlloc(WsSockHeap, HEAP_ZERO_MEMORY, RegSize))) in WsTcEntryInitializeFromRegistry()
101 Buf, in WsTcEntryInitializeFromRegistry()
105 memcpy(CatalogEntry->DllPath, Buf, sizeof(CatalogEntry->DllPath)); in WsTcEntryInitializeFromRegistry()
109 memcpy(&CatalogEntry->ProtocolInfo, &Buf[index], sizeof(WSAPROTOCOL_INFOW)); in WsTcEntryInitializeFromRegistry()
112 HeapFree(WsSockHeap, 0, Buf); in WsTcEntryInitializeFromRegistry()
/reactos/drivers/filesystems/udfs/udf_info/
H A Dmount.cpp301 int8* Buf in UDFUpdatePartDesc() argument
1024 if(!Buf) in UDFFindAnchor()
1266 if(!Buf) in UDFLoadLogicalVolInt()
2025 int8* Buf in UDFLoadPartDesc() argument
2128 int8* Buf in UDFVerifyPartDesc() argument
2244 IN int8* Buf in UDFReadVDS() argument
2331 int8* Buf in UDFLoadImpUseVolDesc() argument
2348 int8* Buf in UDFLoadUnallocatedSpaceDesc() argument
2450 if(Buf) MyFreePool__(Buf); in UDFProcessSequence()
2528 if(Buf) MyFreePool__(Buf); in UDFVerifySequence()
[all …]
H A Ddirtree.cpp754 int8* Buf; in UDFPackDirectory__() local
786 DbgFreePool(Buf); in UDFPackDirectory__()
805 DbgFreePool(Buf); in UDFPackDirectory__()
833 DbgFreePool(Buf); in UDFPackDirectory__()
859 DbgFreePool(Buf); in UDFPackDirectory__()
876 DbgFreePool(Buf); in UDFPackDirectory__()
902 int8* Buf; in UDFReTagDirectory() local
930 DbgFreePool(Buf); in UDFReTagDirectory()
943 DbgFreePool(Buf); in UDFReTagDirectory()
960 DbgFreePool(Buf); in UDFReTagDirectory()
[all …]
/reactos/modules/rostests/win32/user32/drawcaption/
H A Ddrawcap.c45 WCHAR Buf[512]; in CapTest() local
47 lstrcpy(Buf, AddonStr); in CapTest()
48 if(lstrlen(Buf))lstrcat(Buf, L" | "); in CapTest()
49 lstrcat(Buf, Text); in CapTest()
51 DrawText( hDc, Buf, lstrlen(Buf), pR, DT_LEFT ); in CapTest()
/reactos/dll/win32/powrprof/
H A Dpowrprof.c101 WCHAR Buf[MAX_PATH]; in DeletePwrScheme() local
116 Err = RegDeleteKey(HKEY_CURRENT_USER, (LPCTSTR)Buf); in DeletePwrScheme()
648 WCHAR Buf[16]; in SetActivePwrScheme() local
656 swprintf(Buf, L"%i", uiID); in SetActivePwrScheme()
658 …if (RegSetValueExW(hKey, szCurrentPowerPolicies, 0, REG_SZ, (PBYTE)Buf, strlenW(Buf)*sizeof(WCHAR)… in SetActivePwrScheme()
735 WCHAR Buf[MAX_PATH]; in WriteProcessorPwrScheme() local
751 WCHAR Buf[16]; in SetLastID() local
760 swprintf(Buf, L"%i", g_LastID); in SetLastID()
761 RegSetValueExW(hKey, szLastID, 0, REG_SZ, (PBYTE)Buf, strlenW(Buf)*sizeof(WCHAR)); in SetLastID()
771 WCHAR Buf[MAX_PATH]; in WritePwrScheme() local
[all …]
/reactos/modules/rostests/kmtests/ntos_fsrtl/
H A DFsRtlTunnel.c74 PVOID Buf; in TestFsRtlAddToTunnelCache() local
76 Buf = ExAllocatePool(PagedPool, BufSize); in TestFsRtlAddToTunnelCache()
77 ok(Buf != NULL, "Buff in TestFsRtlAddToTunnelCache is NULL after allocated memory\n"); in TestFsRtlAddToTunnelCache()
87 memset((void*)Buf, 0, BufSize); in TestFsRtlAddToTunnelCache()
90 FsRtlAddToTunnelCache(T, DirectoryKey, s_name, l_name, KeyByShortName, BufSize, Buf); in TestFsRtlAddToTunnelCache()
92 eq = RtlCompareMemory((const VOID*)Buf, (const VOID*)Bufb, BufSize); in TestFsRtlAddToTunnelCache()
106 ExFreePool(Buf); in TestFsRtlAddToTunnelCache()
113 PVOID Buf = ExAllocatePool(PagedPool, BufSize*2); in TestFsRtlFindInTunnelCache() local
114 ok(Buf != NULL, "Buff in FsRtlFindInTunnelCache is NULL after allocated memory\n"); in TestFsRtlFindInTunnelCache()
116 return FsRtlFindInTunnelCache(T, DirectoryKey, name, s_name, l_name, &BufsizeTemp, Buf); in TestFsRtlFindInTunnelCache()
/reactos/dll/win32/shell32/
H A DCQueryAssociations.cpp25 EXTERN_C HRESULT SHELL32_AssocGetFSDirectoryDescription(PWSTR Buf, UINT cchBuf) in SHELL32_AssocGetFSDirectoryDescription() argument
30 return StringCchCopyW(Buf, cchBuf, cache); in SHELL32_AssocGetFSDirectoryDescription()
33 static HRESULT GetExtensionDefaultDescription(PCWSTR DotExt, PWSTR Buf, UINT cchBuf) in GetExtensionDefaultDescription() argument
38 return StringCchPrintfW(Buf, cchBuf, fmt, DotExt); in GetExtensionDefaultDescription()
46 if (SUCCEEDED(hr = GetExtensionDefaultDescription(L"", Buf, cchBuf))) in SHELL32_AssocGetExtensionDescription()
47 StrTrimW(Buf, L" -"); // Remove the empty %s so we are left with "File" in SHELL32_AssocGetExtensionDescription()
56 DWORD cb = cchBuf * sizeof(*Buf); in SHELL32_AssocGetExtensionDescription()
57 err = RegGetValueW(hKey, NULL, NULL, RRF_RT_REG_SZ, NULL, Buf, &cb); in SHELL32_AssocGetExtensionDescription()
67 return GetExtensionDefaultDescription(DotExt, Buf, cchBuf); in SHELL32_AssocGetExtensionDescription()
70 EXTERN_C HRESULT SHELL32_AssocGetFileDescription(PCWSTR Name, PWSTR Buf, UINT cchBuf) in SHELL32_AssocGetFileDescription() argument
[all …]
/reactos/modules/rostests/win32/user32/kbdlayout/
H A Dkbdlayout.c190 WCHAR Buf[255]; in GetDelayMilliseconds() local
193 GetWindowText(GetDlgItem(hDlg, IDC_DELAY), Buf, sizeof(Buf)); in GetDelayMilliseconds()
195 swscanf(Buf, L"%d", &ret); in GetDelayMilliseconds()
231 WCHAR Buf[255]; in MainDialogProc() local
247 swprintf(Buf, L"Current thread id: %d", GetCurrentThreadId()); in MainDialogProc()
248 SetWindowText(GetDlgItem(hDlg, IDC_CURTHREAD), Buf); in MainDialogProc()
/reactos/drivers/network/afd/afd/
H A Dlock.c205 PAFD_WSABUF LockBuffers( PAFD_WSABUF Buf, UINT Count, in LockBuffers() argument
225 RtlCopyMemory( NewBuf, Buf, sizeof(AFD_WSABUF) * Count ); in LockBuffers()
238 Buf, AddressLen)); in LockBuffers()
289 VOID UnlockBuffers( PAFD_WSABUF Buf, UINT Count, BOOL Address ) { in UnlockBuffers() argument
291 PAFD_MAPBUF Map = (PAFD_MAPBUF)(Buf + Count + Lock); in UnlockBuffers()
294 if( !Buf ) return; in UnlockBuffers()
304 ExFreePoolWithTag(Buf, TAG_AFD_WSA_BUFFER); in UnlockBuffers()
305 Buf = NULL; in UnlockBuffers()
/reactos/modules/rostests/kmtests/novp_fsrtl/
H A DFsRtlRemoveDotsFromPath.c28 WCHAR Buf[255]; in START_TEST() local
32 TestString.Buffer = Buf; in START_TEST()
33 TestString.MaximumLength = sizeof(Buf); in START_TEST()
/reactos/boot/freeldr/freeldr/include/
H A Dmachine.h108 #define MachVideoCopyOffScreenBufferToVRAM(Buf) \ argument
109 MachVtbl.VideoCopyOffScreenBufferToVRAM(Buf)
126 #define MachDiskReadLogicalSectors(Drive, Start, Count, Buf) \ argument
127 MachVtbl.DiskReadLogicalSectors((Drive), (Start), (Count), (Buf))
/reactos/win32ss/gdi/eng/
H A Dsort.c19 EngSort(IN OUT PBYTE Buf, IN ULONG ElemSize, IN ULONG ElemCount, IN SORTCOMP CompFunc) in EngSort() argument
21 qsort(Buf, ElemCount, ElemSize, CompFunc); in EngSort()
/reactos/modules/rostests/win32/advapi32/eventlog/
H A DEvtLogTest.c110 LPWSTR Buf = NULL; in RemoveEventLog() local
137 Buf = (LPWSTR)HeapAlloc(GetProcessHeap(), 0, MaxKeyNameLen * sizeof(WCHAR)); in RemoveEventLog()
138 if (!Buf) in RemoveEventLog()
144 Buf, in RemoveEventLog()
148 RegDeleteKeyW(hEventKey, Buf); in RemoveEventLog()
154 HeapFree(GetProcessHeap(), 0, Buf); in RemoveEventLog()
/reactos/base/applications/mscutils/servman/
H A Dcreate.c170 WCHAR Buf[1000]; in CreateHelpDialogProc() local
193 Buf, in CreateHelpDialogProc()
194 sizeof(Buf) / sizeof(WCHAR)); in CreateHelpDialogProc()
196 SetWindowTextW(hHelp, Buf); in CreateHelpDialogProc()
/reactos/drivers/filesystems/ext2/src/
H A Dblock.c567 PUCHAR Buf; in Ext2ReadDisk() local
575 Buf = Ext2AllocatePool(PagedPool, Length, EXT2_DATA_MAGIC); in Ext2ReadDisk()
576 if (!Buf) { in Ext2ReadDisk()
582 INC_MEM_COUNT(PS_DISK_BUFFER, Buf, Length); in Ext2ReadDisk()
587 Buf, in Ext2ReadDisk()
595 RtlCopyMemory(Buffer, &Buf[Offset - Lba], Size); in Ext2ReadDisk()
599 if (Buf) { in Ext2ReadDisk()
600 Ext2FreePool(Buf, EXT2_DATA_MAGIC); in Ext2ReadDisk()
601 DEC_MEM_COUNT(PS_DISK_BUFFER, Buf, Length); in Ext2ReadDisk()

123