ReactOS  0.4.12-dev-945-g5a2911d
shellext.h File Reference
#include <windows.h>
#include <winternl.h>
#include <string>
#include <vector>
#include <stdint.h>
#include "../btrfs.h"
#include "../btrfsioctl.h"
Include dependency graph for shellext.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _REPARSE_DATA_BUFFER
 
struct  _DUPLICATE_EXTENTS_DATA
 
struct  _FSCTL_GET_INTEGRITY_INFORMATION_BUFFER
 
struct  _FSCTL_SET_INTEGRITY_INFORMATION_BUFFER
 
class  win_handle
 
class  fff_handle
 
class  nt_handle
 
class  string_error
 
class  last_error
 
class  ntstatus_error
 

Macros

#define ISOLATION_AWARE_ENABLED   1
 
#define STRSAFE_NO_DEPRECATE
 
#define WINVER   0x0A00
 
#define _WIN32_WINNT   0x0A00
 
#define STATUS_SUCCESS   (NTSTATUS)0x00000000
 
#define STATUS_BUFFER_OVERFLOW   (NTSTATUS)0x80000005
 
#define STATUS_END_OF_FILE   (NTSTATUS)0xc0000011
 
#define STATUS_MORE_PROCESSING_REQUIRED   (NTSTATUS)0xc0000016
 
#define STATUS_BUFFER_TOO_SMALL   (NTSTATUS)0xc0000023
 
#define STATUS_DEVICE_NOT_READY   (NTSTATUS)0xc00000a3
 
#define STATUS_CANNOT_DELETE   (NTSTATUS)0xc0000121
 
#define STATUS_NOT_FOUND   (NTSTATUS)0xc0000225
 
#define BLOCK_FLAG_DATA   0x001
 
#define BLOCK_FLAG_SYSTEM   0x002
 
#define BLOCK_FLAG_METADATA   0x004
 
#define BLOCK_FLAG_RAID0   0x008
 
#define BLOCK_FLAG_RAID1   0x010
 
#define BLOCK_FLAG_DUPLICATE   0x020
 
#define BLOCK_FLAG_RAID10   0x040
 
#define BLOCK_FLAG_RAID5   0x080
 
#define BLOCK_FLAG_RAID6   0x100
 
#define BTRFS_TYPE_FILE   1
 
#define BTRFS_TYPE_DIRECTORY   2
 
#define BTRFS_TYPE_CHARDEV   3
 
#define BTRFS_TYPE_BLOCKDEV   4
 
#define BTRFS_TYPE_FIFO   5
 
#define BTRFS_TYPE_SOCKET   6
 
#define BTRFS_TYPE_SYMLINK   7
 
#define funcname   __func__
 
#define SYMLINK_FLAG_RELATIVE   1
 
#define FSCTL_DUPLICATE_EXTENTS_TO_FILE   CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 209, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 
#define FSCTL_GET_INTEGRITY_INFORMATION   CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 159, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define FSCTL_SET_INTEGRITY_INFORMATION   CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 160, METHOD_BUFFERED, FILE_READ_DATA | FILE_WRITE_DATA)
 

Typedefs

typedef struct _REPARSE_DATA_BUFFER REPARSE_DATA_BUFFER
 
typedef struct _REPARSE_DATA_BUFFERPREPARSE_DATA_BUFFER
 
typedef struct _DUPLICATE_EXTENTS_DATA DUPLICATE_EXTENTS_DATA
 
typedef struct _DUPLICATE_EXTENTS_DATAPDUPLICATE_EXTENTS_DATA
 
typedef struct _FSCTL_GET_INTEGRITY_INFORMATION_BUFFER FSCTL_GET_INTEGRITY_INFORMATION_BUFFER
 
typedef struct _FSCTL_GET_INTEGRITY_INFORMATION_BUFFERPFSCTL_GET_INTEGRITY_INFORMATION_BUFFER
 
typedef struct _FSCTL_SET_INTEGRITY_INFORMATION_BUFFER FSCTL_SET_INTEGRITY_INFORMATION_BUFFER
 
typedef struct _FSCTL_SET_INTEGRITY_INFORMATION_BUFFERPFSCTL_SET_INTEGRITY_INFORMATION_BUFFER
 

Functions

NTSYSCALLAPI NTSTATUS NTAPI NtFsControlFile (HANDLE FileHandle, HANDLE Event, PIO_APC_ROUTINE ApcRoutine, PVOID ApcContext, PIO_STATUS_BLOCK IoStatusBlock, ULONG FsControlCode, PVOID InputBuffer, ULONG InputBufferLength, PVOID OutputBuffer, ULONG OutputBufferLength)
 
NTSTATUS NTAPI NtReadFile (HANDLE FileHandle, HANDLE Event, PIO_APC_ROUTINE ApcRoutine, PVOID ApcContext, PIO_STATUS_BLOCK IoStatusBlock, PVOID Buffer, ULONG Length, PLARGE_INTEGER ByteOffset, PULONG Key)
 
NTSTATUS WINAPI RtlUTF8ToUnicodeN (PWSTR UnicodeStringDestination, ULONG UnicodeStringMaxWCharCount, PULONG UnicodeStringActualWCharCount, PCCH UTF8StringSource, ULONG UTF8StringByteCount)
 
NTSTATUS NTAPI RtlUnicodeToUTF8N (PCHAR UTF8StringDestination, ULONG UTF8StringMaxByteCount, PULONG UTF8StringActualByteCount, PCWCH UnicodeStringSource, ULONG UnicodeStringByteCount)
 
