Advertisement
FlyFar

DoubleAgent/Path.h

Jan 2nd, 2024
661
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.64 KB | Cybersecurity | 0 0
  1. #pragma once
  2.  
  3. /* Includes ******************************************************************/
  4. #include <Windows.h>
  5. #include "Status.h"
  6.  
  7. /* Function Declarations *****************************************************/
  8. /*
  9.  * Receives a file path and returns its directory path
  10.  * The directory path must be freed via HeapFree
  11.  */
  12. DOUBLEAGENT_STATUS PATH_GetDirectory(IN PCWSTR pcwszFilePath, OUT PWSTR *ppwszDirPath);
  13. /*
  14.  * Receives two file paths and combines them into a single valid path
  15.  * The combined path must be freed via HeapFree
  16.  */
  17. DOUBLEAGENT_STATUS PATH_Combine(IN PCWSTR pcwszPath1, IN PCWSTR pcwszPath2, OUT PWSTR *ppwszCombined);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement