IMiniSH::GetNearestLineFromOffset (Windows Embedded CE 6.0)
1/5/2010
This method gets the nearest line in a source file corresponding to an offset in a module.
Syntax
HRESULT GetNearestLineFromOffset(
ADDRESS_TYPE Offset,
LPCWSTR pszModule,
LPWSTR* ppszSource,
DWORD* pdwLine
);
Parameters
- Offset
[in] Offset from the beginning of the module.
- pszModule
[in] Name of the module.
- ppszSource
[out] Pointer to the name of the source file.
- pdwLine
[out] Pointer to the line number.
Return Value
The following table shows return values for this method.
Value | Description |
---|---|
S_OK |
Indicates the function was successful. |
E_INVALIDARG |
Indicates one or more invalid arguments. |
E_POINTER |
Indicates one or more invalid pointer values. |
E_OUTOFMEMORY |
Indicates an out of memory error. |
E_FAIL |
Indicates an unspecified failure. |
Remarks
If the contents of *ppszSource is not NULL, it must be released by the client with a call to CoTaskMemFree.
IMiniSH::SetSymbolPath must be called prior to this method for it to succeed.
Requirements
Header | MiniSH.h |
Library | ole32.lib, oleaut32.lib |
Windows Embedded CE | Windows CE 5.0 and later |