NTSTATUS WINAPI NtSetEaFile (HANDLE FileHandle, PIO_STATUS_BLOCK IoStatusBlock, PVOID Buffer, ULONG Length)
 
NTSTATUS WINAPI NtSetSecurityObject (HANDLE Handle, SECURITY_INFORMATION SecurityInformation, PSECURITY_DESCRIPTOR SecurityDescriptor)
 
NTSTATUS NTAPI NtQueryInformationFile (HANDLE hFile, PIO_STATUS_BLOCK io, PVOID ptr, ULONG len, FILE_INFORMATION_CLASS FileInformationClass)
 
void format_size (uint64_t size, wstring &s, bool show_bytes)
 
void set_dpi_aware ()
 
wstring format_message (ULONG last_error)
 
wstring format_ntstatus (NTSTATUS Status)
 
bool load_string (HMODULE module, UINT id, wstring &s)
 
void wstring_sprintf (wstring &s, wstring fmt,...)
 
void command_line_to_args (LPWSTR cmdline, vector< wstring > args)
 
void utf8_to_utf16 (const string &utf8, wstring &utf16)
 
void utf16_to_utf8 (const wstring &utf16, string &utf8)
 
void error_message (HWND hwnd, const char *msg)
 

Variables

HMODULE module
 

Macro Definition Documentation

◆ _WIN32_WINNT

#define _WIN32_WINNT   0x0A00

Definition at line 32 of file shellext.h.

◆ BLOCK_FLAG_DATA

#define BLOCK_FLAG_DATA   0x001

Definition at line 70 of file shellext.h.

◆ BLOCK_FLAG_DUPLICATE

#define BLOCK_FLAG_DUPLICATE   0x020

Definition at line 75 of file shellext.h.

◆ BLOCK_FLAG_METADATA

#define BLOCK_FLAG_METADATA   0x004

Definition at line 72 of file shellext.h.

◆ BLOCK_FLAG_RAID0

#define BLOCK_FLAG_RAID0   0x008

Definition at line 73 of file shellext.h.

◆ BLOCK_FLAG_RAID1

#define BLOCK_FLAG_RAID1   0x010

Definition at line 74 of file shellext.h.

◆ BLOCK_FLAG_RAID10

#define BLOCK_FLAG_RAID10   0x040

Definition at line 76 of file shellext.h.

◆ BLOCK_FLAG_RAID5

#define BLOCK_FLAG_RAID5   0x080

Definition at line 77 of file shellext.h.

◆ BLOCK_FLAG_RAID6

#define BLOCK_FLAG_RAID6   0x100

Definition at line 78 of file shellext.h.

◆ BLOCK_FLAG_SYSTEM

#define BLOCK_FLAG_SYSTEM   0x002

Definition at line 71 of file shellext.h.

◆ BTRFS_TYPE_BLOCKDEV

#define BTRFS_TYPE_BLOCKDEV   4

Definition at line 83 of file shellext.h.

◆ BTRFS_TYPE_CHARDEV

#define BTRFS_TYPE_CHARDEV   3

Definition at line 82 of file shellext.h.

◆ BTRFS_TYPE_DIRECTORY

#define BTRFS_TYPE_DIRECTORY   2

Definition at line 81 of file shellext.h.

◆ BTRFS_TYPE_FIFO

#define BTRFS_TYPE_FIFO   5

Definition at line 84 of file shellext.h.

◆ BTRFS_TYPE_FILE

#define BTRFS_TYPE_FILE   1

Definition at line 80 of file shellext.h.

◆ BTRFS_TYPE_SOCKET

#define BTRFS_TYPE_SOCKET   6

Definition at line 85 of file shellext.h.

◆ BTRFS_TYPE_SYMLINK

#define BTRFS_TYPE_SYMLINK   7

Definition at line 86 of file shellext.h.

◆ FSCTL_DUPLICATE_EXTENTS_TO_FILE

#define FSCTL_DUPLICATE_EXTENTS_TO_FILE   CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 209, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 181 of file shellext.h.

◆ FSCTL_GET_INTEGRITY_INFORMATION

#define FSCTL_GET_INTEGRITY_INFORMATION   CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 159, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 197 of file shellext.h.

◆ FSCTL_SET_INTEGRITY_INFORMATION

#define FSCTL_SET_INTEGRITY_INFORMATION   CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 160, METHOD_BUFFERED, FILE_READ_DATA | FILE_WRITE_DATA)

Definition at line 198 of file shellext.h.

◆ funcname

#define funcname   __func__

Definition at line 91 of file shellext.h.

◆ ISOLATION_AWARE_ENABLED

#define ISOLATION_AWARE_ENABLED   1

Definition at line 27 of file shellext.h.

◆ STATUS_BUFFER_OVERFLOW

#define STATUS_BUFFER_OVERFLOW   (NTSTATUS)0x80000005

Definition at line 61 of file shellext.h.

◆ STATUS_BUFFER_TOO_SMALL

#define STATUS_BUFFER_TOO_SMALL   (NTSTATUS)0xc0000023

Definition at line 64 of file shellext.h.

◆ STATUS_CANNOT_DELETE

#define STATUS_CANNOT_DELETE   (NTSTATUS)0xc0000121

Definition at line 66 of file shellext.h.

◆ STATUS_DEVICE_NOT_READY

#define STATUS_DEVICE_NOT_READY   (NTSTATUS)0xc00000a3

Definition at line 65 of file shellext.h.

