Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

127 lines
2.1 KiB

/****************************** 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))