The LiteStep Application Interface, or as I like to call it "ell-sappy." This resides in lsapi.dll and provides functions for the core of LiteStep and LiteStep Modules.
Config File Operations
- LSAPI FILE* LCOpen (LPCTSTR szPath);
- LSAPI BOOL LCClose (FILE *f);
- LSAPI BOOL LCReadNextCommand (FILE *f, LPSTR szBuffer, DWORD dwLength);
- LSAPI BOOL LCReadNextConfig (FILE *f, LPCSTR szPrefix, LPSTR szBuffer, DWORD dwLength);
- LSAPI BOOL LCReadNextLine (FILE *f, LPSTR szBuffer, DWORD dwLength);
- LSAPI int LCTokenize (LPCSTR szString, LPSTR* lpszBuffers, DWORD dwNumBuffers, LPSTR szExtraParameters);
- LSAPI BOOL SetupRC(LPCTSTR szPath);
- LSAPI void CloseRC(void);
- LSAPI int GetRCInt(LPCTSTR lpKeyName, int nDefault);
- LSAPI BOOL GetRCString(LPCTSTR lpKeyName, LPSTR value, LPCTSTR defStr, int maxLen);
- LSAPI BOOL GetRCBool(LPCTSTR lpKeyName, BOOL ifFound);
- LSAPI BOOL GetRCBoolDef(LPCTSTR lpKeyName, BOOL bDefault);
- LSAPI BOOL GetRCLine( LPCTSTR, LPTSTR, UINT, LPCTSTR );
- LSAPI COLORREF GetRCColor(LPCTSTR lpKeyName, COLORREF colDef);
Bitmap Functions
- LSAPI HRGN BitmapToRegion(HBITMAP hBmp, COLORREF cTransparentColor, COLORREF cTolerance, int xoffset, int yoffset);
- LSAPI HBITMAP BitmapFromIcon (HICON hIcon);
- LSAPI HBITMAP LoadLSImage(LPCSTR szFile, LPCSTR szImage);
- LSAPI HICON LoadLSIcon (LPCSTR szImage, LPCSTR szFile);
- LSAPI void GetLSBitmapSize(HBITMAP hBitmap, LPINT x, LPINT y);
- LSAPI void TransparentBltLS (HDC dc, int nXDest, int nYDest, int nWidth, int nHeight, HDC tempDC, int nXSrc, int nYSrc, COLORREF colorTransparent);
Miscallaneous Functions
- LSAPI HWND GetLitestepWnd(void);
- LSAPI BOOL WINAPI LSGetLitestepPath( LPTSTR, UINT );
- LSAPI BOOL WINAPI LSGetImagePath( LPTSTR, UINT );
- LSAPI void VarExpansion(LPSTR buffer, LPCSTR value);
- LSAPI BOOL GetToken(LPCSTR szString, LPSTR szToken, LPCSTR* szNextToken, BOOL useBrackets);
- LSAPI void Frame3D(HDC dc, RECT rect, COLORREF TopColor, COLORREF BottomColor, int Width);
- LSAPI void SetDesktopArea(int left, int top, int right, int bottom);