◆ STATUS_END_OF_FILE

#define STATUS_END_OF_FILE   (NTSTATUS)0xc0000011

Definition at line 62 of file shellext.h.

◆ STATUS_MORE_PROCESSING_REQUIRED

#define STATUS_MORE_PROCESSING_REQUIRED   (NTSTATUS)0xc0000016

Definition at line 63 of file shellext.h.

◆ STATUS_NOT_FOUND

#define STATUS_NOT_FOUND   (NTSTATUS)0xc0000225

Definition at line 67 of file shellext.h.

◆ STATUS_SUCCESS

#define STATUS_SUCCESS   (NTSTATUS)0x00000000

Definition at line 60 of file shellext.h.

◆ STRSAFE_NO_DEPRECATE

#define STRSAFE_NO_DEPRECATE

Definition at line 28 of file shellext.h.

◆ SYMLINK_FLAG_RELATIVE

#define SYMLINK_FLAG_RELATIVE   1

Definition at line 169 of file shellext.h.

◆ WINVER

#define WINVER   0x0A00

Definition at line 31 of file shellext.h.

Typedef Documentation

◆ DUPLICATE_EXTENTS_DATA

◆ FSCTL_GET_INTEGRITY_INFORMATION_BUFFER

◆ FSCTL_SET_INTEGRITY_INFORMATION_BUFFER

◆ PDUPLICATE_EXTENTS_DATA

◆ PFSCTL_GET_INTEGRITY_INFORMATION_BUFFER

◆ PFSCTL_SET_INTEGRITY_INFORMATION_BUFFER

◆ PREPARSE_DATA_BUFFER

◆ REPARSE_DATA_BUFFER

Function Documentation

◆ command_line_to_args()

void command_line_to_args ( LPWSTR  cmdline,
vector< wstring >  args 
)

Definition at line 610 of file main.cpp.

610  {
611  LPWSTR* l;
612  int num_args;
613 
614  args.clear();
615 
616  l = CommandLineToArgvW(cmdline, &num_args);
617 
618  if (!l)
619  return;
620 
621  try {
622  args.reserve(num_args);
623 
624  for (unsigned int i = 0; i < (unsigned int)num_args; i++) {
625  args.push_back(l[i]);
626  }
627  } catch (...) {
628  LocalFree(l);
629  throw;
630  }
631 
632  LocalFree(l);
633 }
TCHAR * cmdline
Definition: stretchblt.cpp:32
Definition: match.c:390
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
LPWSTR *WINAPI CommandLineToArgvW(LPCWSTR lpCmdline, int *numargs)
Definition: shell32_main.c:76
r l[0]
Definition: byte_order.h:167
HLOCAL NTAPI LocalFree(HLOCAL hMem)
Definition: heapmem.c:1577
WCHAR * LPWSTR
Definition: xmlstorage.h:184
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31

Referenced by CreateSnapshotW(), CreateSubvolW(), RecvSubvolW(), ReflinkCopyW(), SendSubvolW(), StartScrubW(), and StopScrubW().

◆ error_message()

void error_message ( HWND  hwnd,
const char msg 
)

Definition at line 738 of file main.cpp.

738  {
739  wstring title, wmsg;
740 
742 
743  utf8_to_utf16(msg, wmsg);
744 
745  MessageBoxW(hwnd, wmsg.c_str(), title.c_str(), MB_ICONERROR);
746 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
int WINAPI MessageBoxW(_In_opt_ HWND, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR, _In_ UINT)
#define MB_ICONERROR
Definition: winuser.h:781
bool load_string(HMODULE module, UINT id, wstring &s)
Definition: main.cpp:206
#define msg(x)
Definition: auth_time.c:54
#define IDS_ERROR
Definition: resource.h:18
static char title[]
Definition: ps.c:92
void utf8_to_utf16(const string &utf8, wstring &utf16)
Definition: main.cpp:667

Referenced by AddDeviceW(), BtrfsVolPropSheet::AddPages(), BtrfsPropSheet::AddPages(), BtrfsBalance::BalanceDlgProc(), BtrfsBalance::BalanceOptsDlgProc(), BtrfsDeviceAdd::DeviceAddDlgProc(), BtrfsVolPropSheet::DeviceDlgProc(), BtrfsDeviceResize::DeviceResizeDlgProc(), DllRegisterServer(), DllUnregisterServer(), BtrfsPropSheet::Initialize(), BtrfsContextMenu::InvokeCommand(), PauseBalanceW(), PropSheetDlgProc(), RecvSubvolGUIW(), RemoveDeviceW(), ResetStatsW(), ResizeDeviceW(), BtrfsScrub::ScrubDlgProc(), BtrfsSend::SendDlgProc(), SendSubvolGUIW(), ShowPropSheetW(), ShowScrubW(), SizeDetailsDlgProc(), StartBalanceW(), BtrfsVolPropSheet::StatsDlgProc(), StopBalanceW(), and BtrfsVolPropSheet::UsageDlgProc().

◆ format_message()

wstring format_message ( ULONG  last_error)

Definition at line 164 of file main.cpp.

164  {
165  WCHAR* buf;
166  wstring s;
167 
169  last_error, 0, (WCHAR*)&buf, 0, nullptr) == 0) {
170  return L"(error retrieving message)";
171  }
172 
173  s = buf;
174 
175  LocalFree(buf);
176 
177  // remove trailing newline
178  while (s.length() > 0 && (s.substr(s.length() - 1, 1) == L"\r" || s.substr(s.length() - 1, 1) == L"\n"))
179  s = s.substr(0, s.length() - 1);
180 
181  return s;
182 }
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
DWORD WINAPI FormatMessageW(DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, LPWSTR lpBuffer, DWORD nSize, __ms_va_list *args)
Definition: format_msg.c:583
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
Definition: winbase.h:400
#define FORMAT_MESSAGE_FROM_SYSTEM
Definition: winbase.h:404
__wchar_t WCHAR
Definition: xmlstorage.h:180
static const WCHAR L[]
Definition: oid.c:1250
GLdouble s
Definition: gl.h:2039
#define FORMAT_MESSAGE_IGNORE_INSERTS
Definition: winbase.h:401
HLOCAL NTAPI LocalFree(HLOCAL hMem)
Definition: heapmem.c:1577

