IMiniSH::GetOffsetFromLine (Windows Embedded CE 6.0)
1/5/2010
This method gets the offset from the beginning of a module corresponding to a line in a source file.
Syntax
HRESULT GetOffsetFromLine(
DWORD dwLine,
LPCWSTR pszModule,
LPCWSTR pszSource,
ADDRESS_TYPE* pOffset
);
Parameters
- dwLine
[in] Line number for the source code line.
- pszModule
[in] Name of the module.
- pszSource
[in] Name of the source file.
- pOffset
[out] Pointer to value of the offset.
Return Value
The following table shows the 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 that one or more invalid pointer values. |
E_OUTOFMEMORY |
Indicates an out of memory error. |
E_FAIL |
Indicates an unspecified failure. |
Remarks
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 |