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.3 KiB

  1. #include "precomp.h"
  2. #include "MapiInit.h"
  3. // MAPI32.DLL stuff
  4. DECLARE_PROC_INST( MAPIINITIALIZE, MAPIInitialize );
  5. DECLARE_PROC_INST( MAPIUNINITIALIZE, MAPIUninitialize );
  6. DECLARE_PROC_INST( MAPIALLOCATEBUFFER, MAPIAllocateBuffer );
  7. DECLARE_PROC_INST( MAPIALLOCATEMORE, MAPIAllocateMore );
  8. DECLARE_PROC_INST( MAPIFREEBUFFER, MAPIFreeBuffer );
  9. DECLARE_PROC_INST( MAPILOGONEX, MAPILogonEx );
  10. DECLARE_PROC_INST( FREEPROWS, FreeProws );
  11. DECLARE_PROC_INST( HRQUERYALLROWS, HrQueryAllRows );
  12. DECLARE_PROC_INST( HRGETONEPROP, HrGetOneProp );
  13. DECLARE_PROC_INST( MAPIADMINPROFILES, MAPIAdminProfiles);
  14. // MAPI Proc Mak
  15. BEGIN_PROC_MAP( MAPI32 )
  16. PROC_MAP_ENTRY( MAPIInitialize )
  17. PROC_MAP_ENTRY( MAPIUninitialize )
  18. PROC_MAP_ENTRY( MAPIAllocateBuffer )
  19. PROC_MAP_ENTRY( MAPIAllocateMore )
  20. PROC_MAP_ENTRY( MAPIFreeBuffer )
  21. PROC_MAP_ENTRY( MAPILogonEx )
  22. PROC_MAP_ENTRY( MAPIAdminProfiles )
  23. PROC_MAP_ENTRY_EXPLICIT_NAME( FreeProws, FreeProws@4 )
  24. PROC_MAP_ENTRY_EXPLICIT_NAME( HrQueryAllRows, HrQueryAllRows@24 )
  25. PROC_MAP_ENTRY_EXPLICIT_NAME( HrGetOneProp, HrGetOneProp@12 )
  26. END_PROC_MAP
  27. bool LoadMapiFns( HINSTANCE* phInstMapi32DLL ) {
  28. HRESULT hr = LOAD_PROCS(TEXT("MAPI32.DLL"), MAPI32, phInstMapi32DLL );
  29. return SUCCEEDED(hr);
  30. }