Referenced by format_ntstatus().

◆ format_ntstatus()

wstring format_ntstatus ( NTSTATUS  Status)

Definition at line 184 of file main.cpp.

184  {
186  wstring s;
187  HMODULE ntdll = LoadLibraryW(L"ntdll.dll");
188 
189  if (!ntdll)
190  return L"(error loading ntdll.dll)";
191 
192  RtlNtStatusToDosError = (_RtlNtStatusToDosError)GetProcAddress(ntdll, "RtlNtStatusToDosError");
193 
194  if (!RtlNtStatusToDosError) {
195  FreeLibrary(ntdll);
196  return L"(error loading RtlNtStatusToDosError)";
197  }
198 
200 
201  FreeLibrary(ntdll);
202 
203  return s;
204 }
ULONG(WINAPI * _RtlNtStatusToDosError)(NTSTATUS Status)
Definition: main.cpp:44
#define LoadLibraryW(x)
Definition: compat.h:404
#define FreeLibrary(x)
Definition: compat.h:405
static const WCHAR L[]
Definition: oid.c:1250
GLdouble s
Definition: gl.h:2039
Status
Definition: gdiplustypes.h:24
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
wstring format_message(ULONG last_error)
Definition: main.cpp:164
#define GetProcAddress(x, y)
Definition: compat.h:410

Referenced by BtrfsSend::AddClone(), BtrfsSend::BrowseParent(), BtrfsRecv::cmd_chmod(), BtrfsRecv::cmd_chown(), BtrfsRecv::cmd_clone(), BtrfsRecv::cmd_mkfile(), BtrfsRecv::cmd_removexattr(), BtrfsRecv::cmd_setxattr(), BtrfsRecv::cmd_snapshot(), BtrfsRecv::cmd_subvol(), BtrfsRecv::do_recv(), BtrfsBalance::RefreshBalanceDlg(), BtrfsSend::Thread(), utf16_to_utf8(), and utf8_to_utf16().

◆ format_size()

void format_size ( uint64_t  size,
wstring &  s,
bool  show_bytes 
)

Definition at line 65 of file main.cpp.

