Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.2 KiB

  1. #ifndef PACKUTIL_H__
  2. #define PACKUTIL_H__
  3. #define CHAR_SPACE TEXT(' ')
  4. #define CHAR_QUOTE TEXT('"')
  5. #define SZ_QUOTE TEXT("\"")
  6. #define BUFFERSIZE 4096 // 4k buffer size for copy operations
  7. extern BOOL gCmdLineOK;
  8. /////////////////////////////////
  9. // Icon structure
  10. //
  11. typedef struct _IC // ic
  12. {
  13. HICON hDlgIcon; // handle to icon
  14. TCHAR szIconPath[MAX_PATH]; // path to icon
  15. TCHAR szIconText[MAX_PATH]; // text for icon
  16. INT iDlgIcon; // index of icon in a resource
  17. RECT rc; // bounding rect of icon and text
  18. } IC, *LPIC;
  19. VOID ReplaceExtension(LPTSTR lpstrTempFile,LPTSTR lpstrOrigFile);
  20. LPIC IconCreate(void);
  21. LPIC IconCreateFromFile(LPCTSTR);
  22. VOID GetDisplayName(LPTSTR, LPCTSTR);
  23. HRESULT CopyStreamToFile(IStream*, LPTSTR, DWORD fileLength);
  24. HRESULT CopyFileToStream(LPTSTR lpFileName, IStream* pstm, DWORD * pdwFileLength);
  25. HRESULT StringReadFromStream(IStream* pstm, LPSTR pszBuffer, UINT cchChar);
  26. HRESULT StringWriteToStream(IStream* pstm, LPCSTR pszBuffer, DWORD *pdwWrite);
  27. BOOL PathSeparateArgs(LPTSTR pszPath, LPTSTR pszArgs, DWORD cch);
  28. #endif