diff options
Diffstat (limited to 'private/windows/gina/winlogon/winutil.h')
-rw-r--r-- | private/windows/gina/winlogon/winutil.h | 127 |
1 files changed, 127 insertions, 0 deletions
diff --git a/private/windows/gina/winlogon/winutil.h b/private/windows/gina/winlogon/winutil.h new file mode 100644 index 000000000..62f8b76b6 --- /dev/null +++ b/private/windows/gina/winlogon/winutil.h @@ -0,0 +1,127 @@ +/****************************** Module Header ******************************\ +* Module Name: winutil.h +* +* Copyright (c) 1991, Microsoft Corporation +* +* Define windows utility functions +* +* History: +* 12-09-91 Davidc Created. +\***************************************************************************/ + + +// +// Exported function prototypes +// + + +BOOL +SetActiveDesktop( + PWinstaDescription pWindowStation, + ActiveDesktops Desktop); + +BOOL +SetReturnDesktop( + PWinstaDescription pWindowStation, + PWLX_DESKTOP pDesktop); + +HDESK +GetActiveDesktop( + PWinstaDescription pWindowStation, + BOOL * pCloseWhenDone, + BOOL * pLocked); + +BOOL +ToggleDesktopLock( + PWinstaDescription pWindowStation); + +BOOL +OpenIniFileUserMapping( + PGLOBALS pGlobals + ); + +VOID +CloseIniFileUserMapping( + PGLOBALS pGlobals + ); + +LPTSTR +AllocAndGetPrivateProfileString( + LPCTSTR lpAppName, + LPCTSTR lpKeyName, + LPCTSTR lpDefault, + LPCTSTR lpFileName + ); + +#define AllocAndGetProfileString(App, Key, Def) \ + AllocAndGetPrivateProfileString(App, Key, Def, NULL) + + +BOOL +WritePrivateProfileInt( + LPCTSTR lpAppName, + LPCTSTR lpKeyName, + UINT Value, + LPCTSTR lpFileName + ); + +#define WriteProfileInt(App, Key, Value) \ + WritePrivateProfileInt(App, Key, Value, NULL) + + +LPTSTR +AllocAndExpandEnvironmentStrings( + LPCTSTR lpszSrc + ); + +LPTSTR +AllocAndRegEnumKey( + HKEY hKey, + DWORD iSubKey + ); + +LPTSTR +AllocAndRegQueryValueEx( + HKEY hKey, + LPTSTR lpValueName, + LPDWORD lpReserved, + LPDWORD lpType + ); + +BOOL +SetEnvironmentULong( + LPTSTR Variable, + ULONG Value + ); + +BOOL +SetEnvironmentLargeInt( + LPTSTR Variable, + LARGE_INTEGER Value + ); + +LPWSTR +EncodeMultiSzW( + IN LPWSTR MultiSz + ); + +VOID +CentreWindow( + HWND hwnd + ); + +VOID +SetupSystemMenu( + HWND hDlg + ); + + +// +// Memory macros +// + +#define Alloc(c) ((PVOID)LocalAlloc(LPTR, c)) +#define ReAlloc(p, c) ((PVOID)LocalReAlloc(p, c, LPTR | LMEM_MOVEABLE)) +#define Free(p) ((VOID)LocalFree(p)) + + |