65  {
66  wstring t, bytes, kb, nb;
67  WCHAR nb2[255];
68  ULONG sr;
69  float f;
71  WCHAR dec[2], thou[4], grouping[64], *c;
72 #ifdef __REACTOS__
73  WCHAR buffer[64];
74 #endif
75 
76 #ifndef __REACTOS__
77  nb = to_wstring(size);
78 #else
79  swprintf(buffer, L"%I64d", size);
80  nb = wstring(buffer);
81 #endif
82 
83  GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_STHOUSAND, thou, sizeof(thou) / sizeof(WCHAR));
84 
85  dec[0] = '.'; dec[1] = 0; // not used, but silences gcc warning
86 
87  fmt.NumDigits = 0;
88  fmt.LeadingZero = 1;
89  fmt.lpDecimalSep = dec;
90  fmt.lpThousandSep = thou;
91  fmt.NegativeOrder = 0;
92 
93  // Grouping code copied from dlls/shlwapi/string.c in Wine - thank you
94 
95  fmt.Grouping = 0;
96  GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_SGROUPING, grouping, sizeof(grouping) / sizeof(WCHAR));
97 
98  c = grouping;
99  while (*c) {
100  if (*c >= '0' && *c < '9') {
101  fmt.Grouping *= 10;
102  fmt.Grouping += *c - '0';
103  }
104 
105  c++;
106  }
107 
108  if (fmt.Grouping % 10 == 0)
109  fmt.Grouping /= 10;
110  else
111  fmt.Grouping *= 10;
112 
113  GetNumberFormatW(LOCALE_USER_DEFAULT, 0, nb.c_str(), &fmt, nb2, sizeof(nb2) / sizeof(WCHAR));
114 
115  if (size < 1024) {
117  throw last_error(GetLastError());
118 
119  wstring_sprintf(s, t, nb2);
120  return;
121  }
122 
123  if (show_bytes) {
125  throw last_error(GetLastError());
126 
127  wstring_sprintf(bytes, t, nb2);
128  }
129 
130  if (size >= 1152921504606846976) {
131  sr = IDS_SIZE_EB;
132  f = (float)size / 1152921504606846976.0f;
133  } else if (size >= 1125899906842624) {
134  sr = IDS_SIZE_PB;
135  f = (float)size / 1125899906842624.0f;
136  } else if (size >= 1099511627776) {
137  sr = IDS_SIZE_TB;
138  f = (float)size / 1099511627776.0f;
139  } else if (size >= 1073741824) {
140  sr = IDS_SIZE_GB;
141  f = (float)size / 1073741824.0f;
142  } else if (size >= 1048576) {
143  sr = IDS_SIZE_MB;
144  f = (float)size / 1048576.0f;
145  } else {
146  sr = IDS_SIZE_KB;
147  f = (float)size / 1024.0f;
148  }
149 
150  if (!load_string(module, sr, t))
151  throw last_error(GetLastError());
152 
153  if (show_bytes) {
154  wstring_sprintf(kb, t, f);
155 
157  throw last_error(GetLastError());
158 
159  wstring_sprintf(s, t, kb.c_str(), bytes.c_str());
160  } else
161  wstring_sprintf(s, t, f);
162 }
#define IDS_SIZE_KB
Definition: resource.h:32
#define LOCALE_SGROUPING
Definition: winnls.h:44
#define IDS_SIZE_BYTES
Definition: resource.h:31
#define LOCALE_USER_DEFAULT
#define IDS_SIZE_PB
Definition: resource.h:36
const char * fmt
Definition: wsprintf.c:30
GLdouble GLdouble t
Definition: gl.h:2047
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1059
GLuint buffer
Definition: glext.h:5915
ios_base &_STLP_CALL dec(ios_base &__s)
Definition: _ios_base.h:321
INT WINAPI GetLocaleInfoW(LCID lcid, LCTYPE lctype, LPWSTR buffer, INT len)
Definition: lang.c:1095
#define LOCALE_STHOUSAND
Definition: winnls.h:43
static unsigned char bytes[4]
Definition: adnsresfilter.c:74
void wstring_sprintf(wstring &s, wstring fmt,...)
Definition: main.cpp:225
GLfloat f
Definition: glext.h:7540
GLsizeiptr size
Definition: glext.h:5919
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define swprintf(buf, format,...)
Definition: sprintf.c:56
const GLubyte * c
Definition: glext.h:8905
#define IDS_SIZE_TB
Definition: resource.h:35
static const WCHAR L[]
Definition: oid.c:1250
#define IDS_SIZE_BYTE
Definition: resource.h:30
GLdouble s
Definition: gl.h:2039
bool load_string(HMODULE module, UINT id, wstring &s)
Definition: main.cpp:206
#define IDS_SIZE_EB
Definition: resource.h:37
#define IDS_SIZE_LARGE
Definition: resource.h:42
#define f
Definition: ke_i.h:83
#define c
Definition: ke_i.h:80
unsigned int ULONG
Definition: retypes.h:1
INT WINAPI GetNumberFormatW(LCID lcid, DWORD dwFlags, LPCWSTR lpszValue, const NUMBERFMTW *lpFormat, LPWSTR lpNumberStr, int cchOut)
Definition: lcformat.c:1135
#define IDS_SIZE_GB
Definition: resource.h:34
Definition: dsound.c:943
#define IDS_SIZE_MB
Definition: resource.h:33

Referenced by BtrfsDeviceResize::DeviceResizeDlgProc(), BtrfsDeviceResize::do_resize(), BtrfsVolPropSheet::FormatUsage(), midi_IDirectMusicPort_GetFormat(), BtrfsDeviceAdd::populate_device_tree(), BtrfsVolPropSheet::RefreshDevList(), BtrfsPropSheet::set_size_on_disk(), BtrfsPropSheet::update_size_details_dialog(), and BtrfsScrub::UpdateTextBox().

◆ load_string()

bool load_string ( HMODULE  module,
UINT  id,
wstring &  s 
)

Definition at line 206 of file main.cpp.

206  {
207  int len;
208  LPWSTR retstr = nullptr;
209 
210  len = LoadStringW(module, id, (LPWSTR)&retstr, 0);
211 
212  if (len == 0)
213  return false;
214 
215  s = wstring(retstr, len);
216 
217  return true;
218 }
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
GLenum GLsizei len
Definition: glext.h:6722
GLdouble s
Definition: gl.h:2039
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by error_message(), format_size(), and string_error::string_error().

◆ NtFsControlFile()

NTSYSCALLAPI NTSTATUS NTAPI NtFsControlFile ( HANDLE  FileHandle,
HANDLE  Event,
PIO_APC_ROUTINE  ApcRoutine,
PVOID  ApcContext,
PIO_STATUS_BLOCK  IoStatusBlock,
ULONG  FsControlCode,
PVOID  InputBuffer,
ULONG  InputBufferLength,
PVOID  OutputBuffer,
ULONG  OutputBufferLength 
)

Referenced by _test_peek_pipe(), BtrfsSend::AddClone(), BtrfsDeviceAdd::AddDevice(), BtrfsPropSheet::apply_changes_file(), BtrfsSend::BrowseParent(), BtrfsPropSheet::check_file(), BtrfsRecv::cmd_chmod(), BtrfsRecv::cmd_chown(), BtrfsRecv::cmd_clone(), BtrfsRecv::cmd_mkfile(), BtrfsRecv::cmd_removexattr(), BtrfsRecv::cmd_setxattr(), BtrfsRecv::cmd_snapshot(), BtrfsRecv::cmd_subvol(), ConnectNamedPipe(), create_snapshot(), create_snapshot2(), create_subvol(), CreateDirectoryExW(), DeviceIoControl(), BtrfsDeviceResize::DeviceResizeDlgProc(), DisconnectNamedPipe(), DismountVolume(), BtrfsRecv::do_recv(), BtrfsDeviceResize::do_resize(), BtrfsPropSheet::do_search(), Ext2DisMountVolume(), Ext2LockVolume(), Ext2UnLockVolume(), FsRtlpRegisterProviderWithMUP(), ImpersonateNamedPipeClient(), init_func_ptrs(), BtrfsContextMenu::Initialize(), BtrfsVolPropSheet::Initialize(), InstallBtrfsBootCodeToDisk(), BtrfsContextMenu::InvokeCommand(), BtrfsIconOverlay::IsMemberOf(), PauseBalanceW(), BtrfsScrub::PauseScrub(), PeekNamedPipe(), BtrfsContextMenu::reflink_copy(), reflink_copy2(), BtrfsBalance::RefreshBalanceDlg(), BtrfsVolPropSheet::RefreshDevList(), BtrfsScrub::RefreshScrubDlg(), BtrfsVolPropSheet::RefreshUsage(), RemoveDeviceW(), BtrfsVolPropSheet::ResetStats(), ResetStatsW(), rpcrt4_protseq_np_get_wait_array(), send_subvol(), BtrfsPropSheet::set_cmdline(), BtrfsBalance::ShowBalance(), StartBalanceW(), BtrfsScrub::StartScrub(), StartScrubW(), StopBalanceW(), BtrfsScrub::StopScrub(), StopScrubW(), test_ioctl(), test_peek(), BtrfsSend::Thread(), TransactNamedPipe(), BtrfsScrub::UpdateTextBox(), BtrfsVolPropSheet::UsageDlgProc(), VfatFormat(), and WaitNamedPipeW().

◆ NtQueryInformationFile()

◆ NtReadFile()

◆ NtSetEaFile()

NTSTATUS WINAPI NtSetEaFile ( HANDLE  FileHandle,
PIO_STATUS_BLOCK  IoStatusBlock,
PVOID  Buffer,
ULONG  Length 
)

◆ NtSetSecurityObject()

◆ RtlUnicodeToUTF8N()

NTSTATUS NTAPI RtlUnicodeToUTF8N ( PCHAR  UTF8StringDestination,
ULONG  UTF8StringMaxByteCount,
PULONG  UTF8StringActualByteCount,
PCWCH  UnicodeStringSource,
ULONG  UnicodeStringByteCount 
)

◆ RtlUTF8ToUnicodeN()

NTSTATUS WINAPI RtlUTF8ToUnicodeN ( PWSTR  UnicodeStringDestination,
ULONG  UnicodeStringMaxWCharCount,
PULONG  UnicodeStringActualWCharCount,
PCCH  UTF8StringSource,
ULONG  UTF8StringByteCount 
)

Definition at line 21 of file reactos.cpp.

24 {
26  ULONG i, j;
27  ULONG written;
28  ULONG ch;
29  ULONG utf8_trail_bytes;
30  WCHAR utf16_ch[3];
31  ULONG utf16_ch_len;
32 
33  if (!utf8_src)
35  if (!uni_bytes_written)
37 
38  written = 0;
40 
41  for (i = 0; i < utf8_bytes; i++)
42  {
43  /* read UTF-8 lead byte */
44  ch = (BYTE)utf8_src[i];
45  utf8_trail_bytes = 0;
46  if (ch >= 0xf5)
47  {
48  ch = 0xfffd;
50  }
51  else if (ch >= 0xf0)
52  {
53  ch &= 0x07;
54  utf8_trail_bytes = 3;
55  }
56  else if (ch >= 0xe0)
57  {
58  ch &= 0x0f;
59  utf8_trail_bytes = 2;
60  }
61  else if (ch >= 0xc2)
62  {
63  ch &= 0x1f;
64  utf8_trail_bytes = 1;
65  }
66  else if (ch >= 0x80)
67  {
68  /* overlong or trail byte */
69  ch = 0xfffd;
71  }
72 
73  /* read UTF-8 trail bytes */
74  if (i + utf8_trail_bytes < utf8_bytes)
75  {
76  for (j = 0; j < utf8_trail_bytes; j++)
77  {
78  if ((utf8_src[i + 1] & 0xc0) == 0x80)
79  {
80  ch <<= 6;
81  ch |= utf8_src[i + 1] & 0x3f;
82  i++;
83  }
84  else
85  {
86  ch = 0xfffd;
87  utf8_trail_bytes = 0;
89  break;
90  }
91  }
92  }
93  else
94  {
95  ch = 0xfffd;
96  utf8_trail_bytes = 0;
98  i = utf8_bytes;
99  }
100 
101  /* encode ch as UTF-16 */
102  if ((ch > 0x10ffff) ||
103  (ch >= 0xd800 && ch <= 0xdfff) ||
104  (utf8_trail_bytes == 2 && ch < 0x00800) ||
105  (utf8_trail_bytes == 3 && ch < 0x10000))
106  {
107  /* invalid codepoint or overlong encoding */
108  utf16_ch[0] = 0xfffd;
109  utf16_ch[1] = 0xfffd;
110  utf16_ch[2] = 0xfffd;
111  utf16_ch_len = utf8_trail_bytes;
113  }
114  else if (ch >= 0x10000)
115  {
116  /* surrogate pair */
117  ch -= 0x010000;
118  utf16_ch[0] = 0xd800 + (ch >> 10 & 0x3ff);
119  utf16_ch[1] = 0xdc00 + (ch >> 0 & 0x3ff);
120  utf16_ch_len = 2;
121  }
122  else
123  {
124  /* single unit */
125  utf16_ch[0] = ch;
126  utf16_ch_len = 1;
127  }
128 
129  if (!uni_dest)
130  {
131  written += utf16_ch_len;
132  continue;
133  }
134 
135  for (j = 0; j < utf16_ch_len; j++)
136  {
137  if (uni_bytes_max >= sizeof(WCHAR))
138  {
139  *uni_dest++ = utf16_ch[j];
140  uni_bytes_max -= sizeof(WCHAR);
141  written++;
142  }
143  else
144  {
145  uni_bytes_max = 0;
147  }
148  }
149  }
150 
151  *uni_bytes_written = written * sizeof(WCHAR);
152  return status;
153 }
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
LONG NTSTATUS
Definition: precomp.h:26
#define STATUS_BUFFER_TOO_SMALL
Definition: shellext.h:64
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
Definition: glfuncs.h:250
__wchar_t WCHAR
Definition: xmlstorage.h:180
unsigned char BYTE
Definition: mem.h:68
#define STATUS_SOME_NOT_MAPPED
Definition: ntstatus.h:86
unsigned int ULONG
Definition: retypes.h:1
#define STATUS_INVALID_PARAMETER_4
Definition: ntstatus.h:464
return STATUS_SUCCESS
Definition: btrfs.c:2725
static SERVICE_STATUS status
Definition: service.c:31
Definition: ps.c:97

