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.
 
 
 
 
 
 

95 lines
2.3 KiB

/*
* shprv.h
*
* Header file for shell association database management functions
*/
#ifndef RC_INVOKED
#pragma warning(disable:4001)
#endif
// #define BUILDDLL
#include <windows.h>
#include <dde.h>
#include <commctrl.h> // make sure we don't conflict
#include <shell.h> // make sure we don't conflict
//#include <testing.h> /* For user menu handle heap stuff */
//#include <commdlg.h>
//#include <dlgs.h>
//#include "w32sys.h"
//#include "..\progman\pmhelp.h"
//#include "..\common\lstrfns.h"
#include "shelldlg.h"
// in MSGBOX.C
int WINAPI ShellMessageBox(HINSTANCE hAppInst, HWND hWnd, LPCSTR lpcText, LPCSTR lpcTitle, UINT fuStyle);
/* These are aligned on a ID which is a multiple of 16 (this will save a bit of memmory)
*/
#define IDS_PROGFOUND 68
#define IDS_PROGNOTFOUND 69
#define IDS_NOCOMMDLG 70
#define IDS_STILLNOTFOUND 71
#ifndef BUGBUG_BOBDAY_PROPOSE
#ifndef WIN32
LPSTR GAlloc(WORD,LPCATCHBUF);
LPSTR GRealloc(LPSTR,WORD,LPCATCHBUF);
#endif
#endif
LPSTR GFree(LPSTR);
BOOL IsStringInList(LPSTR,LPSTR);
int OpenSharedFile(LPCSTR szName, LPOFSTRUCT pof, UINT wFlags);
#define SE_ERR_FNF 2 // ShellExec() error returns
#define SE_ERR_PNF 3
#define SE_ERR_OOM 8
#ifndef BUGBUG_BOBDAY_PROPOSE
#ifndef WIN32
#ifndef DBCS
#define AnsiNext(x) ((x)+1)
#define AnsiPrev(y,x) ((x)-1)
#define IsDBCSLeadByte(x) ((x),FALSE)
#endif
#endif
#endif
#define CBPATHMAX 256
#define CBFILENAME 256
#define CBCOMMAND 256
//
// For shared code
//
#define _SHELLPRV_H_
#define _IDS_H_
extern int g_cxSmIcon, g_cySmIcon;
extern int g_cxIcon, g_cyIcon;
extern HINSTANCE g_hinst;
extern char const c_szNull[];
#define HINST_THISDLL g_hinst
#define IDD_TEXT 0x3003
#define IDD_SHUTDOWN 0x3800
#define IDI_SHUTDOWN 26
#define IDS_REASONS 0x1800
#define IDS_REASONS_INSMEM (IDS_REASONS + DE_INSMEM)
#define IDS_CLOSE 0x1041
#define IDS_EXITHELP 0x2140
#define IDS_WINDOWS_HLP 0x2141
#define DLG_FORMAT_FIRST 400
#define IDS_FORMAT_FIRST 0x2800
LPSTR WINAPI ResourceCStrToStr(HINSTANCE hAppInst, LPCSTR lpcText);
void PathRemoveArgs(LPSTR pszPath);
BOOL WINAPI SetWaitCursor(BOOL bSet);
#define DATASEG_READONLY "_TEXT"