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.

31 lines
595 B

  1. #include "windows.h"
  2. #include "stdio.h"
  3. #include "stdlib.h"
  4. #include "identbuilder.h"
  5. #ifdef INVALID_HANDLE_VALUE
  6. #undef INVALID_HANDLE_VALUE
  7. #endif
  8. #include "windows.h"
  9. #include "identbuilder.h"
  10. int __cdecl wmain(int argc, WCHAR** argv)
  11. {
  12. CHAR cchBuffer[0x5a];
  13. SIZE_T cchChars = sizeof(cchBuffer)/sizeof(*cchBuffer);
  14. BOOL fResult;
  15. cchBuffer[0] = '\0';
  16. fResult = SxsIdentDetermineManifestPlacementPath(
  17. 0,
  18. argv[1],
  19. cchBuffer,
  20. &cchChars);
  21. printf("%s\n", cchBuffer);
  22. fflush(stdout);
  23. return 0;
  24. }