Referenced by _Dispatch_type_(), get_reparse_block(), get_reparse_point(), load_dir_children(), log_file_checksum_error(), open_fcb(), open_fileref_by_inode(), and utf8_to_utf16().

◆ set_dpi_aware()

void set_dpi_aware ( )

Definition at line 50 of file main.cpp.

50  {
51  _SetProcessDpiAwareness SetProcessDpiAwareness;
52  HMODULE shcore = LoadLibraryW(L"shcore.dll");
53 
54  if (!shcore)
55  return;
56 
57  SetProcessDpiAwareness = (_SetProcessDpiAwareness)GetProcAddress(shcore, "SetProcessDpiAwareness");
58 
59  if (!SetProcessDpiAwareness)
60  return;
61 
62  SetProcessDpiAwareness(PROCESS_PER_MONITOR_DPI_AWARE);
63 }
HRESULT(WINAPI * _SetProcessDpiAwareness)(PROCESS_DPI_AWARENESS value)
Definition: main.cpp:45
#define LoadLibraryW(x)
Definition: compat.h:404
static const WCHAR L[]
Definition: oid.c:1250
#define GetProcAddress(x, y)
Definition: compat.h:410

Referenced by AddDeviceW(), RecvSubvolGUIW(), RemoveDeviceW(), ResetStatsW(), ResizeDeviceW(), SendSubvolGUIW(), ShowPropSheetW(), and ShowScrubW().

◆ utf16_to_utf8()

void utf16_to_utf8 ( const wstring &  utf16,
string utf8 
)

Definition at line 694 of file main.cpp.

694  {
696  ULONG utf8len;
697  char* buf;
698 
699  Status = RtlUnicodeToUTF8N(nullptr, 0, &utf8len, utf16.c_str(), utf16.length() * sizeof(WCHAR));
700  if (!NT_SUCCESS(Status))
702 
703  buf = (char*)malloc(utf8len + sizeof(char));
704 
705  if (!buf)
707 
708  Status = RtlUnicodeToUTF8N(buf, utf8len, &utf8len, utf16.c_str(), utf16.length() * sizeof(WCHAR));
709  if (!NT_SUCCESS(Status)) {
710  free(buf);
712  }
713 
714  buf[utf8len] = 0;
715 
716  utf8 = buf;
717 
718  free(buf);
719 }
wstring format_ntstatus(NTSTATUS Status)
Definition: main.cpp:184
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define free
Definition: debug_ros.c:5
LONG NTSTATUS
Definition: precomp.h:26
#define IDS_OUT_OF_MEMORY
Definition: resource.h:63
#define IDS_RECV_RTLUNICODETOUTF8N_FAILED
Definition: resource.h:200
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
Status
Definition: gdiplustypes.h:24
unsigned int ULONG
Definition: retypes.h:1
#define malloc
Definition: debug_ros.c:4
NTSTATUS NTAPI RtlUnicodeToUTF8N(PCHAR UTF8StringDestination, ULONG UTF8StringMaxByteCount, PULONG UTF8StringActualByteCount, PCWCH UnicodeStringSource, ULONG UnicodeStringByteCount)

Referenced by last_error::last_error(), ntstatus_error::ntstatus_error(), and string_error::string_error().

◆ utf8_to_utf16()

void utf8_to_utf16 ( const string utf8,
wstring &  utf16 
)

Definition at line 667 of file main.cpp.

667  {
669  ULONG utf16len;
670  WCHAR* buf;
671 
672  Status = RtlUTF8ToUnicodeN(nullptr, 0, &utf16len, utf8.c_str(), utf8.length());
673  if (!NT_SUCCESS(Status))
675 
676  buf = (WCHAR*)malloc(utf16len + sizeof(WCHAR));
677 
678  if (!buf)
680 
681  Status = RtlUTF8ToUnicodeN(buf, utf16len, &utf16len, utf8.c_str(), utf8.length());
682  if (!NT_SUCCESS(Status)) {
683  free(buf);
685  }
686 
687  buf[utf16len / sizeof(WCHAR)] = 0;
688 
689  utf16 = buf;
690 
691  free(buf);
692 }
wstring format_ntstatus(NTSTATUS Status)
Definition: main.cpp:184
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define free
Definition: debug_ros.c:5
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS WINAPI RtlUTF8ToUnicodeN(PWSTR uni_dest, ULONG uni_bytes_max, PULONG uni_bytes_written, PCCH utf8_src, ULONG utf8_bytes)
Definition: reactos.cpp:21
#define IDS_OUT_OF_MEMORY
Definition: resource.h:63
#define IDS_RECV_RTLUTF8TOUNICODEN_FAILED
Definition: resource.h:136
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
Status
Definition: gdiplustypes.h:24
unsigned int ULONG
Definition: retypes.h:1
#define malloc
Definition: debug_ros.c:4

