41{
49
50
53
54
56 {
58 return 0;
59 }
60
62 {
64 return 0;
65 }
66
67
69 if (!hBuffer)
70 goto Failure;
71
72
73
74
75
76 do
77 {
80 goto Failure;
81
85
87 if (!hTemp)
88 goto Failure;
89
90 hBuffer = hTemp;
91 }
92 while (bStatus && dwBytesRead > 0);
93
94
95
96
97
98
99
101 if (hTemp)
102 hBuffer = hTemp;
103
104
106 goto Failure;
107
108
109
111
113 {
115 }
116 else
117 {
118
119
121 }
122
124 return 0;
125
126Failure:
129 return -1;
130}
VOID PrintError(DWORD dwError)
static BOOL IsDataUnicode(HGLOBAL hGlobal)
#define ConInitStdStreams()
void ConResPuts(FILE *fp, UINT nID)
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
#define ReadFile(a, b, c, d, e)
DWORD WINAPI GetFileType(HANDLE hFile)
HGLOBAL NTAPI GlobalFree(HGLOBAL hMem)
HGLOBAL NTAPI GlobalReAlloc(HGLOBAL hMem, SIZE_T dwBytes, UINT uFlags)
HGLOBAL NTAPI GlobalAlloc(UINT uFlags, SIZE_T dwBytes)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
_Check_return_ _CRTIMP int __cdecl wcsncmp(_In_reads_or_z_(_MaxCount) const wchar_t *_Str1, _In_reads_or_z_(_MaxCount) const wchar_t *_Str2, _In_ size_t _MaxCount)
DWORD WINAPI GetLastError(void)
HANDLE WINAPI SetClipboardData(_In_ UINT, _In_opt_ HANDLE)
BOOL WINAPI CloseClipboard(void)
BOOL WINAPI OpenClipboard(_In_opt_ HWND)
BOOL WINAPI EmptyClipboard(void)