Source code of Windows XP (NT5)
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.

88 lines
2.5 KiB

  1. // defines
  2. #define BUFFER_SIZE 1024
  3. #define RETURN_BUFFER_SIZE 1024
  4. #define cListItemsMax 0x07FF
  5. #define cbItemMax (CB)0x2000
  6. //
  7. // stuff from comstf.h
  8. //
  9. typedef BYTE *SZ;
  10. typedef BYTE *PB;
  11. typedef BYTE **RGSZ;
  12. typedef unsigned CB;
  13. #define fFalse ((BOOL)0)
  14. #define fTrue ((BOOL)1)
  15. #define SzNextChar(sz) ((SZ)AnsiNext(sz))
  16. // external data
  17. extern HANDLE ThisDLLHandle;
  18. // common (shared) routines
  19. //*************************************************************************
  20. //
  21. // RETURN BUFFER MANIPULATION
  22. //
  23. //*************************************************************************
  24. VOID SetErrorText( DWORD ResID );
  25. VOID SetReturnText( LPSTR Text );
  26. //*************************************************************************
  27. //
  28. // MEMORY MANIPULATION
  29. //
  30. //*************************************************************************
  31. PVOID MyMalloc( size_t Size );
  32. VOID MyFree( PVOID p );
  33. PVOID MyRealloc( PVOID p, size_t Size );
  34. //*************************************************************************
  35. //
  36. // LIST MANIPULATION
  37. //
  38. //*************************************************************************
  39. BOOL FListValue( SZ szValue );
  40. RGSZ RgszAlloc( DWORD Size );
  41. VOID RgszFree( RGSZ rgsz );
  42. RGSZ RgszFromSzListValue( SZ szListValue );
  43. SZ SzListValueFromRgsz( RGSZ rgsz );
  44. DWORD RgszCount( RGSZ rgsz );
  45. SZ SzDup( SZ sz );
  46. //*************************************************************************
  47. //
  48. // FILE MANIPULATION
  49. //
  50. //*************************************************************************
  51. BOOL FFileFound( IN LPSTR szPath );
  52. BOOL FTransferSecurity( PCHAR Source, PCHAR Dest );
  53. //*************************************************************************
  54. //
  55. // ARCNAME MANIPULATION
  56. //
  57. //*************************************************************************
  58. VOID ProcessArcName( IN LPSTR NameIn, IN LPSTR NameOut );
  59. BOOL CompareArcNames( IN LPSTR Name1, IN LPSTR Name2 );
  60. BOOL DosPathToArcPathWorker( IN LPSTR DosPath, OUT LPSTR ArcPath );
  61. //*************************************************************************
  62. //
  63. // OBJECT MANIPULATION
  64. //
  65. //*************************************************************************
  66. BOOL IsSymbolicLinkType( IN PUNICODE_STRING Type );
  67. BOOL GetSymbolicLinkSource( IN PUNICODE_STRING pObjDir_U, IN PUNICODE_STRING pTarget_U, OUT PUNICODE_STRING pSource_U);
  68. BOOL GetSymbolicLinkTarget( IN PUNICODE_STRING pSourceString_U, IN OUT PUNICODE_STRING pDestString_U);