Referenced by BtrfsRecv::cmd_chmod(), BtrfsRecv::cmd_chown(), BtrfsRecv::cmd_clone(), BtrfsRecv::cmd_link(), BtrfsRecv::cmd_mkfile(), BtrfsRecv::cmd_removexattr(), BtrfsRecv::cmd_rename(), BtrfsRecv::cmd_rmdir(), BtrfsRecv::cmd_setxattr(), BtrfsRecv::cmd_snapshot(), BtrfsRecv::cmd_subvol(), BtrfsRecv::cmd_truncate(), BtrfsRecv::cmd_unlink(), BtrfsRecv::cmd_utimes(), BtrfsRecv::cmd_write(), error_message(), BtrfsRecv::recv_thread(), BtrfsRecv::RecvProgressDlgProc(), and BtrfsSend::Thread().

◆ wstring_sprintf()

void wstring_sprintf ( wstring &  s,
wstring  fmt,
  ... 
)

Definition at line 225 of file main.cpp.

225  {
226  int len;
227  va_list args;
228 
229  va_start(args, fmt);
230  len = _vsnwprintf(nullptr, 0, fmt.c_str(), args);
231 
232  if (len == 0)
233  s = L"";
234  else {
235  s.resize(len);
236  _vsnwprintf((wchar_t*)s.c_str(), len, fmt.c_str(), args);
237  }
238 
239  va_end(args);
240 }
Definition: match.c:390
#define va_end(ap)
Definition: acmsvcex.h:90
char * va_list
Definition: acmsvcex.h:78
static const WCHAR L[]
Definition: oid.c:1250
GLenum GLsizei len
Definition: glext.h:6722
GLdouble s
Definition: gl.h:2039
_CRTIMP int __cdecl _vsnwprintf(wchar_t *_Dest, size_t _Count, const wchar_t *_Format, va_list _Args)
#define va_start(ap, A)
Definition: acmsvcex.h:91
#define args
Definition: format.c:66
Definition: dsound.c:943

Referenced by BtrfsDeviceAdd::AddDevice(), BtrfsBalance::BalanceOptsDlgProc(), create_snapshot(), BtrfsVolPropSheet::DeviceDlgProc(), BtrfsDeviceResize::DeviceResizeDlgProc(), BtrfsDeviceResize::do_resize(), format_size(), BtrfsVolPropSheet::FormatUsage(), BtrfsPropSheet::init_propsheet(), BtrfsDeviceAdd::populate_device_tree(), PropSheetDlgProc(), BtrfsRecv::recv_thread(), BtrfsBalance::RefreshBalanceDlg(), BtrfsVolPropSheet::RefreshDevList(), BtrfsScrub::RefreshScrubDlg(), BtrfsPropSheet::set_size_on_disk(), BtrfsVolPropSheet::StatsDlgProc(), and BtrfsScrub::UpdateTextBox().

Variable Documentation

◆ module

Definition at line 47 of file main.cpp.

Referenced by BtrfsVolPropSheet::AddPages(), BtrfsPropSheet::AddPages(), af_face_globals_new(), BtrfsSend::Browse(), cache_connection(), cff_size_get_globals_funcs(), cff_slot_init(), cid_size_get_globals_funcs(), cid_slot_init(), DECLARE_INTERFACE_(), do_register_dll(), dsound_enum(), dwarf2_parse(), dwarf2_parse_compilation_unit(), FT_Add_Module(), ft_add_renderer(), FT_Get_Module_Interface(), get_process_name_from_pid(), http_release_netconn(), InternalIsOS2OrOldWin(), ITERATE_RegisterTypeLibraries(), ITypeInfo_fnAddressOfMember(), load_libglu(), LoadShimDLL2(), module_find_by_addr(), module_find_by_nameW(), module_get_containee(), module_get_container(), module_is_already_loaded(), module_is_container_loaded(), module_new(), pe_load_builtin_module(), pe_load_debug_directory(), pe_load_native_module(), RecvSubvolGUIW(), ResProtocolInfo_ParseUrl(), RtlCreateActivationContext(), setup_dll(), ShowPropSheetW(), source_new(), stabs_parse_typedef(), START_TEST(), SymEnumerateModulesW64(), SymFromName(), SymFunctionTableAccess64(), SymGetModuleBase64(), SymGetModuleInfoW64(), SymUnloadModule(), SymUnloadModule64(), T1_GlyphSlot_Init(), T1_Size_Get_Globals_Funcs(), test_comctl32_class(), test_FakeDLL(), test_HashLinks(), test_md5_ctx(), test_queryvirtualmemory(), test_thread_start_address(), TIFFError(), TIFFErrorExt(), TIFFWarning(), TIFFWarningExt(), x86_64_fetch_minidump_module(), xsltGetExtData(), xsltInitCtxtExt(), xsltRegisterExtModuleFull(), xsltRegisterExtPrefix(), xsltShutdownCtxtExt(), xsltShutdownExt(), and xsltStyleInitializeStylesheetModule().