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.

53 lines
894 B

  1. #include "ole2int.h"
  2. #include <rpc.h>
  3. #include <userenv.h>
  4. //
  5. // Public Active Ds includes
  6. //
  7. #include <activeds.h>
  8. #include "oledb.h"
  9. #include "oledberr.h"
  10. #include "msdadc.h"
  11. typedef struct tagData {
  12. void *obValue;
  13. ULONGLONG obValue2;
  14. ULONG obLength;
  15. ULONG status;
  16. } Data;
  17. #define EXIT_ON_NOMEM(p) \
  18. if (!(p)) { \
  19. hr = E_OUT_OF_MEMORY; \
  20. goto Error_Cleanup; \
  21. }
  22. #define ERROR_ON_FAILURE(hr) \
  23. if (FAILED(hr)) { \
  24. goto Error_Cleanup; \
  25. }
  26. #define RETURN_ON_FAILURE(hr) \
  27. if (FAILED(hr)) { \
  28. return hr; \
  29. }
  30. #ifdef DBG
  31. #define CSDbgPrint( ARGS ) DbgPrint ARGS
  32. #else
  33. #define CSDbgPrint( ARGS )
  34. #endif
  35. HRESULT
  36. BuildADsPathFromParent(
  37. LPWSTR Parent,
  38. LPWSTR Name,
  39. LPWSTR *ppszADsPath
  40. );
  41. #include "dsprop.hxx"
  42. #include "qry.hxx"