14#define g_hHeap GetProcessHeap()
44 int iDateBufSize, iTimeBufSize;
61 if ( (iDateBufSize > 0) && (iTimeBufSize > 0) )
71 if (iDateBufSize > 0) lpszDateTime[iDateBufSize-1] =
L' ';
76 lpszDateTime + iDateBufSize,
104 wcsncpy(lpszDestBuf, lpszResourceString, iStrSize);
105 lpszDestBuf[iStrSize] =
L'\0';
108 *pSize = iStrSize + 1;
127 (bCondition ? uIDifTrue : uIDifFalse),
139 LPWSTR lpszExpandedCommand;
247 L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion",
251 DWORD dwType = 0, dwBufSize = 0;
298 WORD wCodePage = 0, wLangID = 0;
303 if (lpszFilename ==
NULL)
return NULL;
306 if (dwLen == 0)
return NULL;
309 if (!lpData)
return NULL;
318 lpszStrFileInfo =
FormatString(
L"StringFileInfo\\%04X%04X\\CompanyName",
328 wcscpy(lpszVendor, lpszData);
LPWSTR LoadConditionalResourceStringEx(IN HINSTANCE hInstance, IN BOOL bCondition, IN UINT uIDifTrue, IN UINT uIDifFalse, IN size_t *pSize OPTIONAL)
LPWSTR LoadResourceStringEx(IN HINSTANCE hInstance, IN UINT uID, OUT size_t *pSize OPTIONAL)
VOID ClipOrCenterWindowToMonitor(HWND hWnd, UINT flags)
VOID ClipOrCenterRectToMonitor(LPRECT prc, UINT flags)
DWORD RunCommand(IN LPCWSTR lpszCommand, IN LPCWSTR lpszParameters, IN INT nShowCmd)
BOOL IsPreVistaOSVersion(VOID)
LPWSTR FormatDateTime(IN LPSYSTEMTIME pDateTime)
BOOL MemFree(IN PVOID lpMem)
VOID FreeDateTime(IN LPWSTR lpszDateTime)
PVOID MemAlloc(IN DWORD dwFlags, IN SIZE_T dwBytes)
LPWSTR GetExecutableVendor(IN LPCWSTR lpszFilename)
VOID WINAPI MemInit(_In_ HANDLE Heap)
#define RegCloseKey(hKey)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
#define HeapFree(x, y, z)
DWORD WINAPI ExpandEnvironmentStringsW(IN LPCWSTR lpSrc, IN LPWSTR lpDst, IN DWORD nSize)
BOOL WINAPI GetVersionExW(IN LPOSVERSIONINFOW lpVersionInformation)
BOOL WINAPI GetFileVersionInfoW(LPCWSTR filename, DWORD handle, DWORD datasize, LPVOID data)
BOOL WINAPI VerQueryValueW(LPCVOID pBlock, LPCWSTR lpSubBlock, LPVOID *lplpBuffer, PUINT puLen)
DWORD WINAPI GetFileVersionInfoSizeW(LPCWSTR filename, LPDWORD handle)
DWORD FormatString(DWORD dwFlags, HINSTANCE hInstance, DWORD dwStringId, DWORD dwLanguageId, LPWSTR lpBuffer, DWORD nSize, va_list *Arguments)
GLubyte GLubyte GLubyte GLubyte w
GLfloat GLfloat GLfloat GLfloat h
HMONITOR WINAPI MonitorFromRect(LPCRECT, DWORD)
#define VER_PLATFORM_WIN32_NT
#define LOCALE_USER_DEFAULT
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
_CRTIMP wchar_t *__cdecl wcsncpy(wchar_t *_Dest, const wchar_t *_Source, size_t _Count)
HINSTANCE WINAPI ShellExecuteW(HWND hwnd, LPCWSTR lpVerb, LPCWSTR lpFile, LPCWSTR lpParameters, LPCWSTR lpDirectory, INT nShowCmd)
PULONG MinorVersion OPTIONAL
LPTSTR FindSubStrI(LPCTSTR str, LPCTSTR strSearch)
ULONG dwOSVersionInfoSize
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
_In_ ULONG _In_opt_ PVOID pvData
#define HKEY_LOCAL_MACHINE
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)