This commit is contained in:
watrabi
2025-09-18 17:55:52 -04:00
commit 977f1ff4b8
15030 changed files with 17324420 additions and 0 deletions
+515
View File
@@ -0,0 +1,515 @@
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 7.00.0500 */
/* at Mon Jun 09 14:17:19 2014
*/
/* Compiler settings for .\RobloxProxy.idl:
Oicf, W1, Zp8, env=Win32 (32b run)
protocol : dce , ms_ext, c_ext, robust
error checks: stub_data
VC __declspec() decoration level:
__declspec(uuid()), __declspec(selectany), __declspec(novtable)
DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING( )
#pragma warning( disable: 4049 ) /* more than 64k source lines */
/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif
#include "rpc.h"
#include "rpcndr.h"
#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif // __RPCNDR_H_VERSION__
#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/
#ifndef __RobloxProxy_i_h__
#define __RobloxProxy_i_h__
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
/* Forward Declarations */
#ifndef __ILauncher_FWD_DEFINED__
#define __ILauncher_FWD_DEFINED__
typedef interface ILauncher ILauncher;
#endif /* __ILauncher_FWD_DEFINED__ */
#ifndef ___ILauncherEvents_FWD_DEFINED__
#define ___ILauncherEvents_FWD_DEFINED__
typedef interface _ILauncherEvents _ILauncherEvents;
#endif /* ___ILauncherEvents_FWD_DEFINED__ */
#ifndef __Launcher_FWD_DEFINED__
#define __Launcher_FWD_DEFINED__
#ifdef __cplusplus
typedef class Launcher Launcher;
#else
typedef struct Launcher Launcher;
#endif /* __cplusplus */
#endif /* __Launcher_FWD_DEFINED__ */
/* header files for imported files */
#include "oaidl.h"
#include "ocidl.h"
#ifdef __cplusplus
extern "C"{
#endif
#ifndef __ILauncher_INTERFACE_DEFINED__
#define __ILauncher_INTERFACE_DEFINED__
/* interface ILauncher */
/* [unique][helpstring][nonextensible][dual][uuid][object] */
EXTERN_C const IID IID_ILauncher;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("699F0898-B7BC-4DE5-AFEE-0EC38AD42240")
ILauncher : public IDispatch
{
public:
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE StartGame(
/* [in] */ BSTR authenticationUrl,
/* [in] */ BSTR script) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE HelloWorld( void) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Hello(
/* [retval][out] */ BSTR *result) = 0;
virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InstallHost(
/* [retval][out] */ BSTR *pVal) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Update( void) = 0;
virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_AuthenticationTicket(
/* [in] */ BSTR newVal) = 0;
virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IsUpToDate(
/* [retval][out] */ VARIANT_BOOL *result) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PreStartGame( void) = 0;
virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IsGameStarted(
/* [retval][out] */ VARIANT_BOOL *result) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetSilentModeEnabled(
/* [in] */ VARIANT_BOOL silentModeEnbled) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetKeyValue(
/* [in] */ BSTR key,
/* [retval][out] */ BSTR *pVal) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetKeyValue(
/* [in] */ BSTR key,
/* [in] */ BSTR val) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DeleteKeyValue(
/* [in] */ BSTR key) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetStartInHiddenMode(
/* [in] */ VARIANT_BOOL hiddenModeEnabled) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE UnhideApp( void) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE BringAppToFront( void) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ResetLaunchState( void) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetEditMode( void) = 0;
virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Version(
/* [retval][out] */ BSTR *pVal) = 0;
};
#else /* C style interface */
typedef struct ILauncherVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
ILauncher * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */
__RPC__deref_out void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
ILauncher * This);
ULONG ( STDMETHODCALLTYPE *Release )(
ILauncher * This);
HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
ILauncher * This,
/* [out] */ UINT *pctinfo);
HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
ILauncher * This,
/* [in] */ UINT iTInfo,
/* [in] */ LCID lcid,
/* [out] */ ITypeInfo **ppTInfo);
HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
ILauncher * This,
/* [in] */ REFIID riid,
/* [size_is][in] */ LPOLESTR *rgszNames,
/* [range][in] */ UINT cNames,
/* [in] */ LCID lcid,
/* [size_is][out] */ DISPID *rgDispId);
/* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
ILauncher * This,
/* [in] */ DISPID dispIdMember,
/* [in] */ REFIID riid,
/* [in] */ LCID lcid,
/* [in] */ WORD wFlags,
/* [out][in] */ DISPPARAMS *pDispParams,
/* [out] */ VARIANT *pVarResult,
/* [out] */ EXCEPINFO *pExcepInfo,
/* [out] */ UINT *puArgErr);
/* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *StartGame )(
ILauncher * This,
/* [in] */ BSTR authenticationUrl,
/* [in] */ BSTR script);
/* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *HelloWorld )(
ILauncher * This);
/* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Hello )(
ILauncher * This,
/* [retval][out] */ BSTR *result);
/* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InstallHost )(
ILauncher * This,
/* [retval][out] */ BSTR *pVal);
/* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Update )(
ILauncher * This);
/* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AuthenticationTicket )(
ILauncher * This,
/* [in] */ BSTR newVal);
/* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsUpToDate )(
ILauncher * This,
/* [retval][out] */ VARIANT_BOOL *result);
/* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PreStartGame )(
ILauncher * This);
/* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsGameStarted )(
ILauncher * This,
/* [retval][out] */ VARIANT_BOOL *result);
/* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetSilentModeEnabled )(
ILauncher * This,
/* [in] */ VARIANT_BOOL silentModeEnbled);
/* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetKeyValue )(
ILauncher * This,
/* [in] */ BSTR key,
/* [retval][out] */ BSTR *pVal);
/* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetKeyValue )(
ILauncher * This,
/* [in] */ BSTR key,
/* [in] */ BSTR val);
/* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteKeyValue )(
ILauncher * This,
/* [in] */ BSTR key);
/* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetStartInHiddenMode )(
ILauncher * This,
/* [in] */ VARIANT_BOOL hiddenModeEnabled);
/* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UnhideApp )(
ILauncher * This);
/* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *BringAppToFront )(
ILauncher * This);
/* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ResetLaunchState )(
ILauncher * This);
/* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetEditMode )(
ILauncher * This);
/* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Version )(
ILauncher * This,
/* [retval][out] */ BSTR *pVal);
END_INTERFACE
} ILauncherVtbl;
interface ILauncher
{
CONST_VTBL struct ILauncherVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define ILauncher_QueryInterface(This,riid,ppvObject) \
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
#define ILauncher_AddRef(This) \
( (This)->lpVtbl -> AddRef(This) )
#define ILauncher_Release(This) \
( (This)->lpVtbl -> Release(This) )
#define ILauncher_GetTypeInfoCount(This,pctinfo) \
( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) )
#define ILauncher_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) )
#define ILauncher_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) )
#define ILauncher_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) )
#define ILauncher_StartGame(This,authenticationUrl,script) \
( (This)->lpVtbl -> StartGame(This,authenticationUrl,script) )
#define ILauncher_HelloWorld(This) \
( (This)->lpVtbl -> HelloWorld(This) )
#define ILauncher_Hello(This,result) \
( (This)->lpVtbl -> Hello(This,result) )
#define ILauncher_get_InstallHost(This,pVal) \
( (This)->lpVtbl -> get_InstallHost(This,pVal) )
#define ILauncher_Update(This) \
( (This)->lpVtbl -> Update(This) )
#define ILauncher_put_AuthenticationTicket(This,newVal) \
( (This)->lpVtbl -> put_AuthenticationTicket(This,newVal) )
#define ILauncher_get_IsUpToDate(This,result) \
( (This)->lpVtbl -> get_IsUpToDate(This,result) )
#define ILauncher_PreStartGame(This) \
( (This)->lpVtbl -> PreStartGame(This) )
#define ILauncher_get_IsGameStarted(This,result) \
( (This)->lpVtbl -> get_IsGameStarted(This,result) )
#define ILauncher_SetSilentModeEnabled(This,silentModeEnbled) \
( (This)->lpVtbl -> SetSilentModeEnabled(This,silentModeEnbled) )
#define ILauncher_GetKeyValue(This,key,pVal) \
( (This)->lpVtbl -> GetKeyValue(This,key,pVal) )
#define ILauncher_SetKeyValue(This,key,val) \
( (This)->lpVtbl -> SetKeyValue(This,key,val) )
#define ILauncher_DeleteKeyValue(This,key) \
( (This)->lpVtbl -> DeleteKeyValue(This,key) )
#define ILauncher_SetStartInHiddenMode(This,hiddenModeEnabled) \
( (This)->lpVtbl -> SetStartInHiddenMode(This,hiddenModeEnabled) )
#define ILauncher_UnhideApp(This) \
( (This)->lpVtbl -> UnhideApp(This) )
#define ILauncher_BringAppToFront(This) \
( (This)->lpVtbl -> BringAppToFront(This) )
#define ILauncher_ResetLaunchState(This) \
( (This)->lpVtbl -> ResetLaunchState(This) )
#define ILauncher_SetEditMode(This) \
( (This)->lpVtbl -> SetEditMode(This) )
#define ILauncher_get_Version(This,pVal) \
( (This)->lpVtbl -> get_Version(This,pVal) )
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __ILauncher_INTERFACE_DEFINED__ */
#ifndef __RobloxProxyLib_LIBRARY_DEFINED__
#define __RobloxProxyLib_LIBRARY_DEFINED__
/* library RobloxProxyLib */
/* [helpstring][version][uuid] */
EXTERN_C const IID LIBID_RobloxProxyLib;
#ifndef ___ILauncherEvents_DISPINTERFACE_DEFINED__
#define ___ILauncherEvents_DISPINTERFACE_DEFINED__
/* dispinterface _ILauncherEvents */
/* [helpstring][uuid] */
EXTERN_C const IID DIID__ILauncherEvents;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("6E9600BE-5654-47F0-9A68-D6DC25FADC55")
_ILauncherEvents : public IDispatch
{
};
#else /* C style interface */
typedef struct _ILauncherEventsVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
_ILauncherEvents * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */
__RPC__deref_out void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
_ILauncherEvents * This);
ULONG ( STDMETHODCALLTYPE *Release )(
_ILauncherEvents * This);
HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
_ILauncherEvents * This,
/* [out] */ UINT *pctinfo);
HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
_ILauncherEvents * This,
/* [in] */ UINT iTInfo,
/* [in] */ LCID lcid,
/* [out] */ ITypeInfo **ppTInfo);
HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
_ILauncherEvents * This,
/* [in] */ REFIID riid,
/* [size_is][in] */ LPOLESTR *rgszNames,
/* [range][in] */ UINT cNames,
/* [in] */ LCID lcid,
/* [size_is][out] */ DISPID *rgDispId);
/* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
_ILauncherEvents * This,
/* [in] */ DISPID dispIdMember,
/* [in] */ REFIID riid,
/* [in] */ LCID lcid,
/* [in] */ WORD wFlags,
/* [out][in] */ DISPPARAMS *pDispParams,
/* [out] */ VARIANT *pVarResult,
/* [out] */ EXCEPINFO *pExcepInfo,
/* [out] */ UINT *puArgErr);
END_INTERFACE
} _ILauncherEventsVtbl;
interface _ILauncherEvents
{
CONST_VTBL struct _ILauncherEventsVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define _ILauncherEvents_QueryInterface(This,riid,ppvObject) \
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
#define _ILauncherEvents_AddRef(This) \
( (This)->lpVtbl -> AddRef(This) )
#define _ILauncherEvents_Release(This) \
( (This)->lpVtbl -> Release(This) )
#define _ILauncherEvents_GetTypeInfoCount(This,pctinfo) \
( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) )
#define _ILauncherEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) )
#define _ILauncherEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) )
#define _ILauncherEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) )
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* ___ILauncherEvents_DISPINTERFACE_DEFINED__ */
EXTERN_C const CLSID CLSID_Launcher;
#ifdef __cplusplus
class DECLSPEC_UUID("76D50904-6780-4c8b-8986-1A7EE0B1716D")
Launcher;
#endif
#endif /* __RobloxProxyLib_LIBRARY_DEFINED__ */
/* Additional Prototypes for ALL interfaces */
unsigned long __RPC_USER BSTR_UserSize( unsigned long *, unsigned long , BSTR * );
unsigned char * __RPC_USER BSTR_UserMarshal( unsigned long *, unsigned char *, BSTR * );
unsigned char * __RPC_USER BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * );
void __RPC_USER BSTR_UserFree( unsigned long *, BSTR * );
/* end of Additional Prototypes */
#ifdef __cplusplus
}
#endif
#endif
+157
View File
@@ -0,0 +1,157 @@
#ifndef _NPP_INSTANCE_LIST_H_
#define _NPP_INSTANCE_LIST_H_
#include <list>
#include <windows.h>
#include <fstream>
typedef struct {
NPP instance;
NPObject * so;
ILauncher * IRobloxLauncher;
} NP_ROBLOX_INSTANCE;
using namespace std ;
typedef list<NP_ROBLOX_INSTANCE *> NppRobloxInstance;
class NPInstanceList
{
private:
std::string getTempFileName(const char* ext)
{
TCHAR szPath[_MAX_DIR];
if (!GetTempPath(_MAX_DIR, szPath))
{
dontLog = true;
return std::string("");
}
GUID g;
::CoCreateGuid(&g);
char szFilePath[MAX_PATH];
sprintf(szFilePath, "%SRBX-%08X.%s", szPath, g.Data1, ext);
return std::string(szFilePath);
}
std::string logFileName;
std::ofstream log;
// true only if we were not able to get temp path
bool dontLog;
NppRobloxInstance queue;
NppRobloxInstance::iterator i;
NppRobloxInstance::iterator index;
int code;
HANDLE lockMutex;
CRITICAL_SECTION logLock;
void lock(void){
WaitForSingleObject(lockMutex, INFINITE);
}
void unlock(void){
ReleaseMutex(lockMutex);
}
void writeLogEntryRaw(char *entry);
public:
NPInstanceList(void) :
dontLog(false),
logFileName(getTempFileName("log")),
log(logFileName.c_str())
{
lockMutex = CreateMutex(NULL, false, NULL);
InitializeCriticalSection(&logLock);
}
~NPInstanceList(void){
if( lockMutex ) {
CloseHandle(lockMutex);
}
DeleteCriticalSection(&logLock);
}
void writeLogEntry(char *format, ...);
void clear(void) {
lock();
if( queue.size() >0 ) {
queue.clear();
}
unlock();
}
void add(NP_ROBLOX_INSTANCE *item) {
lock();
queue.push_back(item);
unlock();
}
ILauncher * find(NPObject *obj) {
ILauncher *item = NULL;
NP_ROBLOX_INSTANCE * tmp = NULL;
lock();
if( queue.size()>0 ){
for (i = queue.begin(); i != queue.end(); ++i){
tmp = (NP_ROBLOX_INSTANCE *)(*i);
if( tmp->so == obj ){
item = tmp->IRobloxLauncher;
break;
}
}
}
unlock();
return item;
}
NP_ROBLOX_INSTANCE * find(NPP activeInstance){
NP_ROBLOX_INSTANCE *item = NULL, * tmp = NULL;
lock();
if( queue.size()>0 ){
for (i = queue.begin(); i != queue.end(); ++i){
tmp = (NP_ROBLOX_INSTANCE *)(*i);
if( tmp->instance == activeInstance ){
item = tmp;
break;
}
}
}
unlock();
return item;
}
NP_ROBLOX_INSTANCE * findAndRemove(NPP activeInstance){
NP_ROBLOX_INSTANCE *item = NULL, * tmp = NULL;
lock();
if( queue.size()>0 ){
for (i = queue.begin(); i != queue.end(); ++i){
tmp = (NP_ROBLOX_INSTANCE *)(*i);
if( tmp->instance == activeInstance ){
queue.erase(i);
item = tmp;
break;
}
}
}
unlock();
return item;
}
int size(void){
int count;
lock();
count = (int)queue.size();
unlock();
return count;
}
};
#endif
+7
View File
@@ -0,0 +1,7 @@
LIBRARY NPRobloxProxy.dll
EXPORTS
NP_GetEntryPoints @1
NP_Initialize @2
NP_Shutdown @3
NP_GetMIMEDescription @4
+105
View File
@@ -0,0 +1,105 @@
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "winresrc.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,2,8,25
PRODUCTVERSION 1,2,8,25
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x40004L
FILETYPE 0x2L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904e4"
BEGIN
VALUE "CompanyName", " ROBLOX Corporation"
VALUE "FileDescription", "Roblox Launcher Plugin"
VALUE "FileExtents", "launcher"
VALUE "FileOpenName", "Roblox Launcher Plugin"
VALUE "FileVersion", "1, 2, 8, 25"
VALUE "InternalName", "RobloxLauncherPlugin"
VALUE "LegalCopyright", "(c) 2012 ROBLOX Corporation. All rights reserved."
VALUE "MIMEType", "application/x-vnd-roblox-launcher"
VALUE "OriginalFilename", "NPRobloxProxy.dll"
VALUE "ProductName", "Roblox Launcher Plugin"
VALUE "ProductVersion", "1, 2, 8, 25"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
BEGIN
"#include ""winresrc.h""\r\n"
"\0"
END
3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED
+455
View File
@@ -0,0 +1,455 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Name="NPRobloxProxy"
ProjectGUID="{2A26E3AB-1664-4474-87A6-2EFF2C85913A}"
RootNamespace="nproblox"
SccProjectName="Perforce Project"
SccLocalPath="."
SccProvider="MSSCCI:Perforce SCM"
Keyword="Win32Proj"
TargetFrameworkVersion="131072"
>
<Platforms>
<Platform
Name="Win32"
/>
<Platform
Name="x64"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="bin\$(ConfigurationName)"
IntermediateDirectory="obj\$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
UseUnicodeResponseFiles="false"
Optimization="0"
AdditionalIncludeDirectories="$(CONTRIB_PATH)\xulrunner-sdk\sdk\include;&quot;$(ProjectDir)&quot;;..\..\Win"
PreprocessorDefinitions="XULRUNNER_SDK;WIN32;_DEBUG;_WINDOWS;XP_WIN32;MOZILLA_STRICT_API;XPCOM_GLUE;XP_WIN;_X86_;NPROBLOX_EXPORTS;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE;_USRDLL"
MinimalRebuild="true"
ExceptionHandling="1"
BasicRuntimeChecks="0"
RuntimeLibrary="1"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="4"
CallingConvention="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)\NPRobloxProxy.dll"
LinkIncremental="2"
AdditionalLibraryDirectories=""
ModuleDefinitionFile="nproblox.def"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(OutDir)\NPRobloxProxy.pdb"
SubSystem="1"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine=""
/>
</Configuration>
<Configuration
Name="Debug|x64"
OutputDirectory="bin\x64\$(ConfigurationName)"
IntermediateDirectory="obj\x64\$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
UseUnicodeResponseFiles="false"
Optimization="0"
AdditionalIncludeDirectories="$(CONTRIB_PATH)\xulrunner-sdk\sdk\include;&quot;$(ProjectDir)&quot;;..\..\Win"
PreprocessorDefinitions="XULRUNNER_SDK;WIN32;_DEBUG;_WINDOWS;XP_WIN32;MOZILLA_STRICT_API;XPCOM_GLUE;XP_WIN;NPROBLOX_EXPORTS;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE;_USRDLL"
MinimalRebuild="true"
ExceptionHandling="1"
BasicRuntimeChecks="0"
RuntimeLibrary="1"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="3"
CallingConvention="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)\NPRobloxProxy64.dll"
LinkIncremental="1"
AdditionalLibraryDirectories=""
ModuleDefinitionFile="nproblox64.def"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(OutDir)\NPRobloxProxy.pdb"
SubSystem="1"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
TargetMachine="17"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine=""
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="bin\$(ConfigurationName)"
IntermediateDirectory="obj\$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
UseUnicodeResponseFiles="false"
Optimization="0"
AdditionalIncludeDirectories="$(CONTRIB_PATH)\xulrunner-sdk\sdk\include;&quot;$(ProjectDir)&quot;;..\..\Win"
PreprocessorDefinitions="XULRUNNER_SDK;WIN32;NDEBUG;_WINDOWS;XP_WIN32;MOZILLA_STRICT_API;XPCOM_GLUE;XP_WIN;_X86_;NPROBLOX_EXPORTS;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE;_USRDLL"
MinimalRebuild="true"
ExceptionHandling="1"
BasicRuntimeChecks="0"
RuntimeLibrary="0"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="4"
CallingConvention="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)\NPRobloxProxy.dll"
LinkIncremental="2"
AdditionalLibraryDirectories=""
ModuleDefinitionFile="nproblox.def"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(OutDir)\NPRobloxProxy.pdb"
SubSystem="1"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine=""
ExcludedFromBuild="false"
/>
</Configuration>
<Configuration
Name="Release|x64"
OutputDirectory="bin\x64\$(ConfigurationName)"
IntermediateDirectory="obj\x64\$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
UseUnicodeResponseFiles="false"
Optimization="0"
AdditionalIncludeDirectories="$(CONTRIB_PATH)\xulrunner-sdk\sdk\include;&quot;$(ProjectDir)&quot;;..\..\Win"
PreprocessorDefinitions="XULRUNNER_SDK;WIN32;NDEBUG;_WINDOWS;XP_WIN32;MOZILLA_STRICT_API;XPCOM_GLUE;XP_WIN;NPROBLOX_EXPORTS;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE;_USRDLL"
MinimalRebuild="true"
ExceptionHandling="1"
BasicRuntimeChecks="0"
RuntimeLibrary="0"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="3"
CallingConvention="0"
ShowIncludes="false"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)\NPRobloxProxy64.dll"
LinkIncremental="1"
AdditionalLibraryDirectories=""
ModuleDefinitionFile="nproblox64.def"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(OutDir)\NPRobloxProxy64.pdb"
SubSystem="1"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
TargetMachine="17"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine=""
ExcludedFromBuild="false"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath=".\nppinstancelist.h"
>
</File>
<File
RelativePath=".\nproblox_main.c"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="2"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug|x64"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="2"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="2"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|x64"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="2"
/>
</FileConfiguration>
</File>
<File
RelativePath=".\roblox_adapter.cpp"
>
</File>
<File
RelativePath=".\rolbox_adapter.h"
>
</File>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath=".\npupp.h"
>
</File>
<File
RelativePath=".\RobloxProxy_i.h"
>
</File>
</Filter>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
<File
RelativePath=".\nproblox.def"
>
</File>
<File
RelativePath=".\nproblox.rc"
>
</File>
<File
RelativePath=".\nproblox64.def"
>
</File>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
+237
View File
@@ -0,0 +1,237 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectName>NPRobloxProxy</ProjectName>
<ProjectGuid>{2A26E3AB-1664-4474-87A6-2EFF2C85913A}</ProjectGuid>
<RootNamespace>nproblox</RootNamespace>
<SccProjectName>Perforce Project</SccProjectName>
<SccLocalPath>.</SccLocalPath>
<SccProvider>MSSCCI:Perforce SCM</SccProvider>
<Keyword>Win32Proj</Keyword>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<PlatformToolset>v110_xp</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>16.0.34930.59</_ProjectFileVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<OutDir>bin\$(Configuration)\</OutDir>
<IntDir>obj\$(Configuration)\</IntDir>
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<OutDir>bin\x64\$(Configuration)\</OutDir>
<IntDir>obj\x64\$(Configuration)\</IntDir>
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<OutDir>bin\$(Configuration)\</OutDir>
<IntDir>obj\$(Configuration)\</IntDir>
<LinkIncremental>true</LinkIncremental>
<PostBuildEventUseInBuild>true</PostBuildEventUseInBuild>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<OutDir>bin\x64\$(Configuration)\</OutDir>
<IntDir>obj\x64\$(Configuration)\</IntDir>
<LinkIncremental>false</LinkIncremental>
<PostBuildEventUseInBuild>true</PostBuildEventUseInBuild>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>$(CONTRIB_PATH)\xulrunner-sdk\sdk\include;$(ProjectDir);..\..\Win;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>XULRUNNER_SDK;WIN32;_DEBUG;_WINDOWS;XP_WIN32;MOZILLA_STRICT_API;XPCOM_GLUE;XP_WIN;_X86_;NPROBLOX_EXPORTS;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<ExceptionHandling>Sync</ExceptionHandling>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader />
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<CallingConvention>Cdecl</CallingConvention>
</ClCompile>
<Link>
<OutputFile>$(OutDir)NPRobloxProxy.dll</OutputFile>
<ModuleDefinitionFile>nproblox.def</ModuleDefinitionFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)NPRobloxProxy.pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention />
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
<Command />
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Midl>
<TargetEnvironment>X64</TargetEnvironment>
</Midl>
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>$(CONTRIB_PATH)\xulrunner-sdk\sdk\include;$(ProjectDir);..\..\Win;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>XULRUNNER_SDK;WIN32;_DEBUG;_WINDOWS;XP_WIN32;MOZILLA_STRICT_API;XPCOM_GLUE;XP_WIN;NPROBLOX_EXPORTS;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<ExceptionHandling>Sync</ExceptionHandling>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader />
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CallingConvention>Cdecl</CallingConvention>
</ClCompile>
<Link>
<OutputFile>$(OutDir)NPRobloxProxy64.dll</OutputFile>
<ModuleDefinitionFile>nproblox64.def</ModuleDefinitionFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)NPRobloxProxy.pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention />
<TargetMachine>MachineX64</TargetMachine>
</Link>
<PostBuildEvent>
<Command />
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>$(CONTRIB_PATH)\xulrunner-sdk\sdk\include;$(ProjectDir);..\..\Win;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>XULRUNNER_SDK;WIN32;NDEBUG;_WINDOWS;XP_WIN32;MOZILLA_STRICT_API;XPCOM_GLUE;XP_WIN;_X86_;NPROBLOX_EXPORTS;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<ExceptionHandling>Sync</ExceptionHandling>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader />
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<CallingConvention>Cdecl</CallingConvention>
</ClCompile>
<Link>
<OutputFile>$(OutDir)NPRobloxProxy.dll</OutputFile>
<ModuleDefinitionFile>nproblox.def</ModuleDefinitionFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)NPRobloxProxy.pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention />
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
<Command />
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Midl>
<TargetEnvironment>X64</TargetEnvironment>
</Midl>
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>$(CONTRIB_PATH)\xulrunner-sdk\sdk\include;$(ProjectDir);..\..\Win;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>XULRUNNER_SDK;WIN32;NDEBUG;_WINDOWS;XP_WIN32;MOZILLA_STRICT_API;XPCOM_GLUE;XP_WIN;NPROBLOX_EXPORTS;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<ExceptionHandling>Sync</ExceptionHandling>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader />
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CallingConvention>Cdecl</CallingConvention>
<ShowIncludes>false</ShowIncludes>
</ClCompile>
<Link>
<OutputFile>$(OutDir)NPRobloxProxy64.dll</OutputFile>
<ModuleDefinitionFile>nproblox64.def</ModuleDefinitionFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)NPRobloxProxy64.pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention />
<TargetMachine>MachineX64</TargetMachine>
</Link>
<PostBuildEvent>
<Command />
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="nppinstancelist.h" />
<ClInclude Include="npupp.h" />
<ClInclude Include="RobloxProxy_i.h" />
<ClInclude Include="rolbox_adapter.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="nproblox_main.c">
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">CompileAsCpp</CompileAs>
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">CompileAsCpp</CompileAs>
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">CompileAsCpp</CompileAs>
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">CompileAsCpp</CompileAs>
</ClCompile>
<ClCompile Include="roblox_adapter.cpp" />
</ItemGroup>
<ItemGroup>
<None Include="nproblox.def" />
<None Include="nproblox64.def" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="nproblox.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Source Files\Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="nppinstancelist.h">
<Filter>Source Files</Filter>
</ClInclude>
<ClInclude Include="rolbox_adapter.h">
<Filter>Source Files</Filter>
</ClInclude>
<ClInclude Include="npupp.h">
<Filter>Source Files\Header Files</Filter>
</ClInclude>
<ClInclude Include="RobloxProxy_i.h">
<Filter>Source Files\Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="nproblox_main.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="roblox_adapter.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<None Include="nproblox.def">
<Filter>Resource Files</Filter>
</None>
<None Include="nproblox64.def">
<Filter>Resource Files</Filter>
</None>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="nproblox.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
</Project>
+7
View File
@@ -0,0 +1,7 @@
LIBRARY NPRobloxProxy64.dll
EXPORTS
NP_GetEntryPoints @1
NP_Initialize @2
NP_Shutdown @3
NP_GetMIMEDescription @4
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+15
View File
@@ -0,0 +1,15 @@
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by nproblox.rc
//
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
+393
View File
@@ -0,0 +1,393 @@
#include <stdio.h>
#include <comdef.h>
#include "RobloxProxy_i.h"
const IID IID_ILauncher =
{0x699F0898,0xB7BC,0x4DE5,{0xAF,0xEE,0x0E,0xC3,0x8A,0xD4,0x22,0x40}};
#ifdef _WIN64
const CLSID CLSID_Launcher =
{0xDEE03C2B,0x0C0C,0x41A9,{0x98,0x77,0xFD,0x4B,0x4D,0x7B,0x6E,0xA3}};
#else
const CLSID CLSID_Launcher =
{0x76D50904,0x6780,0x4c8b,{0x89,0x86,0x1A,0x7E,0xE0,0xB1,0x71,0x6D}};
#endif
//=================================================================================
//=================COM Synchronization routing functions========================================
//=================================================================================
bool isComInitialized = false;
void StartCom(void){
HRESULT hr;
if( !isComInitialized ){
hr = CoInitialize(0);
if( SUCCEEDED(hr) ){
isComInitialized = true;
}
}
}
void StopCom(void){
if( isComInitialized ){
CoUninitialize();
isComInitialized = false;
}
}
bool isComStarted(void){
return isComInitialized;
}
//=================================================================================
//=================String routing functions========================================
//=================================================================================
/**
* Conversion from ASCII to WideChar
*
*/
int Str2Wc( char* pBuf, WCHAR* pwcBuf, int bufLen){
if( pwcBuf == NULL || pBuf == NULL )
return -1;
// If zero then assume the user has allocated enough
if( bufLen == 0 ){
bufLen = (int)( strlen(pBuf) + 1 );
}
if( MultiByteToWideChar( CP_ACP, 0, pBuf, -1, pwcBuf, bufLen) == 0 ){
return -1;
}
pwcBuf[strlen(pBuf)] = 0;
return 0;
}
/**
* Conversion from WideChar to ASCII
*
*/
int Wc2Str(WCHAR* pwcBuf, char* pBuf, int bufLen){
if( pwcBuf == NULL || pBuf == NULL )
return -1;
// If zero then assume the user has allocated enough
if( bufLen == 0 ){
bufLen = (int)( wcslen( pwcBuf) + 1 );
}
if( WideCharToMultiByte( CP_ACP, 0, pwcBuf, -1, pBuf, bufLen, NULL, NULL) == 0 ){
return -1;
}
pBuf[wcslen(pwcBuf)] = 0;
return 0;
}
//=================================================================================
//=================Roblox ActiveX functions call===================================
//=================================================================================
/**
* Create Roblox ActiveX instance
*
*/
ILauncher * GetIRobloxLauncherInstance(void){
// Declare and HRESULT and a pointer to the RobloxProxy interface
HRESULT hr;
ILauncher * IRobloxLauncher;
if( isComStarted() ){
hr = CoCreateInstance( CLSID_Launcher, NULL, CLSCTX_INPROC_SERVER,
IID_ILauncher, (void**) &IRobloxLauncher);
if( !SUCCEEDED(hr) ){
IRobloxLauncher=NULL;
}
}
return IRobloxLauncher;
}
/**
* Invoke HelloWorld method from Roblox ActiveX
*
*/
int RobloxAdapterHelloWorld(ILauncher *iIRobloxLauncher){
HRESULT hr = iIRobloxLauncher->HelloWorld();
return hr;
}
/**
* Invoke Hello method from Roblox ActiveX
*
*/
int RobloxAdapterHello(ILauncher *iIRobloxLauncher,char *retMessage){
HRESULT hr;
BSTR hhh;
hr = -1;
hr = iIRobloxLauncher->Hello( &hhh );
if( SUCCEEDED(hr) ){
Wc2Str( hhh, retMessage, 0 );
}
else {
strcpy( retMessage, "IRobloxLauncher->Hello() Error occured !" );
}
return hr;
}
/**
* Invoke StartGame method from Roblox ActiveX
*
*/
int RobloxAdapterStartGame(ILauncher *iIRobloxLauncher,char *cbufAuth, char *cbufScript ){
HRESULT hr;
_bstr_t authenticationUrl(cbufAuth);
_bstr_t script(cbufScript);
hr = -1;
hr = iIRobloxLauncher->StartGame( authenticationUrl.GetBSTR(),
script.GetBSTR() );
return hr;
}
/**
* Invoke PreStartGame method from Roblox ActiveX
*
*/
int RobloxAdapterPreStartGame(ILauncher *iIRobloxLauncher){
HRESULT hr = -1;
hr = iIRobloxLauncher->PreStartGame();
return hr;
}
/**
* Invoke GetInstallHost method from Roblox ActiveX
*
*/
int RobloxAdapterGet_InstallHost(ILauncher *iIRobloxLauncher,char *cbufHost){
HRESULT hr;
BSTR host;
hr = -1;
hr = iIRobloxLauncher->get_InstallHost( &host );
if( SUCCEEDED(hr) ){
Wc2Str( host, cbufHost, 0 );
}
else {
strcpy( cbufHost, "IRobloxLauncher->get_InstallHost() Error occured !" );
}
return hr;
}
/**
* Invoke GetVersion method from Roblox ActiveX
*
*/
int RobloxAdapterGet_Version(ILauncher *iIRobloxLauncher,char *cbufHost) {
HRESULT hr;
BSTR host;
hr = -1;
hr = iIRobloxLauncher->get_Version( &host );
if( SUCCEEDED(hr) ){
Wc2Str( host, cbufHost, 0 );
}
else {
strcpy( cbufHost, "IRobloxLauncher->get_Version() Error occured !" );
}
return hr;
}
/**
* Invoke Update method from Roblox ActiveX
*
*/
int RobloxAdapterUpdate(ILauncher *iIRobloxLauncher){
HRESULT hr;
hr = iIRobloxLauncher->Update();
return hr;
}
/**
* Invoke PutAuthentificationTicket method from Roblox ActiveX
*
*/
int RobloxAdapterPut_AuthenticationTicket(ILauncher *iIRobloxLauncher,char *cbufTicket ){
HRESULT hr;
_bstr_t ticket(cbufTicket);
hr = -1;
hr = iIRobloxLauncher->put_AuthenticationTicket(ticket.GetBSTR());
return hr;
}
/**
* Invoke IsGameStarted method from Roblox ActiveX
*
*/
int RobloxAdapterGet_IsGameStarted(ILauncher *iIRobloxLauncher, bool *isStarted){
HRESULT hr;
VARIANT_BOOL started;
hr = -1;
hr = iIRobloxLauncher->get_IsGameStarted(&started);
(*isStarted) = (started == VARIANT_TRUE);
return hr;
}
/**
* Invoke SetSilentModeEnabled method from Roblox ActiveX
*
*/
int RobloxAdapterGet_SetSilentModeEnabled(ILauncher *iIRobloxLauncher, bool silendMode){
HRESULT hr;
VARIANT_BOOL silent = silendMode ? VARIANT_TRUE : VARIANT_FALSE;
hr = -1;
hr = iIRobloxLauncher->SetSilentModeEnabled(silent);
return hr;
}
/**
* Invoke UnhideApp method from Roblox ActiveX
*
*/
int RobloxAdapterGet_UnhideApp(ILauncher *iIRobloxLauncher)
{
HRESULT hr;
hr = -1;
hr = iIRobloxLauncher->UnhideApp();
return hr;
}
/**
* Invoke BringAppToFront method from Roblox ActiveX
*
*/
int RobloxAdapterBringAppToFront(ILauncher *iIRobloxLauncher)
{
HRESULT hr;
hr = -1;
hr = iIRobloxLauncher->BringAppToFront();
return hr;
}
/**
* Invoke ResetLaunchState method from Roblox ActiveX
*
*/
int RobloxAdapterResetLaunchState(ILauncher *iIRobloxLauncher)
{
HRESULT hr;
hr = -1;
hr = iIRobloxLauncher->ResetLaunchState();
return hr;
}
/**
* Invoke SetEditMode method from Roblox ActiveX
*
*/
int RobloxAdapterSetEditMode(ILauncher *iIRobloxLauncher)
{
HRESULT hr;
hr = -1;
hr = iIRobloxLauncher->SetEditMode();
return hr;
}
/**
* Invoke SetStartInHiddenMode method from Roblox ActiveX
*
*/
int RobloxAdapterGet_SetStartInHiddenMode(ILauncher *iIRobloxLauncher, bool hiddenMode){
HRESULT hr;
VARIANT_BOOL hidden = hiddenMode ? VARIANT_TRUE : VARIANT_FALSE;
hr = -1;
hr = iIRobloxLauncher->SetStartInHiddenMode(hidden);
return hr;
}
/**
* Invoke get_IsUpToDate method from Roblox ActiveX
*
*/
int RobloxAdapterGet_IsUpToDate(ILauncher *iIRobloxLauncher, bool *isUpToDate){
int hr;
VARIANT_BOOL upToDate = VARIANT_FALSE;
hr = -1;
hr = iIRobloxLauncher->get_IsUpToDate(&upToDate);
*isUpToDate = (upToDate == VARIANT_TRUE);
return hr;
}
/**
* Invoke GetKeyValue method from Roblox ActiveX
*
*/
int RobloxAdapterGetKeyValue(ILauncher *iIRobloxLauncher, char *key, char *value)
{
int hr = -1;
_bstr_t bstrKey(key);
BSTR bstrValue;
VARIANT_BOOL exists = VARIANT_FALSE;
hr = iIRobloxLauncher->GetKeyValue(bstrKey, &bstrValue);
if (SUCCEEDED(hr))
{
Wc2Str(bstrValue, value, 0);
} else {
value = NULL;
}
return hr;
}
/**
* Invoke SetKeyValue method from Roblox ActiveX
*
*/
int RobloxAdapterSetKeyValue(ILauncher *iIRobloxLauncher, char *key, char *value)
{
_bstr_t bstrKey(key);
_bstr_t bstrValue(value);
return iIRobloxLauncher->SetKeyValue(bstrKey, bstrValue);
}
/**
* Invoke DeleteKeyValue method from Roblox ActiveX
*
*/
int RobloxAdapterDeleteKeyValue(ILauncher *iIRobloxLauncher, char *key)
{
_bstr_t bstrKey(key);
return iIRobloxLauncher->DeleteKeyValue(bstrKey);
}
+31
View File
@@ -0,0 +1,31 @@
#ifndef _ROLBOX_ADAPTER_H_
#define _ROLBOX_ADAPTER_H_
void StartCom(void);
void StopCom(void);
bool isComStarted(void);
ILauncher * GetIRobloxLauncherInstance(void);
int RobloxAdapterHelloWorld(ILauncher *iIRobloxLauncher);
int RobloxAdapterHello(ILauncher *iIRobloxLauncher,char *retMessage);
int RobloxAdapterStartGame(ILauncher *iIRobloxLauncher,char *cbufAuth, char *cbufScript );
int RobloxAdapterPreStartGame(ILauncher *iIRobloxLauncher);
int RobloxAdapterGet_InstallHost(ILauncher *iIRobloxLauncher,char *cbufHost);
int RobloxAdapterGet_Version(ILauncher *iIRobloxLauncher,char *cbufHost);
int RobloxAdapterUpdate(ILauncher *iIRobloxLauncher);
int RobloxAdapterPut_AuthenticationTicket(ILauncher *iIRobloxLauncher,char *cbufTicket );
int RobloxAdapterGet_IsGameStarted(ILauncher *iIRobloxLauncher, bool *isStarted);
int RobloxAdapterGet_SetSilentModeEnabled(ILauncher *iIRobloxLauncher, bool silendMode);
int RobloxAdapterGet_UnhideApp(ILauncher *iIRobloxLauncher);
int RobloxAdapterBringAppToFront(ILauncher *iIRobloxLauncher);
int RobloxAdapterResetLaunchState(ILauncher *iIRobloxLauncher);
int RobloxAdapterSetEditMode(ILauncher *iIRobloxLauncher);
int RobloxAdapterGet_SetStartInHiddenMode(ILauncher *iIRobloxLauncher, bool hiddenMode);
int RobloxAdapterGet_IsUpToDate(ILauncher *iIRobloxLauncher, bool *isUpToDate);
int RobloxAdapterGetKeyValue(ILauncher *iIRobloxLauncher, char *key, char *value);
int RobloxAdapterSetKeyValue(ILauncher *iIRobloxLauncher, char *key, char *value);
int RobloxAdapterDeleteKeyValue(ILauncher *iIRobloxLauncher, char *key);
#endif