Is there any way to invoke remote programs using RDP Client control ..
vineesh
Is there any way to invoke remote programs using RDP Client control ..
vineesh
Hi, I am using a VC6.0 COM component from .NET using late binding (Createobject ) obj aa = createobject("dllname") ret = aa.(...) The object was created and the function is executed , but on function return asp throws error as Invalid callee. (Exception from HRESULT: 0x80020010 (DISP_E_BADCALLEE)) Please suggest me what is the cause of this error ..
vineesh
hi i have a COM definitions as interface IMyInterface : IDispatch { [id(1), helpstring("method SetUserTicket")] HRESULT SetUserTicket([in] BSTR bstrTicket, [out,retval] VARIANT *varRetVal); }; [ uuid(), version(1.0), helpstring("My Type Library") ] library MYLib { uuid(), helpstring("My Class") coclass MyApis { [default] interface IMyInterface; }; }; The output dll was formed as MY.dll using reference add the following line works in vb dim aa as MYLib.MyApis aa.SetUserTicket() But when using CreateObject function as CreateObject("MYLib.MyApis","") it was not working . Is the function call is correct . or i need to pass any other names to the function.
vineesh
thanks naveen
vineesh
how to convert time_t variable to formatted date eg The long value [12345678900] to dd/mm/yyyy hh:ss
vineesh
I am trying to uninstall applications installed using msiinstallproduct function by giving REMOVE=ALL in the cmdline .I am passing the .msi file name to the function . And it returns the errorcode ERROR_UNKNOWN_PRODUCT please suggest me how to remove applications
vineesh
I have a COM component in server A . I need to compile my code which calls the COM component in Server B . But server B doen not contain COM Installation . Will the compilation works .If so when i am executing it in server A ,will it be able to communicate with the COM . Is it possible to use a dummy dll instead of the actual COM at the time of compilation and link to the original at the run time . ?
vineesh
hi .. any body tell me how to write DOS equivalent NET exe for windows
vineesh
Thanks for the reply. Actually i want to list out all the installed patches in the machine . I was able to list the patches to a specific product by msienumpatches() function .But i need to pass the product code to the function. The product code i was getting from msienumproducts() list out the registered product which will not list out the os . So i think i need to look some other way to handle this ..
vineesh
But it will only list the microsoft updates ... I need all the software updates too .. Is there any difference between updates and patches
vineesh
Is there any API which will display all the installed software updates in the windows including the os updates . ??
vineesh
can anybody tell me how to implement RIS (Remote installation Services ) through windows APIs ..
vineesh
provisioning simply means automatically installing and configuring operating systems, Suppose i have a server machine and some n number of computers connected to it . The server then done a mulitcast to all the members to know which machine is needed a O/S installation . The client machines which are waiting for installation will send back a request to the server . Then the server needs to install the O/S followed by the system softwares and appln softwares on to the respective machines . There are two different ways to achieve this one is a disk cloning second is a scripted installation Both disk cloning and unattended scripted installs can be performed remotely using a PXE/DHCP server. Now my question is whether we are bale to write some APIs for this remote installations ? Is it clear now ..?
vineesh
is there any API is there using which we can done the os provisioning in windows . ?? Can any body tell me how the provisioning of os can be done programmically .
vineesh
i want to get the following detatils for a file Name Root BlockSize FileSystemSize AvailableSpace ReadOnly EncryptionMethod CompressionMethod CaseSensitive CasePreserved CodeSet MaxFileNameLength ClusterSize FileSystemType PersistenceType OtherPersistenceType NumberOfFiles IsFixedSize ResizeIncrement is any API is there to get these informations
vineesh
can any body give me an example code for how to use the function LsaEnumerateAccountRights() ..
vineesh
I need to get the privilage set of user (Administrator,Guest ...) Is any API is there to achieve this .. ?
vineesh
I need to impersonate the user to logged in to the system .The process of impersonation should be like this 1) The user will input the username to be impersonate and passwd 2) There will be a dummy user in the system . 3) I need to read all the privilages for the inputted user 4) Then the dummy user will be logged in to the system with all the privilages of the inputted user The purpose of this is whether i inputted administrator or guest user ,the logged user will be dummy with the admin/guest privilges Can any body tell me how can i achieve this The whole thing should be worked in winNT series and winXP series (including vista ) Its a servie application
vineesh
Yes Iain was correct ... The actual libary code restrict the number of file open to 510 (i dont know the exact value ..).But normally the system will not allow you to open more than 20 files from a process .This is because of the FOPEN_MAX set to 20 in the header stdio.h . #define FOPEN_MAX 20 We can only change the value below 510 . #define FOPEN_MAX 510 //upto this will work that means #define FOPEN_MAX 511 may not work as it trying to override the max limit in the actual libray code We cannot open infinite number of files using fopen ,but still we can extend the limit set in the stdio.h file as above . The usage of CreateFile is an absolute replacement for fopen if you need to open file more than 500 times from a single process.
vineesh
The actual definition of FOPEN_MAX in stdio.h is #define FOPEN_MAX 20 you can extend it to some limit (around 500) The below code works fine #include <stdio.h> #include <windows.h> #define FOPEN_MAX 500 FILE *stream, *stream2; int main( void ) { int numclosed; int fd =3; while (fd <= FOPEN_MAX) { if( (stream = fopen( "E:\\new.txt", "r" )) == NULL ) { printf( "The file was not opened\n [%d] ",GetLastError()); getchar(); } else { fd = fileno(stream); printf( "The file was opened and fd is [%d] \n " ,fd); } } numclosed = _fcloseall( ); printf( "Number of files closed by _fcloseall: %u\n", numclosed ); return 0; } ============
vineesh