Thursday, January 14, 2016
How to use SHCameraCapture function in windows mobile 2003?
How to use SHCameraCapture function in windows mobile 2003 in?
Reply:
not support
Reply:
The landlord try this approach with the following line does not:
It contains the following code in the appropriate header file:
#paragram once
#include & lt; aygshell.h & gt;
////////////////////////////////////////////////// ////////////////////////////
//
// Flags for camera capture UI
typedef enum {
CAMERACAPTURE_MODE_STILL = 0,
CAMERACAPTURE_MODE_VIDEOONLY,
CAMERACAPTURE_MODE_VIDEOWITHAUDIO,
} CAMERACAPTURE_MODE;
typedef enum {
CAMERACAPTURE_STILLQUALITY_DEFAULT = 0,
CAMERACAPTURE_STILLQUALITY_LOW,
CAMERACAPTURE_STILLQUALITY_NORMAL,
CAMERACAPTURE_STILLQUALITY_HIGH,
} CAMERACAPTURE_STILLQUALITY;
typedef enum {
CAMERACAPTURE_VIDEOTYPE_ALL = 0xFFFF,
CAMERACAPTURE_VIDEOTYPE_STANDARD = 1,
CAMERACAPTURE_VIDEOTYPE_MESSAGING = 2,
} CAMERACAPTURE_VIDEOTYPES;
typedef struct tagSHCAMERACAPTURE
{
DWORD cbSize;
HWND hwndOwner;
TCHAR szFile [MAX_PATH];
LPCTSTR pszInitialDir;
LPCTSTR pszDefaultFileName;
LPCTSTR pszTitle;
CAMERACAPTURE_STILLQUALITY StillQuality;
CAMERACAPTURE_VIDEOTYPES VideoTypes;
DWORD nResolutionWidth;
DWORD nResolutionHeight;
DWORD nVideoTimeLimit;
CAMERACAPTURE_MODE Mode;
} SHCAMERACAPTURE, * PSHCAMERACAPTURE;
HRESULT SHCameraCapture (PSHCAMERACAPTURE pshcc);
typedef HRESULT (* fnSHCameraCapture) (PSHCAMERACAPTURE pshcc);
HRESULT SHCameraCapture (PSHCAMERACAPTURE pshcc)
{
HRESULT hr = S_OK;
HINSTANCE hAygShell = LoadLibrary (TEXT ("aygshell.dll"));
fnSHCameraCapture funcSHCameraCapture = NULL;
if (! hAygShell) {
hr = HRESULT_FROM_WIN32 (GetLastError ());
goto FuncExit;
}
funcSHCameraCapture = (fnSHCameraCapture) GetProcAddress (hAygShell, TEXT ("SHCameraCapture"));
if (! funcSHCameraCapture) {
hr = HRESULT_FROM_WIN32 (GetLastError ());
goto FuncExit;
}
// Call the API now
hr = funcSHCameraCapture (pshcc);
FuncExit:
if (hAygShell) {
FreeLibrary (hAygShell);
}
return hr;
}
I also saw a solution on the network
Specifically from:
http://windowsmobilepro.blogspot.com/2006/04/how-to-use-new-camera-api-in-windows.html
Reply:
We have to look at, I do not know whether you can you?
Reply:
After the test is not supported!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment