summaryrefslogtreecommitdiff
path: root/utils/MTP/MTP_DLL/mtp_wrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/MTP/MTP_DLL/mtp_wrapper.cpp')
-rw-r--r--utils/MTP/MTP_DLL/mtp_wrapper.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/utils/MTP/MTP_DLL/mtp_wrapper.cpp b/utils/MTP/MTP_DLL/mtp_wrapper.cpp
index f444a59631..f3a05f3c0c 100644
--- a/utils/MTP/MTP_DLL/mtp_wrapper.cpp
+++ b/utils/MTP/MTP_DLL/mtp_wrapper.cpp
@@ -31,8 +31,6 @@
31 */ 31 */
32 32
33 33
34#include "stdafx.h"
35
36#include <windows.h> 34#include <windows.h>
37#include "mswmdm_i.c" 35#include "mswmdm_i.c"
38#include "mswmdm.h" 36#include "mswmdm.h"
@@ -120,7 +118,7 @@ static int mtp_close(struct mtp_if* mtp)
120 return 0; 118 return 0;
121} 119}
122 120
123__declspec(dllexport) int mtp_description(wchar_t* name, wchar_t* manufacturer, DWORD* version) 121MTP_DLL_API int mtp_description(wchar_t* name, wchar_t* manufacturer, DWORD* version)
124{ 122{
125 HRESULT hr; 123 HRESULT hr;
126 int num = 0; 124 int num = 0;
@@ -177,7 +175,7 @@ __declspec(dllexport) int mtp_description(wchar_t* name, wchar_t* manufacturer,
177 return (num > 0) ? num : -1; 175 return (num > 0) ? num : -1;
178} 176}
179 177
180__declspec(dllexport) int mtp_sendnk(LPWSTR file, int filesize, void (*callback)(unsigned int progress, unsigned int max)) 178MTP_DLL_API int mtp_sendnk(LPWSTR file, int filesize, void (*callback)(unsigned int progress, unsigned int max))
181{ 179{
182 HRESULT hr; 180 HRESULT hr;
183 bool return_value = false; 181 bool return_value = false;
@@ -281,4 +279,4 @@ __declspec(dllexport) int mtp_sendnk(LPWSTR file, int filesize, void (*callback)
281 return return_value ? 1 : 0; 279 return return_value ? 1 : 0;
282} 280}
283 281
284} \ No newline at end of file 282}